Many Xiaomi smartphone users are faced with the need to return to factory settings after experimenting with custom firmware, often involving selling the device, transferring it to another person or simply wanting to get the original system running smoothly without third-party software. The process of removing the modified bootloader and backpack requires care, as it affects the deep layers of your gadgetβs file system.
In this article, we will discuss in detail how to remove the Recovery. TWRP On Xiaomi devices, returning the stock recovery partition, which is necessary not only to clean the system, but also to receive official updates over the air (OTA), These are often blocked by a third-party bootloader, and you'll learn about safe firmware methods through Fastboot and using debugging on the Internet. USB.
Before you take action, it is important to understand that any manipulation of the recovery partition carries potential risks. Incorrect execution of commands or interruption of the process can lead to the inability to boot the operating system. However, by following clear instructions and checking each action, you can successfully restore the factory state of your smartphone.
β οΈ Warning: Before starting the procedure, be sure to back up all important data. TWRP and firmware stock recovery can lead to a complete cleanup of the internal memory of the device.
Why it is necessary to remove the custom Recovery
The main reason why users decide to remove TWRP is to pass system integrity checks in banking and modification-protected games. Having a modified bootloader often triggers SafetyNet or its counterparts security mechanisms, making contactless payment and some services impossible.
In addition, Xiaomiβs stock recavators ensure that the OTA update mechanism works properly. If you plan to switch from custom firmware (like LineageOS or PixelExperience) back to official MIUI or HyperOS, having a third-party recavator can cause a version conflict and lead to a cyclic reboot.
- π Restoration of banking applications and Google Pay.
- π Possibility of installing official system updates OTA.
- π‘οΈ Increasing the overall level of security of the device.
- π Removal of errors caused by version incompatibility TWRP and firmware.
It's also worth noting that when selling a device, having a custom recap can embarrass a potential buyer who expects to see a fully stock system.
Tools and drivers preparation
To successfully perform the operation, you will need a computer running Windows, Linux or macOS, as well as a serviceable one. USB-The critical element is the presence of installed drivers. ADB And Fastboot. Without them, the computer won't be able to communicate properly with the phone in bootloader mode.
It is recommended to use the original cable that came with the device, or a quality analog with data support. Cheap charging cables often do not have the necessary contacts to exchange information, which will lead to connection errors.
βοΈ Checklist of preparations
You will also need a stock recovery.img image file that matches your smartphone model and firmware version, and you should only download it from trusted sources, such as official Xiaomi forums or XDA Developers repositories.
β οΈ Attention: Use of the file recovery.img From another phone model, it is guaranteed to "brick" the device. Always check the codename of the model).
Compatibility check and file search
Finding the right image file is the foundation of a successful operation. Xiaomi devices have a huge number of modifications, and even visually identical phones can have different hardware. For example, the global version of the Redmi Note 10 and the Chinese version can differ in partition layout.
You can use the Device Info HW app to determine the exact model, or you can view the information in the phone settings, and you can also use the Fastboot command by connecting the phone in bootloader mode.
fastboot getvar allIn the lead, look at the product line or codename. That's the name you're looking for. The file is usually inside the archive with the full firmware in the image folder.
| Model of the device | Codename (Codename) | Type of recavery | Source |
|---|---|---|---|
| Xiaomi Mi 9 | cepheus | Recovery Fastboot | Xiaomi Firmware Updater |
| Redmi Note 8 | ginkgo | Recovery Fastboot | Xiaomi Firmware Updater |
| Poco X3 NFC | surya | Recovery Fastboot | Xiaomi Firmware Updater |
| Xiaomi 11 | venus | Recovery Fastboot | Xiaomi Firmware Updater |
| Redmi Note 10 | mojito/sunny | Recovery Fastboot | Xiaomi Firmware Updater |
After downloading the archive with the firmware, extract the recovery.img file from it and place it in the root folder with ADB and Fastboot utilities on your computer for ease of work.
Where to look for official firmware?
Enter Fastboot Mode on Xiaomi
To interact with low-level partitions, you need to put your smartphone into Fastboot mode. On Xiaomi devices, this is done hardwarely. First, turn off the phone completely.
Then press and hold the Volume Down button. USB-The screen should show a distinctive Fastboot logo with a hare fixing an android, or a sign that says, FASTBOOT orange.
If your phone doesnβt respond, try using another one. USB-port, preferably located on the back of the system unit (when using a PC), as they provide more stable power and connection.
You can check the success of the connection through the command line of the computer.
fastboot devicesIf you see your device's serial number in response, you've got the connection set and you can start the firmware. If the list is empty, check the driver installation.
Method 1: Fastboot Firmware (Recommended)
The most reliable and quick way to remove TWRP is to directly record a stock image through the Fastboot interface, which does not require superuser (Root) rights inside the system, since it works at the bootloader level.
Open the command prompt (Terminal in macOS/Linux or CMD/PowerShell in Windows) in the folder where the fastboot.exe utility and the recovery.img file are located. Make sure the phone is in Fastboot mode and connected.
To record the image, use the following command:
fastboot flash recovery recovery.imgOnce the command is successfully executed (OKAY or Finished will appear), you need to immediately restart the device. It is important not to let the phone start to the current system with TWRP, since some stock firmware when booting can automatically rewrite the recoveries back to custom if changes are made.
π‘
Immediately after firmware, use the fastboot reboot recovery command to check if the stock Recovery has booted before starting the main system.
To reboot, type:
fastboot rebootIf it goes well, you will see the standard next time you download it.