Recovering Xiaomiβs smartphone through Recovery is a key skill for owners of the brandβs devices, whether itβs a critical system error, a βbrickβ after a failed firmware or a factory reset β Recovery Mode and tools like MiFlash or fastboot are the only way out, but doing the wrong thing in this mode can turn the phone into a useless βbrick,β especially when it comes to manipulating the unlock of the bootloader or installing custom firmware.
In this article, we will discuss all the ways to use Recovery on Xiaomi: from basic reset via Stock Recovery to advanced firmware through Fastboot and other devices. EDL You will learn how to properly enter recovery mode on different models (including Redmi, POCO Mi), which tools will be needed for firmware, and how to avoid common errors like Invalid image or Anti-rollback. Particular attention will be paid to unlocking the bootloader through the official Mi Unlock tool - without this step, most operations in Recovery will not be available.
If you're a beginner, start with the first sections -- the basics are explained. Power users can immediately go to the instructions for fastboot firmware or specific bug fixing β FAQ Frequent questions and tool compatibility table with popular Xiaomi models.
What is Recovery Mode on Xiaomi and Why You Need It
Recovery Mode is a separate micro OS built into a smartphone that allows you to perform critical operations without booting the main system. There are two types of Recovery on Xiaomi devices:
- πΉ Stock Recovery - standard mode from the manufacturer with limited functionality (reset, update via the manufacturer) ZIP, System Integrity Checking installed by default on all devices.
- πΉ Custom Recovery (e.g, TWRP) β Modified version with advanced features: custom firmware installation, NANDroid backups, access to the root partition. Requires unlocking the bootloader.
The main tasks that are solved through Recovery:
- π Wipe reset β deletes all user data, returning the system to a βcleanβ state, useful for freezes, errors or before selling a phone.
- π¦ Installation of official updates through ZIP-files (if) OTA-update).
- π οΈ Recovery after failures β fix damaged partitions, flashing through fastboot or EDL.
- π Unlocking the bootloader (necessary for installing custom firmware or TWRP).
It's important to understand that Stock Recovery won't allow you to install unofficial software or get root rights. Custom Recovery is required, but installing it requires you to pre-unlock the bootloader through the Mi Unlock Tool. Without this step, most operations will be blocked by the Device is locked error.
β οΈ Note: Use of Custom Recovery (e.g, TWRP) On devices with a locked bootloader will lead to a hard brick - the phone will stop turning on even in fastboot mode!
How to Sign in to Recovery Mode on Xiaomi (all ways)
Entering recovery mode on Xiaomi devices depends on the model and condition of the phone (on/off, whether the sensor is working). Below are all the current methods, including button and command combinations through the phone. ADB.
Method 1: Button combination (for switched off phone)
The most versatile method, works on 90% of Xiaomi, Redmi and other devices. POCO:
- Turn off the phone (press the power button and select Turn off).
- Press simultaneously: The power button + Volume up (for most models) on some devices (e.g, POCO F1) β Nutrition + Loudness down.
Mi
If the sensor is not working, use the volume buttons for navigation and the power button to confirm the choice.
Method 2: Using the phone menu (if the system is booting)
If the phone is turned on, but you need to get to Recovery:
- Open the Settings app.
- Go to About the Phone. β Version. MIUI and tap 7 times on the line to activate Developer Mode.
- Return to Settings β Additional β For developers and enable USB debugging.
- Connect your phone to your PC and type in the command line: adb reboot recovery
Method 3: Through fastboot (if the phone doesn't boot)
If the device is stuck on the logo or does not respond, but is determined by the PC in fastboot mode:
- Connect the phone to your computer and open the command line.
- Check the connection command: fastboot devices (should display the serial number of the device).
- Recovery: Fastboot Reboot Recovery
The unlocking process is officially supported by Xiaomi, but requires a Mi Account and a wait (usually 72-168 hours) to be linked.
Step 1: Linking your Mi Account to your device
This is a mandatory step β without binding, the Mi Unlock tool will not allow unlocking.
- Sign in to your Mi Account on your phone (Settings) β Xiaomi account).
- Activate Data Synchronization and Device Search.
- Go to Settings. β The phone. β Version. MIUI and tap 7 times to activate Developer Mode.
- Back to Settings β Additionally. β For developers and enable: Unlock OEM (The most important thing! USB.
Connect the phone to the PC and confirm the debugging permission.
Step 2: Installation of Mi Unlock Tool
Download the official tool from the Xiaomi website (link: en.miui.com/unlock). Install the program on the PC and run it.
Signing in to Mi Unlock is only possible through your linked Mi! account if you use another account, unlocking will not be available.
Step 3: Requesting to Unblock
After entering Mi Unlock:
- Connect your phone in fastboot mode (clip Power + Volume down when the phone is off).
- In the program, press Unlock and the device will be checked.
- If all is correct, a wait message will appear (usually 72 hours for new accounts).
After the waiting period expires, repeat the process - the bootloader will be unlocked.
β οΈ Note: On some models (e.g. Xiaomi) 12T or POCO F4) When you unlock, you reset all the data! ADB.
Linking your Mi Account to your phone|Insert "Unlocking" OEM"|Download Mi Unlock Tool|Connect your phone to fastboot mode|Wait for the waiting timer to end-->
Xiaomi firmware through Recovery: official and custom methods
Once you unlock the bootloader, you can flash the device through Recovery or fastboot, and below are instructions for both methods, including installing official and custom firmware.
Method 1: Install official firmware through Stock Recovery
This is a good way to restore the system without unlocking the bootloader, for example, if the phone is stuck on the logo or not updated through the bootloader. OTA.
- Download the official firmware for your model from the site MIUI Downloads (select the Recovery version) ROM, Not Fastboot. ROM!).
- Rename the file to update.zip and transfer it to the root folder of the phoneβs internal memory (or to the phoneβs internal memory). SD-map).
- Log in to Stock Recovery (see section above).
- Choose a language (usually English or Chinese) and then: π Install update.zip To System - Update without data loss. π§Ή Wipe & Reset β Wipe All Data β for complete reset before firmware.
Confirm the installation and wait for completion (5-15 minutes).
If the firmware is interrupted with an Invalid zip file error, check:
- π Integrity of the downloaded file (compare hash) MD5).
- π The correct file name (update.zip, gapless).
- π Try another one. USB-cable.
Method 2: Firmware via fastboot (MiFlash)
This method requires an unlocked bootloader and is suitable for installing a Fastboot ROM (Often used to restore bricks or switch to another version MIUI.
- Download Fastboot ROM for your model from the official website (file with the extension.tgz or.zip).
- Unpack the archive in a folder on a PC (for example, C:\miui_fastboot).
- Install Xiaomi and MiFlash Tool drivers (you can download here).
- Transfer the phone to fastboot mode (clip Power + Volume down).
- Connect the device to your PC and start MiFlash.
- In the program: Press Select and specify the folder with the unpacked firmware. Select firmware mode: Clean All - complete cleaning (recommended when changing the version). MIUI). Clean All and Lock - Cleaning Up + Save User Data - saving user data (not always stable).
Flash
If MiFlash is giving you an Anti-rollback error, youβre trying to flash an older version. MIUI, It's more than the one we've installed now:
- π Find firmware with the same or newer version of Anti-rollback (check in file name).
- π‘ Use the Fastboot. ROM The same branch (e.g., Stable or Developer).
What if MiFlash canβt see the device?
Method 3: Installation of custom firmware through TWRP
Unofficial firmware (LineageOS, Pixel Experience, crDroid) will be required TWRP Recovery, instructions:
- Download the current version TWRP for your model from the site twrp.me (file.img).
- Translate your phone to fastboot and recovery: fastboot flash recovery twrp-3.7.0_xxx.img fastboot reboot recovery
- V TWRP Make a backup of the current firmware (Backup) β Select sections β Swipe to Backup).
- Download custom firmware (.zip format) and transfer it to your phone.
- V TWRP Choose Install β Indicate. ZIP-file β Swipe to Confirm Flash.
- After installing the firmware, be sure to flash Magisk (if root is needed) or Disable Force Encryption (if the firmware does not support encryption).
- Reboot to the system (Reboot β System).
The first download after installing custom firmware can take up to 15 minutes - do not interrupt the process!
| Xiaomi model | Support for TWRP | Recommended firmware | Features |
|---|---|---|---|
| Redmi Note 10 Pro | β Yes (informal port) | Pixel Experience, LineageOS 20 | Requires to disable forceencrypt in TWRP. |
| POCO F3 | β Yes (officially) | crDroid, ArrowOS | Supports the Treble project (GSI-firmware). |
| Xiaomi 12 | β οΈ Partially (the risk of brick) | MIUI EU (modified) | Not recommended for beginners β a high probability of hard brick. |
| Redmi 9A | β Yes. | Havent OS, DerpFest | Low performance on heavy firmware. |
π‘
Before you install custom firmware, check compatibility with your model on the XDA-Developers forum. Some firmware requires additional patches (for example, vendor or firmware from the company). MIUI).
Solving Firmware Errors Through Recovery
Firmware running through Recovery or fastboot is often accompanied by errors, and below are the most common problems and ways to fix them.
Error 1: "Couldn't verify update package" or "Invalid zip file"
Causes and solutions:
- π Damaged. ZIP-File: Download the firmware again and check MD5-hash.
- π Wrong File Name: Rename the file update.zip (spaceless).
- π Unlocked bootloader: Unlock it via Mi Unlock (see section above).
- π± Incompatible firmware: download the version specifically for your model (check the device code in Settings) β The phone. β Model).
Error 2: "This package is for xxx devices; this is a yyy"
It means you're trying to flash firmware from another model, like the firmware for the Redmi Note 10 (mojito) won't work for the Redmi Note 10 Pro (sweet).
Decision:
- Check your device code: fastboot getvar product
- Download the firmware with exactly the same code from the Xiaomi Firmware Updater website.
Error 3: "Anti-rollback check fail"
This error appears if you are trying to flash an older version. MIUI, Xiaomi is blocking rollbacks to older versions due to changes in drivers.
Decisions:
- π Find firmware with the same or newer version of Anti-rollback (check in the file name, for example, V12.5.3.0.RKFMIXM).
- π‘ Use the Fastboot. ROM The same branch (Stable or Developer).
- π¨ In the last resort, go through EDL Mode (requires an authorized Xiaomi account).
Error 4: The phone does not turn on after the firmware ("brick")
If after firmware the phone does not respond to buttons or stuck on the logo, try:
- Press Power + Volume down for 20-30 seconds for forced reboot.
- If the phone is detected in fastboot, click the official Fastboot. ROM via MiFlash (select Clean All).
- If fastboot doesnβt work, try the mode. EDL (requires a special cable or testpoint).
β οΈ Note: If the phone is not detected in fastboot or in EDL, This is a hard brick. In this case, only the interconnection of eMMC or contacting the service center with an authorized Xiaomi account will help.
π‘
Always check firmware compatibility with your model and Anti-rollback version before firmware. Use official tools (MiFlash, TWRP) Avoid "left-handed" assemblies from questionable sources.
Recovery of data after reset via Recovery
Recovery removes all user data, including photos, contacts and messages, but some of the information can be recovered if you act quickly.
Method 1: Recovery through Mi Cloud
If you have synced with Mi Cloud on your phone:
- After reset, log in to the same Mi Account when setting up your phone.
- Select Restore from backup and specify the last backup date.
- Wait until the synchronization is complete (it can take up to an hour depending on the amount of data).
Reinstated:
- π Contacts.
- π¬ Communications (SMS And from Mi Messages).
- π Calendar and notes.
- π· Photos (if synchronization was enabled in the Gallery).
Method 2: Recovery through ADB (if the phone is turned on)
If you have reset, but the phone is still turning on, you can try to extract the data through ADB:
- Enable USB debugging in the developer settings.
- Connect your phone to your PC and open the command line.
- Copy data from internal memory: adb pull /sdcard/ C:\xiaomi_backup\ (substitute C:\xiaomi_backup\ pathway).
This method only works if the section /data It was not fully formatted.
Method 3: Recovery programs (if the phone is not turned on)
If the phone doesnβt boot, but is defined as a fastboot drive, you can try programs like DiskDigger or Recuva:
- Connect your phone to your PC in fastboot mode.
- Run the program and select scanning for deleted files.
- Save the data found on the PC.
The success of the recovery depends on whether the data was overwritten after the reset, and if new files were written to the phone, the chances of returning the old data are minimal.
π‘
To avoid data loss, regularly backup your data via Mi Cloud or TWRP (For important files, use cloud services (Google Drive, Yandex Disk) or physical drives.