Recovery Replacement with Xiaomi: From Unlocking the bootloader to Installing TWRP

Replacing a standard recavator with a custom one (such as TWRP or OrangeFox) is the first step to full control of Xiaomiโ€™s smartphone, allowing you to install unofficial firmware, make full system backups, recover data after a reset, and even bypass some of the manufacturerโ€™s limitations.

In this article, we will discuss the current methods of replacing the recovery for models 2020-2026, including bypassing the new restrictions of the Mi Account and working with the anti-rollback bootloader. Special attention will be paid to security: how to avoid locking the device and what to do if something goes wrong. If you are a beginner, do not miss the sections on preparation and backup!

Why should I change the recovery to Xiaomi?

Xiaomiโ€™s standard Mi Recovery reclaimers are very limited, allowing you to only reset, flash official firmware through Fastboot or clear cache. Custom recoveries like TWRP or OrangeFox offer much more options:

  • ๐Ÿ“ฆ Installation of unofficial firmware (LineageOS, Pixel Experience, MIUI Pro and others.).
  • ๐Ÿ”„ Full backup and system recovery, including application data.
  • ๐Ÿ”ง Removing embedded applications (bloatware) without root rights.
  • ๐Ÿ› ๏ธ Correcting errors after failed firmware (e.g. bootloop).
  • ๐Ÿ” Bypassing the Mi Account lock (on some models).

Without custom recavator, you canโ€™t flash Magisk to get root rights or install GApps on firmware without Google services. However, remember: replacing the recavator resets the warranty and can lead to locking the device if you violate Xiaomiโ€™s rules (for example, flashing firmware with a lower version of anti-rollback).

๐Ÿ“Š What kind of receptacles do you plan to install?
TWRP
OrangeFox
PitchBlack
Other
I haven't decided yet.

Replacement of Recavers: What to Do Before Starting

Before you start replacing the recaveri, follow the mandatory steps:

  1. Back up your data. Use Mi Cloud, Google Drive, or physical backup on your PC. It's especially important to save:
  2. Check the phone model and firmware version. Go to Settings โ†’ About the phone and write down:
  3. Install the necessary tools on the PC:

Warning: If your phone is released after 2022, it is likely to have anti-rollback protection activated, which means you can't flash firmware older than the one you have installed now.

Make a backup of data | Check model and version of MIUI | Download the correct version of TWRP/OrangeFox | Install drivers and Platform-Tools | Charge the phone at least 60% | Disable OEM lock in the developer settings-->

Unlocking the loader: without this can not do

Xiaomi blocks the bootloader on all modern smartphones, so it must be unlocked before replacing the recovery.The process takes 7 to 30 days (depending on Xiaomi's policy) and requires linking the Mi Account account to the device.

Instructions for unlocking:

  1. Activate Developer Mode: Go to Settings โ†’ About Phone and 7 times click on MIUI Version. Return to Settings โ†’ Additional โ†’ For Developers and turn on:

Mi Account

Mi Unlock status

Mi Unlock Tool

here

Run the unlock:

Fastboot

Loudness down + Nutrition

Mi Unlock Tool

Important: once the bootloader is unlocked, the phone will reset completely! All data will be deleted. Also note that Xiaomi can block unlocking if:

  • ๐Ÿšซ The phone was purchased less than 7 days ago.
  • ๐Ÿšซ New Mi Account (less than 30 days).
  • ๐Ÿšซ The device is linked to another account.
What if the Mi Unlock Tool can't see the phone?
If the utility does not recognize the device in Fastboot mode, check: 1. Are drivers installed (in Device Manager the phone should appear as "Android Bootloader Interface"). 2. Is the phone connected to the original USB-3. Are antiviruses disabled (they can block the Mi Unlock Tool). 4. Are you using the official version of the utility (not modified). If the problem persists, try another PC or cable.

Recovery pick: TWRP vs OrangeFox vs PitchBlack

Not all custom recavities are the same, here's a comparison of the most popular options for Xiaomi:

Recovery.Support for modelsFeaturesComplexity of installationSupport A/B-section
TWRPMost of the models (but not all new ones)The most common, stable, many pluginsMediumYes (but requires manual adjustment)
OrangeFoxMany Xiaomi/Redmi/POCOs, including new onesUser-friendly interface, built-in tools for Magisk, FBE supportLow.Yes (automatic support)
PitchBlackLimited list (mostly flagships)Minimalist design, high speed of workHigh (few guides)Yes.
Sky HawkOlder models (Redmi Note 7/8, etc.)Support for outdated devices, simple interfaceLow.No.

For most Xiaomi users in 2026, OrangeFox is the best choice. It is better adapted to new models with A/B partitions and supports FBE (File-Based Encryption) encryption, which is used in MIUI 13/14. TWRP is suitable for older devices or if you need specific plugins.

Where to download:

  • ๐Ÿ”— Official website TWRP (Check compatibility with your model!).
  • ๐Ÿ”— OrangeFox Downloads (Select the version for your region).
  • ๐Ÿ”— Forum XDA Developers (Search for the theme of your model).

๐Ÿ’ก

Before downloading the recovery, check its version and build date. If the last update was more than a year ago, it is better to look for an alternative - such a recovery may not support new versions of MIUI.

Installation of custom recavery: step-by-step instructions

When the bootloader is unlocked and the recovery is downloaded, you can start installing it. We'll look at two methods: via Fastboot and through MIUI (for some models).

This method works for 90% of Xiaomi devices:

  1. Put your phone into Fastboot mode: Turn off the device, then press Volume Down + Power before the Fastboot logo appears.
  2. Connect the phone to the PC and check the connection with the command:
  3. Swipe the recaveri: enter the command (replace recovery.img with your file name):
  4. Reboot to Recavรฉre: Do:
  5. Permanent installation: If everything works, swipe the recaps on both slots (for A/B devices):

Method 2: Installation via MIUI (for some models)

Some MIUI firmware allows you to flash the Recovery through a standard update.

  1. Rename the file to recovery.img and place it in the root of internal memory.
  2. Open the Updater app, click on the three dots in the upper right corner and select Select the firmware file.
  3. Manually specify the path to recovery.img and confirm the installation.
  4. After the reboot, press Volume Up + Power to get into the new Recaveri.

โš ๏ธ Note: This method does not work on all devices. (Redmi Note 12, POCO X5 And more recently, it will likely end in a mistake. E3004. In this case, use the Fastboot.

๐Ÿ’ก

Once installed, make a backup of the persist partition (if you have one in your device) immediately. This partition contains unique data from the NFC module and the camera, and its loss can lead to the failure of these functions.

Solving Common Mistakes When Replacing Recavatories

Even with the correct following of the instructions, problems can arise. Here are the most common mistakes and their solutions:

Mistake.Reason.Decision
FAILED (remote: 'Flashing is not allowed in Lock State')The bootloader is not unlockedUnlock the device through the Mi Unlock Tool
Invalid sparse file format at headerRecovery file damaged.Download the file again, check the checksum (MD5)
The phone does not load after the firmwareIncompatible version of recovery or firmwareSweep through the official firmware through the Mi Flash Tool in Clean All mode
E3004 when installed via UpdaterBlocking the firmware of unofficial filesUse Fastboot or patched Updater (risky!)
Recaveri resets to stock after rebootMIUI overwrites the Recovery when loadingTurn off automatic updates to the recovery in the developer settings or click Magisk

If after installing the recovery phone is stuck on the logo MI (bootloop), try:

  1. Download to the recavery (Loudness up + Power) and make Wipe โ†’ Format Data (erase all data!).
  2. Swipe the official firmware through Fastboot using the Mi Flash Tool.
  3. If nothing helps, please contact the 4PDA or XDA forum with an error log.

โš ๏ธ Warning: If your device supports anti-rollback, never flash firmware older than the one installed now. This will lead to irreversible locking of the bootloader.

What to do after installing a custom recavator?

Successful replacement of the Recaveri is just the first step.

  • ๐Ÿ“ฑ Install Magisk for root rights: download the latest version of Magisk (GitHub), move the.zip file to your phone and thread it through the Recovery in the Install section.
  • ๐Ÿ”„ Make a full backup: in the recaveri, select Backup and mark all sections (Boot, System, Data, Vendor, etc.). SD-card.
  • ๐Ÿ”ง Swipe custom firmware: popular options - LineageOS, Pixel Experience, ArrowOS. Before firmware, be sure to make Wipe System/Data/Cache!
  • ๐Ÿšซ Remove Bloatware: You can remove unnecessary system applications via recavers or root-rights (Mi Browser, Mi Music, etc.).

Important: After obtaining root rights, some functions may stop working:

  • ๐Ÿ’ณ Google Pay and banking apps (due to SafetyNet).
  • ๐ŸŽฎ Some games (Pokรฉmon GO, Genshin Impact).
  • ๐Ÿ”’ Data encryption (may require you to turn off in settings).

To get around these limitations, use the Magisk modules:

  • MagiskHide Props Config โ€“ to mask root rights.
  • Universal SafetyNet Fix is a standard for SafetyNet.
  • Riru - Core - for the operation of certain modules.

๐Ÿ’ก

If your phone doesnโ€™t pass SafetyNet after youโ€™ve installed Magisk, try enabling the โ€œEnforce DenyListโ€ and โ€œZygiskโ€ options in the Magisk settings, and then adding problematic apps (like Google Pay) to DenyList.

FAQ: Frequent questions about replacing the recavery with Xiaomi

Can I replace the recavator without unlocking the loader?
No, on all modern Xiaomi devices (released after 2018), the bootloader is locked. Without it, you can't flash custom Recovery. The only exception is some old models (Redmi 4X, Redmi Note 4), where you could flash recovers through exploits, but this method is no longer relevant.
How to check if the bootloader is unlocked?
Turn off your phone and press Volume Down + Power to get into the Fastboot. If you see UNLOCKED at the bottom of the screen, the bootloader is unlocked. If LOCKED, you need to go through the unlock procedure through the Mi Unlock Tool.
Which Recovery Is Best for Xiaomi Redmi Note 11 Pro+?
OrangeFox is recommended for this model as it better supports partitioning. A/B and encryption FBE, practicable MIUI 13/14. TWRP It is also available, but may require additional manipulation with the vendor and dtbo. XDA.
What if the phone does not turn on after the recavery firmware?
If the device doesn't respond to buttons or is stuck on the logo: Try to pinch Volume Up + Power for 10-15 seconds for a forced reboot. If that doesn't work, connect the phone to your PC and check if it's detected in Fastboot (fastboot devices). If the device is visible, swipe the official firmware through the Mi Flash Tool in Clean All mode. If the phone isn't detected, the bootloader may be damaged, in which case only the service center will help.
Can I get the stock recapavere back?
Yes, download the official firmware for your model from Xiaomi, unpack it and find the recovery.img file. Then run it through Fastboot: fastboot flash recovery recovery.img After that, the bootloader can be blocked again through the Mi Unlock Tool (but this will reset all data).