Installing custom Recovery on Xiaomi smartphones is the first step to full control of the device. TWRP Or OrangeFox you can flash unofficial firmware, backup your system, restore data after crashes and even bypass some restrictions. MIUI. However, the process requires preparation: from unlocking the bootloader to choosing the correct version of Recovery for a particular model.
In this article, we will take a look at the whole way from obtaining permission to unlock through the Mi Unlock Tool to the final installation of Recovery with a health check. We will pay special attention to common errors (for example, Fastboot Unknown Command or Anti-Rollback) that can interrupt the process, and how to get around them.+, POCO F5 Xiaomi 13 Ultra β the instruction is adapted for modern models taking into account the latest changes in Xiaomi policy.
Why do I need to install custom Recovery?
Xiaomiβs stock Recovery is limited to basic features: reset to factory settings, firmware update through update.zip And check the integrity of the system. TWRP (TeamWin Recovery Project or OrangeFox Expands Opportunities:
- π¦ Backup β Save full partition images (boot, system, data) to recover from failed experiments.
- π§ Firmware ZIP-Files β installation of unofficial firmware (LineageOS, Pixel Experience), cores, mods (for example, Magisk for root rights).
- π Bypassing restrictions β removing embedded applications MIUI, change of memory markup, reset of the pattern lock lock (subject to the availability of root rights).
- π οΈ Recovery from the Brick β If the smartphone doesnβt boot, custom Recovery is often the only way to bring it back to life.
Itβs important to understand that installing custom Recovery automatically resets the warranty and can lead to locking the device if you do not do the right thing. For example, Recovery firmware that is not compatible with your modelβs anti-rollback version will turn your smartphone into a brick.
Preparation of the device: unlock bootloader
Before installing Recovery, you need to unlock bootloader, a secure mechanism that blocks changes to system partitions by default. Xiaomi requires official permission to unlock through the Mi Unlock service. The process takes 7 to 30 days (depending on manufacturer policy) and involves several steps.
Step 1: Linking your Mi Account to your device
Without a linked Mi Account, unlocking is not possible.
- π± On the smartphone added Mi Account (check in Settings) β Xiaomi account).
- π Account confirmed by email/phone and has no restrictions (for example, not blocked for suspicious activity).
- π The device is connected to the Internet (preferably via Wi-Fi, as mobile traffic can be blocked).
Step 2: Requesting permission to unlock
Download the official Mi Unlock Tool from the site en.miui.com/unlock (Windows version. Action algorithm:
- Launch the utility and log in under the same account as on your smartphone.
- Put the device in Fastboot mode: turn it off, then press Volume down + Power before the appearance of the Fastboot logo.
- Connect your smartphone to your PC through USB-cable (preferably original).
- In Mi Unlock Tool, click Unlock, and the check will start. If the account is not linked to the device, the Couldn't unlock error will appear.
After a successful request, the countdown will begin (usually 168 hours or 7 days). After this period, repeat the procedure - the bootloader will be unlocked. 13T or POCO X5 Pro) may require additional confirmation through SMS.
π‘
If Mi Unlock Tool gives an error This Mi Account is associated with too many devices, try using another account or wait 30 days - the restriction will reset automatically.
Choosing custom Recovery: TWRP vs OrangeFox
Two of the most popular custom Recovery for Xiaomi β TWRP OrangeFox. Both offer access to advanced features, but have key differences:
| Criteria | TWRP | OrangeFox |
|---|---|---|
| Support for models | A broad list, but some newer devices (like the Redmi Note 12 Turbo) may not have stable builds. | It is often updated for fresh models, but there is less community to help. |
| Interface. | Classic text with touch control. | More modern design with support for themes and gestures. |
| Additional functions | Basic: backup, firmware, recovery. | Built-in file manager, support for Magisk and OFOX script. |
| Compatibility with MIUI | May require patches to work with new versions MIUI (for example, MIUI 14). | Better adapted for Xiaomi, less errors with data encryption. |
For most users, OrangeFox is preferred because of better integration with Xiaomi and additional tools. TWRP (Check on twrp.me, select it.
How to find the correct version of Recovery? Use model encoding (e.g., tissot for Redmi Note 7 or alioth for the Recovery model). POCO F3). Download files only from verified sources:
- π Official website TWRP (section).
- π OrangeFox repository (select the Stable branch).
- π Thematic forums (XDA Developers, 4PDA) β look for tagged tags [RECOVERY].
How to find out the encoding of your Xiaomi model?
Install custom Recovery through Fastboot
After unlocking the bootloader and downloading the appropriate Recovery, you can start installing it.
- π₯οΈ Computer with Windows/Linux/macOS and installed drivers ADB/Fastboot.
- π Cable USB (It is preferably original to avoid connection problems).
- π± Recovery file in.img format (for example, twrp-3.7.0_12-alioth.img).
Step 1: Install ADB and Fastboot
Download Googleβs Platform Tools and unpack the archive to the root of the disk C:\ (for example, C:\platform-tools\). Add a path to the folder to the environment variable PATH:
- Open Control Panel β System β Additional System Parameters β Environment Variables
- In System Variables, find Path, click Change and add path to platform-tools.
Check the work of the team in the terminal:
fastboot devicesIf the device is determined (the serial number will appear), the drivers are installed correctly.
Step 2: Recovery firmware
Transfer the smartphone to Fastboot mode (Loudness down) + Power, and connect to the PC:
fastboot flash recovery twrp-3.7.0_12-alioth.img
fastboot reboot recoveryReplace. twrp-3.7.0_12-alioth.img If the process is successful, the device will reboot to the new Recovery.
Device unlocked (unlocked status in Fastboot)
Recovery file rebranded as short name with no spaces
Antivirus disabled (can block fastboot)
Battery charge > 50%
-->
Note: on some models (e.g. Xiaomi) 12S Ultra) after the firmware Recovery may need to disable the signature verification:
fastboot flash vbmeta vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.imgFile. vbmeta.img You can either remove the scaling or download separately.
Solving Typical Errors in Installation
Even with the correct following of the instructions, errors can occur, and let's consider the most common ways to eliminate them:
β οΈ Note: If after the firmware Recovery device does not boot (hang on the logo) MI), Don't panic. Try entering Recovery through Volume Up. + Power and sew stock firmware through Fastboot.
Fastboot Unknown Command: Fastboot Unknown Command
Reason: outdated version of fastboot or incorrect drivers.
- π Update Platform Tools to the latest version.
- π Reinstall the driver via the Mi Flash Tool (download on the official website).
- π₯οΈ Try another PC or virtual machine with Linux.
Error: Anti-Rollback (device blocked)
Modern Xiaomi devices have Anti-Rollback protection, which blocks rollbacks on older firmware or Recovery. If you see the message This package is for "tissot" devices; this is a, it means:
- π You have flashed Recovery that is not compatible with the anti version of your model.
- π οΈ Solution: Find Recovery marked Anti-Rollback or run the stock firmware through the Mi Flash Tool in clean all mode.
Error: Recovery is not saved after restart
On some models (such as the Redmi Note 10 Pro), stock firmware automatically restores the original Recovery.
- After installing Recovery, immediately swipe Magisk (for root rights) or patch disable_forced_encryption.
- Or turn off automatic Recovery updates via the command: fastboot flash recovery twrp.img fastboot reboot bootloader fastboot flash recovery twrp.img (Recovery is recovered twice in a row).
π‘
If the device does not boot into the system after installing Recovery, but Recovery works - the problem is in encrypting the data partition. Solution: do formatting data in Recovery (Warning, this will delete all user data!).
Actions after installing custom Recovery
Successful Recovery firmware is only half the battle, and to avoid future problems, follow a few critical steps:
1. Create a backup (Nandroid Backup)
V TWRP Or OrangeFox go to Backup and select the saved partitions:
- π Boot - Boot section.
- π System - System files.
- π Data β user data (messages, applications).
- π EFS β modem (IMEI, networking).
Save the backup on SD-This will save the device if the firmware fails or if it fails.
2. Magisk installation for root rights (optional)
If you need root rights, download the latest version of Magisk from GitHub and click on it. ZIP-file through recovery:
- Download. Magisk-v26.4.zip (version may differ).
- In Recovery, select Install β Select a file β Magisk-v26.4.zip.
- After installation, restart.
Attention: on devices with MIUI 14 and later Magisk may not work due to changes in the dm-verity mechanism. In this case, use the MagiskDelta module or alternative rooting methods.
3. System integrity check
After all the manipulations, make sure that:
- πΆ Mobile network and Wi-Fi are working (check out) IMEI in *#06#).
- π Charging and sensors (gyroscope, accelerometer) are functioning.
- π No errors in Logcat (can be checked through the MatLog app).
Compatible with different Xiaomi models
The Recovery installation process may vary depending on the model and year of release, and the following are features for popular lines:
| Model | Features of installation | Recommended Recovery |
|---|---|---|
| Redmi Note 12 Pro+ | Requires bootloader unlock via Mi Unlock with account binding. Supports Fastboot and EDL regimes. | OrangeFox (Best Support) MIUI 14) |
| POCO F5 | Anti-rollback 5 versions block old Recovery. Use tagged builds ARB 5. | TWRP (Official assemblies on twrp.me) |
| Xiaomi 13 Ultra | Difficulty encrypting data. After the firmware Recovery may require formatting data. | OrangeFox (built-in tools for working with the f2fs) |
| Redmi K60 Pro | Supports Dynamic Partition β requires special Recovery builds with support super.img. | OrangeFox or TWRP dynamic-patched |
For older models (e.g. Redmi Note 7 or POCO X3 NFC) It's a simpler process, you just unlock the bootloader and flash Recovery through Fastboot. New devices (2022 and later) may require you to do this:
- π§ Use of the EDL Mode (requires an authorized Xiaomi account).
- π Reverse to an older version MIUI before unlocking.
- π‘οΈ Bypassing Anti-Rollback through patched firmware.