How to Remove Custom Recovery (TWRP) on Xiaomi and Return Stock MIUI Recovery

Installing custom recovery (such as TWRP) on Xiaomi, Redmi or POCO smartphones opens up a wide range of options for system modifications, from root rights to unofficial firmware installations. However, over time, users face the need to return the original MIUI Recovery β€” whether for warranty repair, air updates (OTA) or fixing bugs after unsuccessful experiments.

The process of removing a custom recavator seems simple, but it has critical nuances: wrong actions can lead to a device blink (complete failure) if you flash an incompatible version of stock recovery or interrupt the process. In this article, we will discuss three proven methods of returning to the factory recavator, discuss in detail the preparation, risks and recovery methods after failures.

Why you may need to remove the custom recavator

Custom recovery like TWRP or OrangeFox is useful for enthusiasts, but it can be a challenge in everyday use.

  • πŸ”„ Impossibility of updates OTA. MIUI refuses to install updates through the standard menu if a third-party Recovery is detected.
  • πŸ›‘οΈ Warranty issues: Xiaomi service centers often check firmware integrity during warranty repairs.
  • 🐞 System glitches: Some features (such as Mi Share or Game Turbo) may not work properly.
  • πŸ”’ Lock the bootloader. On new models (Xiaomi) 12/13, Redmi Note 11/12) When you reflash it, anti-Rollback protection can work.

In addition, custom recavators sometimes conflict with Dynamic Partition, which leads to a cyclical reboot or firmware installation errors. If you plan to sell a phone, returning stock recovery is a must-do step for FRP reset.

⚠️ Note: On HyperOS devices (e.g. Xiaomi 14, Redmi) K70) The process is different from the classical MIUI. Using old methods can lead to data loss in the super and vendor sections.

Preparation for the removal of custom recaveri

Before starting the procedure, follow the mandatory steps to avoid data loss or β€œbrick”:

Backup data (photos, contacts, messages) | Check battery power (minimum 60%) | Download stock firmware for your model | Install ADB/Fastboot drivers on PC | Disable Mi Account lock (if the phone is tied)

-->

Pay special attention to the choice of firmware. Any official firmware for your model will do well to remove the recaveri, but it is better to use:

  • πŸ“± Fastboot firmware (file with.tgz or.zip extension) – more reliable for full recovery.
  • πŸ”§ Recovery firmware (.zip file) – if you want to save data (but this method is less stable).

Download the firmware only from official sources:

  • 🌐 Official website MIUI (Choose a Global Region, EEA Russia).
  • πŸ”— Xiaomi Firmware Updater (for older models).

⚠️ Note: Do not use firmware from third-party forums (for example, 4PDA) check-out (MD5). Fake files may contain malicious code or incompatible partitions.

Also prepare the tools:

Tool.AppointmentDownload link
Mi Flash ToolFastboot firmware in Fastboot modeOfficial website
ADB & FastbootCommands for unlocking and firmwareAndroid Studio
XiaomiTool V2Automatic definition of model and firmwareGitHub

Fastboot (complete flashing)|Recovery (Save data)|Through the Mi Flash Tool|I don't know what to choose.-->

This is a method that works for 90% of Xiaomi models and is considered the most reliable, replacing the recovery partition completely with the stock partition, but requires an unlocked bootloader.

Steps:

  1. Turn off your phone and press the Power button + Volume down to enter the Fastboot (a rabbit with a hat will appear on the screen).
  2. Connect the device to the PC through USB-cable (preferably original).
  3. Open the command line in the folder with fastboot and execute: fastboot devices If the device is determined (the serial number appears), continue.
  4. Fastboot flash recovery recovery.img fastboot flash boot boot.img (recovery.img and boot.img files must be from the official firmware for your model).
  5. Reboot the device: fastboot reboot

If after the reboot the phone hangs on the MI logo, reset through the stock recavator:

  1. Enter recovery (clip the power + volume up).
  2. Choose Wipe Data β†’ Wipe All Data.
  3. Reset the device.

πŸ’‘

If your phone doesn’t turn on after you have recovered the firmware, try flashing the full Fastboot firmware through the Mi Flash Tool with the clean all option.

Method 2: Return stock recovery with the Mi Flash Tool

This is a good way for users who want to fully restore the firmware, not just the recovery partition, and is especially relevant for anti-Rollback devices (e.g. Xiaomi Mi 11, Redmi K40).

Instructions:

  1. Download Fastboot firmware for your model (for example, courbet_global_images_V13.0.4.0.SKQMIXM_20221010.0000.00_12.0_global.zip for Mi 11 Lite 5G NE).
  2. Uncancel the firmware file into a folder without Cyrillic characters.
  3. Launch the Mi Flash Tool, press Select and specify the path to the firmware folder.
  4. Connect your phone in Fastboot mode (as in Method 1).
  5. At the bottom of the program, select the option clean all (complete cleaning) or clean all and lock (if you want to lock the bootloader).
  6. Press Flash and wait until it is completed (the process takes 5-10 minutes).

Once the firmware is in place, the phone will automatically restart. The first run can take up to 15 minutes - don't interrupt the process!

What to do if the Mi Flash Tool is in error?
If the program shows an error, you can't find it 'flash_all_lock.bat' Or an invalid image, try it: 1. Rename the folder with firmware (remove spaces and special characters). 2. Run the Mi Flash Tool on behalf of the administrator. 3. Use a different version of the program (e.g. Mi Flash) 2020 old-model). 4. Check if the firmware matches your device’s region (e.g. Global vs China).

Method 3: Recovery Removal via stock MIUI Recovery (no PC)

If you don't have access to a computer, you can try to return stock recovery directly from your phone, which doesn't work on all models and requires:

  • πŸ”“ Unlocked loader.
  • πŸ“ The presence of the official recovery firmware (.zip file) on the memory card.

Instructions:

  1. Download recovery firmware for your model (for example, miui_COURBETGlobal_V13.0.3.0.SKQMIXM_3a4a8f2b3d_12.0.zip).
  2. Rename the file to update.zip Put it in the root of your internal memory or SD-map.
  3. Enter TWRP (Put Power + Volume Up).
  4. Choose Install. β†’ Select Storage β†’ Micro SD (memory).
  5. Find the update.zip file and swipe for installation.
  6. After completion, press Reboot System.

If the process is successful, the next time you log in to recovery, you will see the standard MIUI Recovery menu (blue screen with minimalist interface).

⚠️ Note: On some models (Xiaomi 12 Pro, Redmi Note 10 Pro) this method can lead to the E:Footer is wrong error.

Frequent mistakes and their solutions

When you remove custom recavers, users face typical problems, and let's look at the most common ones and how to fix them:

Mistake.Reason.Decision
FAILED (remote: 'Flashing is not allowed in Lock State')bootloader lockedUnlock the bootloader through the Mi Unlock Tool
E:unknown command [log] in TWRPDamaged Recovery SectionFastboot Recovery (Method 1)
The phone hangs on the MI logoBoot and Recovery Partition ConflictRun Wipe Data in drain recovery or run the full firmware
Anti-Rollback Check FailReverse to the old version of MIUIUse the firmware no older than the current version

If after all the manipulations the phone doesn't turn on or if this MIUI version cannot be installed on this device is an error, chances are you've stitched the firmware for another model or region.

  1. Download the correct firmware (check the model name in Fastboot with the fastboot getvar product command).
  2. Repeat the firmware through the Mi Flash Tool with the clean all option.

πŸ’‘

On Dynamic Partition devices (e.g. Xiaomi 11T, Redmi Note 11), you can’t flash only the recovery section separately, which will lead to an error.

How to check if the custom recap has been removed

After the instructions are followed, it is important to make sure that the phone is actually equipped with stock MIUI Recovery.

  1. Turn off the phone.
  2. Press the Power button + Volume up to enter recovery.
  3. If you see: πŸ”Ή Blue screen with logo MI lettering MIUI Recovery 4.0 – It was a success. πŸ”Ή Black or orange screen with TeamWin Recovery menu – custom recovery is still in place.

You can also check through ADB:

adb reboot recovery

If the phone is rebooted to stock recovery, the task is done.

We also recommend:

  • πŸ” Check the status of the bootloader by command: fastboot oem device-info (the line Device unlocked: false means that the bootloader is blocked).
  • πŸ“± Make sure that OTA-Updates are working: Go to Settings β†’ The phone. β†’ Updating the system.

FAQ: Answers to Frequent Questions

Can I remove TWRP without unlocking the bootloader?
No. Any recovery firmware (both custom and stock) requires an unlocked bootloader. If it is locked, you will get the Flashing error is not allowed in Lock State. First, unlock it through the Mi Unlock Tool (requires Mi Account binding and waiting 7-30 days for new devices).
Will Magisk work after stock recovery returns?
No. Stock MIUI Recovery doesn't support Magisk installation or other modifications. If you need a root, you'll have to re-install TWRP after returning stock recovery and flash Magisk again. However, note that newer versions of MIUI (14+) and HyperOS Magisk may not work due to enhanced protection (SAR and DM-Verity).
Can I return the custom recovery after removal?
Yes, but this will again require unlocking the bootloader (if you blocked it) and flashing TWRP through Fastboot: fastboot flash recovery twrp.img fastboot boot twrp.img Some models (Xiaomi 13, Redmi K60) may need to disable AVB 2.0 command: fastboot flash vbmeta vbmeta.img (the vbmeta.img file can be extracted from the official firmware or downloaded separately).
Why does the TWRP phone not turn on after removal?
This is a typical problem when firmware incompatibility or boot partition damage.Solution: Sweat the full Fastboot firmware through the Mi Flash Tool with the clean all option. If the phone vibrates but doesn't turn on, try clamping the power. + Volume up for 20 to 30 seconds for forced reboot. For devices with MediaTek (e.g. Redmi 9, POCO M3) use SP Flash Tool instead of Mi Flash. If nothing works, go to the service center, maybe corrupted. EMMC-chip.
How to remove custom recovery on Xiaomi with MediaTek processor?
For devices on MediaTek (Redmi) 9A, POCO C3, Redmi Note 8 process is different: Download SP Flash Tool and stock firmware in.scatter. In the program, select only the recovery section (uncheck the others). Connect the phone turned off to your PC (no buttons pressed!). Press Download and wait until it is completed (the phone will turn on automatically). ⚠️ Note: Do not run the full firmware through SP Flash Tool Unnecessarily – This Can Lead to Loss IMEI!