Xiaomi smartphone owners often face the need to return the original stock Recovery after experimenting with custom firmware or modified versions of TWRP. This may be necessary to receive official OTA updates, unlock the bootloader through the Mi Unlock Tool, or fix errors after unsuccessful manipulation of the system. However, the recovery process has nuances, from differences in the architecture of the processors (Qualcomm vs Mediatek) to the peculiarities of Xiaomiβs policy to block downloaders on new models.
In this article, weβll look at all the current ways to return stock Recovery, from manual firmware via fastboot to using official Mi Flash tools. Particular attention is paid to the problems that users face after installing TWRP or OrangeFox Recovery, as well as methods to bypass errors like anti-rollback or locked bootloader state. If your Redmi, POCO or Mi stopped booting after changes to Recovery, here you will find a solution.
Why do I need to restore stock recovery?
Castom Recovery (TWRP, OrangeFox) provides advanced options for system modification, but their presence can cause serious problems:
- π« Lockdown OTA-update: MIUI Refuses to install official updates if a third-party Recovery is detected.
- π bootloader unlock problems: Mi Unlock Tool requires stock Recovery to confirm device status.
- β οΈ Anti-rollback errors: On some models (such as the Redmi Note 10 Pro), custom Recovery can activate protection that blocks the return to older firmware versions.
- π± System instability: Conflicts between modified Recovery and stock kernel (boot.img) This leads to a cyclical reboot (bootloop).
In addition, starting with MIUI 13 and new models (such as the Xiaomi 12/13 series), the company has tightened control over the integrity of system partitions. Trying to flash custom Recovery without first unlocking the bootloader can lead to a complete lock of the device (hardbrick state).
β οΈ Note: If your device is in bootloop state after installation TWRP, Do not try to re-sweeten Recovery through fastboot without first resetting the userdata!
Preparation of the device: what to do before recovery
Before you start firmware stock Recovery, follow the mandatory preparatory steps:
Make a backup copy of the data (photos, contacts, messages)
Check the battery level (minimum 60%)
Install Xiaomi drivers for fastboot and ADB
Download the official firmware for your model from the Xiaomi website
Unlock the bootloader (if it is blocked)
-->
Pay special attention to the firmware version. If you installed custom Recovery on MIUI 14 and then decided to go back to the stock version, but downloaded the firmware for MIUI 12, this will lead to an anti-rollback error. Always use the latest stable version for your model.
To check the current version of the firmware:
- Go to Settings β About Phone β MIUI version.
- Remember the full build number (e.g., V14.0.3.0.TKMCNXM).
- Compare it with the available firmware on the official website of Xiaomi Firmware.
Redmi Note 10/11/12 series series
POCO F3/F4/F5
Xiaomi 11/12/13 series
Redmi K40/K50/K60
Another model-->
Method 1: Recovery with the Mi Flash Tool (official method)
This is the most reliable way Xiaomi recommends to return the device to factory condition, suitable for most models, including the Redmi Note 11 Pro+, POCO X4 Pro, Xiaomi 12T and others.
Algorithm of action:
- Download the official firmware for your model in.tgz or.zip format.
- Unpack the archive and find the recovery.img file in the images folder.
- Install the Mi Flash Tool and connect your phone in fastboot mode (press Power + Volβ when the device is off).
- In the program, select a folder with unpacked firmware and press Refresh to detect the device.
- Press Clean All (full reset) or Clean All and Lock (reset + lock bootloader).
- Wait for the process to be completed (5-10 minutes).
| Model | Supported mode in Mi Flash | Notes |
|---|---|---|
| Redmi Note 10 Pro | Clean All | An unlocked loader is required |
| POCO F3 | Clean All and Lock | After the firmware loader is blocked |
| Xiaomi 12 | Clean All | Need firmware with MIUI version not lower than current |
| Redmi K50 | Clean All | Possible errors in anti-rollout |
β οΈ Note: If the device doesnβt turn on after you have firmware through the Mi Flash Tool, try flashing only the recovery partition manually through fastboot (see Method 2".
Method 2: Hand-held firmware recovery.img via fastboot
If the Mi Flash Tool is not suitable (for example, due to connection errors or lack of full firmware), you can only flash the recovery section manually.This method requires an unlocked bootloader and works on all Xiaomi models with Qualcomm and Mediatek processors.
Step-by-step:
- Download the official firmware for your model and extract the recovery.img file from it.
- Place the file in a folder with fastboot (for example, C:\platform-tools\).
- Open the command prompt in this folder (click Shift + PCM β Open the PowerShell window here).
- Connect your phone in fastboot mode and check for device detection by command: fastboot devices
- Recovery: Fastboot flash recovery recovery.img
- Reboot the device in Recovery to check: fastboot boot recovery.img
If after firmware, the phone does not load into stock Recovery, but returns to TWRP, follow additional commands:
fastboot erase recovery
fastboot flash recovery recovery.img
fastboot reboot recoveryπ‘
If the phone loads into fastboot with an invalid sparse file format at header magic error after Recovery firmware, download the firmware for another regional version (for example, instead of Global, try China or EEA).
Method 3: Recovery via ADB Sideload (if the phone is turned on)
If your device is booted into the system, but Recovery remains custom, you can use ADB Sideload mode, which is suitable for models with an unlocked bootloader and works even when fastboot is blocked.
Instructions:
- Download the official service pack (.zip) for your model from the Xiaomi website.
- Rename the file to update.zip and place it in the folder with ADB.
- Activate Debugging by USB in the developer settings (Settings β About Phone β MIUI version β press 7 times).
- Connect your phone to your PC and execute commands: adb reboot recovery adb sideload update.zip
- After you finish your firmware, select Reboot system now from the Recovery menu.
This method will automatically restore stock Recovery, as the official service pack contains original partition images, but do not use it on devices with a locked bootloader, this will lead to a signature error.
What if ADB Sideload is 47% frozen?
Mistakes and their solutions: analysis of typical problems
When restoring stock Recovery, users often encounter errors, and below are the most common ones and ways to fix them.
| Mistake. | Reason. | Decision |
|---|---|---|
| FAILED (remote: 'Flashing is not allowed in Lock State') | bootloader locked | Unlock the bootloader through the Mi Unlock Tool |
| anti-rollback check fail | Reverse to the old version of MIUI | Sweep through a newer firmware |
| The phone does not turn on after the firmware | The conflict between boot.img and recovery | Sweat both the boot and recovery from the same firmware |
| Invalid sparse file format | The damaged file recovery.img | Download the firmware for another region |
If after all the manipulations the phone still does not boot, try to flash the full firmware package through fastboot using the script. flash_all.bat (This method will reset all partitions, including recovery, to factory status.
π‘
If your Xiaomi device is released after 2022 (like the Redmi Note 12 or Xiaomi 13), be sure to check for anti-rollback protection before rolling back to old firmware. MIUI, which are newer or equal to the current!
Features for new models (2023-2026)
Starting with Xiaomi 13, Redmi Note 12 and POCO F5, the company has implemented additional protections that make it harder to recover stock Recovery:
- π Firmware lock via fastboot: On new devices, even an unlocked bootloader can restrict the firmware of individual partitions.
- π¦ Combined firmware images: Files recovery.img and boot.img may be combined in super.img, This requires special tools for extraction.
- π‘οΈ Enhanced Signature Verification: Installing unsigned images leads to bootloop even when unlocked bootloader.
For these models, it is recommended that:
- Use only official firmware from the Xiaomi website (not custom builds).
- Swipe the full package through the Mi Flash Tool in Clean All mode.
- Avoid manual firmware of individual partitions without first resetting the userdata.
If you are the owner of Xiaomi 13 Ultra or Redmi K60 Pro, before any manipulation with Recovery, be sure to check the current information on the XDA Developers or 4PDA forums - for these models, the procedures may differ.