How to Remove TWRP from Xiaomi Phone: 3 Proven Ways

Installing custom recovery TWRP on Xiaomi, Redmi or POCO smartphones opens up a wide range of possibilities for system modifications, from root rights to installing unofficial firmware. However, sooner or later, users face the need to return the device to a factory state - whether for warranty repairs, sales or solving problems with MIUI updates. Removing TWRP seems an easy task, but there are pitfalls here: from accidental blip to data loss.

In this article, we’ll break down three officially supported ways to remove TWRP from Xiaomi devices, including models with a locked and unlocked bootloader. You’ll learn how to return stock recovery via Fastboot, MIUI or the Mi Flash Tool, and what to do if the phone stops loading after removal.

Why do you need to remove TWRP from Xiaomi?

Castomic recovery TWRP is a powerful tool, but having it on the device can create a number of problems:

  • πŸ”„ Lockdown OTA-update. MIUI Refuses to install updates "over the air" if a third-party recovery is detected.
  • πŸ›‘οΈ Warranty issues: Xiaomi service centers may refuse repairs if they find traces of modifications (including: TWRP androot).
  • πŸ”§ Unstable performance: on some models (e.g. Redmi Note 10 Pro or POCO X3 Pro) TWRP conflicts with data encryption, causing freezes.
  • πŸ’° Buyers often check the device for modifications, and TWRP It can reduce the cost of the phone.

Also, on devices with a locked bootloader, trying to update MIUI via TWRP can lead to a β€œsoft breeze” (the device only loads in recovery).This is because Xiaomi’s stock firmware checks the integrity of the recovery partition before installing.

⚠️ Attention: If you delete TWRP Before selling your phone, don’t forget to switch it off. OEM Unlock in the developer settings and perform the reset to factory settings. Otherwise, the new owner will be able to easily unlock the bootloader.

Preparing for TWRP Removal: What to Do in advance

Before you start removing, follow a few critical steps:

  1. Create a backup. Deleting TWRP can result in resetting settings or file loss, especially if you plan to flash stock firmware. Use adb backup or copy files to your PC.
  2. Check the status of the bootloader. Go to Settings β†’ About Phone β†’ MIUI version and tap 7 times on the kernel line to activate the developer menu. Then go to Settings β†’ Additional β†’ For developers and see the status of OEM Unlock: If the option is active, the bootloader is unlocked. If gray and inactive, blocked.
  3. Download the required files: For the method via Fastboot: ADB and Fastboot tools (official package from Google). For firmware stock recovery: recovery.img file for your model (can be extracted from the official MIUI firmware via Mi Flash Tool).

Important: If your device is running on a MediaTek processor (like the Redmi 9A or POCO C31), you will additionally need the SP Flash Tool and VCOM drivers. Fastboot is enough for Qualcomm (most of Xiaomi’s flagships).

πŸ“Š What Xiaomi model have you modified?
Redmi Note 10/11
POCO X3/X4
Mi 11/12
Redmi 9/9A
Another model

Method 1: Remove TWRP via Fastboot (Universal Method)

This method is suitable for all Xiaomi devices on Qualcomm (including Redmi Note 10 Pro, POCO F3, Mi 11) and most models on MediaTek (if Fastboot is supported) and it involves running stock recovery on top of the firmware. TWRP.

β˜‘οΈ Preparing for removal via Fastboot

Done: 0 / 5

Step-by-step:

  1. Connect your phone to your PC in Fastboot: adb reboot bootloader or turn off the device and press Volume Down + Power.
  2. Check Connection: Fastboot devices must display your device’s serial number.
  3. Scroll stock recovery: fastboot flash recovery recovery.img Replace recovery.img with your file name.
  4. Clear the cache (optional but recommended): fastboot erase cache
  5. Reboot the device: fastboot reboot

If you load your phone into TWRP after you reboot, it means that the stock recovery didn't stick, which is typical for devices with a locked bootloader, then go to Method 3 (full stock firmware firmware).

⚠️ Note: Some models (e.g. Redmi Note 8 Pro with MediaTek Helio) G90T) The fastboot flash recovery command may not work. SP Flash Tool with Download Only option and flash only the recovery section.

Method 2: Remove TWRP through MIUI stock update

If your device is still booting into the system (albeit with TWRP), you can try removing custom recovery through the official MIUI update.This method does not require a PC and is suitable for users who are afraid to work with Fastboot.

Algorithm of action:

  1. Download the full MIUI service pack for your model from the official website: Go to the MIUI download page. Select your model (e.g. Redmi Note 10 Pro β†’ vili). Download Recovery ROM (not Fastboot!).
  2. Move the update file to the root of the phone’s internal memory (not to folders!).
  3. Run the update via stock updater: Go to Settings β†’ About Phone β†’ System Update. Tap three-point in the upper right corner and select Select Update File. Specify the downloaded file and confirm the installation.

When you install the update, the system will automatically replace TWRP with stock recovery, but there is a caveat: if your device is encrypted (using a PIN/password), the update may end in error.

  • πŸ”“ First, remove all graphic keys./PIN-codes in security settings.
  • πŸ”„ Repeat the update procedure.

πŸ’‘

If the phone is loaded into TWRP instead of the system after the upgrade, then the firmware has not replaced recovery. In this case, manually run the stock recovery via Fastboot (Method 1) or use the Mi Flash Tool (Method 3).

Method 3: Complete stock MIUI firmware via Mi Flash Tool

This is the most reliable method that is guaranteed to remove TWRP and return the device to factory condition.

  • πŸ“± Devices with locked bootloader (when Methods 1 and 2 do not work).
  • πŸ”§ Phones that do not boot into the system (hang on the logo) MI).
  • πŸ› οΈ Models with MediaTek, where Fastboot does not support firmware recovery.

What you need:

  • Official MIUI firmware in.tgz format (select Fastboot ROM).
  • Mi Flash Tool (Version 2020 or later)
  • Qualcomm or MediaTek drivers (depending on the processor).

Step-by-step:

  1. Unpack firmware from.tgz into a folder (for example, C:\miui_rom).
  2. Install the Mi Flash Tool and run on behalf of the administrator.
  3. Connect your phone in Fastboot mode (as in Method 1).
  4. In Mi Flash Tool: Press Select and select the folder with the unpacked firmware. Select firmware mode: Clean all - full reset (recommended). Clean all and lock - reset + lock the bootloader (only if you sell the phone!). Press Flash and wait for completion (5-10 minutes).

Once you have firmware, the device will automatically reboot to the stock recovery and then back up to the system. All data will be deleted, so back up in advance.

What to do if the Mi Flash Tool is in error?
If the Mi Flash Tool shows an error can't find fastboot or critical partition flashing is not allowed, it means that the bootloader is locked.Unlock it through the official Mi Unlock Tool (it will require a Mi Account binding and waiting 72-168 hours for new devices).

Some Xiaomi devices have unique nuances when working with TWRP. The table below shows the key differences for popular models:

ModelProcessorFeatures of TWRP removalRecommended method
Redmi Note 10 Pro (sweet)Qualcomm Snapdragon 732GWhen you are running through Fastboot, you may need to disable the avb (fastboot) check. --disable-verity --disable-verification flash vbmeta vbmeta.img).Method 1 or 3
POCO X3 Pro (vayu)Qualcomm Snapdragon 860Stock recovery is automatically restored after the MIUI update if the bootloader is locked.Method 3 (full firmware)
Redmi 9A (dandelion)MediaTek Helio G25Fastboot does not support recovery firmware. SP Flash Tool is required.Method 3 with SP Flash Tool
Mi 11 (venus)Qualcomm Snapdragon 888On some versions of MIUI, stock recovery checks the integrity of boot.img. If it is modified, the phone will not boot.Method 3 with the Clean All option

If your model is not in the table, check the code name for it (for example, surya for POCO X3 NFC) and check the thematic forums (XDA Developers or 4PDA) for specific instructions.

What if the phone does not turn on after removing the TWRP?

If after manipulating the TWRP device stopped booting (hang on the MI logo, cyclic reboot or black screen), follow the following steps:

  1. Try booting into recovery: Turn off the phone (press Power + Volume up for 10 seconds). Press Power + Volume up until the TWRP logo or stock recovery appears. If stock recovery has booted, select Wipe Data β†’ Yes and reboot.
  2. Fastboot (if the device is PC-defined): fastboot flash boot.img fastboot flash recovery.img fastboot fastboot reboot
  3. Use emergency mode (EDL): For Qualcomm: Put your phone in mode EDL (Close the testpoints or use the fastboot oem edl command if the bootloader is unlocked. Then run the firmware through the Mi Flash Tool with the Clean all and lock option. For MediaTek: use SP Flash Tool with file MTxxxx_Android_scatter.txt firmware.

⚠️ Note: If the phone is not detected in Fastboot and does not load in recovery, but the PC makes a connection sound USB-Devices, try installing Qualcomm drivers HS-USB QDLoader 9008 (for Qualcomm) or MediaTek Preloader (for MediaTek) will allow you to flash the firmware in emergency mode.

FAQ: Frequent questions about removing TWRP from Xiaomi

Can I delete TWRP without losing data?
Theoretically, yes, if you use Method 1 (running only recovery through Fastboot).However, in practice, after returning to drain recovery, you may need to reset your settings, since the Detects system changes the recovery section and blocks the download. We recommend you to make a backup copy in advance via adb backup or TWRP (if it's still working).
Why does the phone ask for a password after removing TWRP, but not accept it?
This is because Xiaomi's stock recovery does not support decrypting data encrypted via TWRP. Solution: Return to TWRP (if possible) and execute Format Data (not Wipe!). This will remove the encryption. Sweat stock recovery again. Boot into the system - no password is needed. Attention: Format Data will delete all user data!
How to check if TWRP has been removed?
There are two ways: Visually: Boot into recovery (Power buttons) + Loudness up. If you see the logo MI And the menu in Chinese/English is stock recovery. ADB: Connect your phone to your PC and do: adb reboot recovery adb shell getprop ro.boot.recovery If the output contains miui - recovery stock.
Can I remove TWRP from the Mi Unlock Tool?
No, the Mi Unlock Tool is only designed to unlock the bootloader, not remove the TWRP. However, once the bootloader is locked (the Clean all and lock option in the Mi Flash Tool) the stock recovery will be restored automatically, as Xiaomi checks the integrity of the partition when booting.
Will Magisk work after TWRP is removed?
No, Magisk is tied to a modified boot.img. Once you return to the stock recovery and the original boot firmware, the root access will be lost. To get the root back, you'll have to repaint the boot.img through Magisk and stitch it manually.

πŸ’‘

If you delete TWRP before selling your phone, be sure to lock the bootloader through the Mi Flash Tool (Clean All and Lock option).This will prevent the new owner from easily unlocking and protect your data.