Factory firmware recovery on Xiaomi smartphones is a procedure that may be required after a failed custom ROM experiment, system failure, or before selling the device. However, misconduct leads to a "brick" (complete failure) of the device in 37% of cases of unauthorized software intervention, according to statistics from Mi Service service centers for 2023. This article will help avoid errors and return stock MIUI without losing functionality.
We will look at all the current methods: from official recovery through the Mi Flash Tool to manual reset in Recovery Mode. Qualcomm/Mediatek. All instructions tested on the Redmi Note 12 Pro+, POCO F5 Xiaomi 13 Ultra with the latest versions MIUI 14/15.
Why you may need to return the factory firmware
The main reasons for the rollback to the stockware fall into three categories: software failures, preparation for sale, and firmware experiments. Let's take a closer look at each.
The most common situation is the deviceβs unstable operation after an air-to-air update (OTA) β 18% of Xiaomi users experience freezes, quick battery drains or spontaneous reboots after automatic updates, according to the 4PDA forum, and 65% of these cases are helped by a clean re-installation of factory firmware without saving user data.
- π System glitches: Endless reboots, application errors (com.android.phone), inability to connect to mobile networks.
- π¦ Preparing for Sale: Delete all data and return to the βout of the boxβ state for the new owner.
- π οΈ After the custom firmware: Return to the official MIUI After experimenting with LineageOS, Pixel Experience or Xiaomi.eu.
- π Unlocking the bootloader: Some operations (e.g., obtaining root rights) require prior return to the sewage software.
A less obvious reason is regional restrictions, such as if you bought Xiaomi for the Chinese market (China ROM) and want to upgrade to the global version (Global ROM) to support Google services, in which case a simple reset through settings will not help, you will need a complete firmware reflash.
Preparing the device: 7 critical steps
An unprepared device is the main cause of firmware recovery failures. Follow this checklist to avoid losing your IMEI or locking your bootloader:
βοΈ Mandatory preparation before firmware
Pay special attention to the firmware version. There are several types of ROM for Xiaomi devices:
| Type of firmware | Designation | For which devices | Features |
|---|---|---|---|
| Globally stable | miui_*Global* | All models for the international market | Google Services Support, Monthly Updates |
| China's stable | miui_*China* | Devices for China | Google, but with the latest MIUI features |
| EEA (Europe) | miui_*EEA* | Models for the European Union | GDPR Compliance, Limited Xiaomi Services |
| Russian | miui_*RU* | Official devices for Russia | Localized Services, Yandex by Default |
| Developer (Beta) | miui_*_weekly* | For testers. | Weekly updates, possible bugs |
To find out the current firmware version, go to Settings β About Phone β MIUI Version. For example, the inscription MIUI Global 14.0.5.0.TKLCNXM stands for the global stable firmware version 14.0.5 for the model codenamed tissot (Redmi Note 5/5 Plus).
β οΈ Warning: Firmware version for Qualcomm on a device with a Mediatek processor (and vice versa) will cause the communication module to fail. CPU-Z or on the GSMArena website.
Method 1: Recovery with Mi Flash Tool (Fastboot)
This is the official way from Xiaomi, which works even on locked devices (provided the bootloader has been unlocked previously).
Algorithm of action:
- Download the official firmware in.tgz format for your model (choose Fastboot ROM).
- Unpack the archive in a folder without Cyrillic characters (for example, C:\Xiaomi\fastboot_rom).
- Download and install the Mi Flash Tool (version 2023.4.28.0 or later).
- Turn off the phone and put it in Fastboot mode: Press Volume Down + Power for 10 seconds.
- Connect the device to your PC via USB. Qualcomm HS-USB QDLoader 9008 should appear in the Device Manager.
- In the Mi Flash Tool, click Select, specify the folder with the unpacked firmware, then select Clean All (Full Clean) or Clean All and Lock (Clean + Lock bootloader).
- Press Flash and wait until it is completed (usually 5-15 minutes).
If the process is stuck in the waiting for device phase, check:
- π Quality. USB-Cable (Try the Original Xiaomi Cable)
- π₯οΈ Are Qualcomm drivers installed (you can download here)
- π Try another one. USB-port (preferably) USB 2.0 on the back of the PC)
π‘
If the Mi Flash Tool gives an error critical partition flashing is not allowed, it means that your device has a locked bootloader.Unlock it through the official Xiaomi tool (it requires a tied Mi Account and waiting 72-168 hours).
β οΈ Warning: Clean all and lock mode will block the bootloader, making it impossible to install custom firmware in the future without re-unlocking. Use it only if you plan to stay on official software.
Method 2: Installation with Recovery Mode (for unlocked devices)
This method is simpler, but requires an unlocked bootloader and works only with firmware in.zip format. Suitable for devices on Qualcomm and Mediatek.
Step-by-step:
- Download Recovery ROM for your model with Xiaomi Firmware Updater.
- Rename the file to update.zip and place it at the root of the phoneβs internal memory (not in folders!).
- Turn off the device and press Volume up + Power to enter Recovery Mode.
- In the Restore menu, select the language (if available), then: Install update.zip to System β confirm the selection.
- After you complete the process, select Reboot to System.
If Recovery doesn't have an update.zip installation, you have a stock recovery without it.
What to do if you donβt have the option to update.zip in Recovery?
For devices on Mediatek (e.g. Redmi 9A, POCO C40), an additional step may be required β unlock OEM Unlock in the developer settings (Settings β About Phone β MIUI version β press 7 times, then return to Additional Settings β For Developers).
Method 3: Official reset via settings (without PC)
The easiest, but least effective way is to reset the settings menu, which doesn't reinstall the firmware, it just clears the user data, returns the settings to the factory settings.
- π± The device is stable, but you want to delete all the data.
- π You need to eliminate small glitches without complete flashing
- π¦ Prepare the phone for sale
Instructions:
- Go to Settings β About the phone β Reset settings.
- Select to erase all data (factory recovery).
- If necessary, enter the password from the Mi-account (if linked).
- Confirm the action and wait for the reboot (it will take 5-10 minutes).
β οΈ Note: On some models (Redmi Note 10 Pro, Xiaomi) 11T) After the reset, you may need to re-activate the device through the Mi Account that was previously linked. If you do not remember your account information, use the recovery service in advance.
This method will not help if:
- π« The device does not turn on or hung on the Mi logo
- π« Custom firmware installed (complete flashing is required)
- π« Change the firmware region (from China to Global)
Problem Solving: Frequent Errors and Corrections
Even if you follow the instructions accurately, you can get errors, and let's look at the most common ones and how to fix them.
| Mistake. | Reason. | Decision |
|---|---|---|
| Couldn't validate download in Mi Flash Tool | A damaged firmware file or incorrect folder | Pump the firmware, unpack again, check the path (without Cyrillic). |
| The device is not defined in Fastboot | No drivers or cable problem | Install Mi USB Driver, try another cable/port |
| Error: partition table doesn't exist | The partition table is damaged (often after unsuccessful firmware) | Use the Mi Flash Tool in mode flash_all_lock.bat |
| After the firmware no network (IMEI invalid) | The modem or nvram partition is damaged | Restore IMEI via Maui META (for Mediatek) or QCN (for Qualcomm) |
| Anti-rollback check fail | Trying to install an older version of MIUI | Download the firmware of the same or newer version |
If the device does not turn on after firmware (black screen or logo hover), try:
- Press Volume up + Power for 20-30 seconds for forced reboot.
- Repeat the firmware through Fastboot with the option of clean all and lock.
- If it doesnβt help, use the official service center.
π‘
If the sound is lost after the firmware, the camera or fingerprint sensor is not working, this is a sign of incompatibility of the firmware with the hardware platform.
Specifics for different Xiaomi models
Some Xiaomi devices have unique features when it comes to firmware. Let's look at the most popular models.
For Redmi Note 11 Pro/Pro+ (veux/peux):
- πΉ It requires a tagged firmware veux_global or peux_global
- πΉ In the case of TWRP You must disable dm-verity check (use the fastboot command). --disable-verity --disable-verification flash vbmeta vbmeta.img)
- πΉ After firmware, manual network setup may be required (APN)
For POCO F3/F4 (alioth/munch):
- πΉ These models are sensitive to the version TWRP β Use only official builds from twrp.me
- πΉ When you run through Fastboot, you may experience an invalid sparse file format at header error β download the firmware only from Xiaomi Firmware Updater
For Xiaomi 12/13 series:
- πΉ Use the Mi Flash Tool 2023.1.1 or later (older versions do not support newer models)
- πΉ Unlocking the bootloader requires a tied Mi Account older than 30 days.
- πΉ The firmware for these models weighs 4-5 GB β Make sure there is enough space on the disk
π‘
For devices on Mediatek (e.g. Redmi 10A, POCO M4 Pro), you can use the SP Flash Tool instead of the Mi Flash Tool. Download it from the official spflashtool.com website and follow the instructions for your model.