Returning stock firmware to Xiaomi smartphones is a challenge that users face after failing to experiment with custom ROMs, crashing systems, or preparing a device for sale. The original MIUI firmware guarantees stable operation, full compatibility with updates, and maintaining a warranty (if it is still valid), but the recovery process has nuances, from unlocking the bootloader to choosing the right version of software for a particular model.
In this article, we will look at all the working methods of returning to stock firmware, from official recovery through the Mi Flash Tool to manual installation through Fastboot and Recovery. Particular attention will be paid to the typical errors that interrupt the process (for example, anti-rollback or blocking a Mi Account), and how to get around them. If you have never done firmware, donβt worry: the instructions are adapted for beginners, with step-by-step screenshots and explanations of terms.
Why might you need a stock firmware?
Returning the original firmware Xiaomi is required in several cases:
- π After installing custom firmware (e.g. LineageOS or Pixel Experience), if it is unstable or key features are missing (e.g., LineageOS or Pixel Experience, IR-β The Blastor or Always On Display).
- π οΈ For repair under warranty: service centers refuse to service devices with modified software.
- π± In preparation for the sale: stock firmware increases the buyerβs trust and eliminates problems with the Mi Account account.
- π After critical failures, when the smartphone does not turn on, hovers on the Mi logo or gives a bootloop error.
- π To unlock the bootloader, if it was previously blocked due to unofficial software.
It's important to understand that going back to stock firmware isn't always a factory reset. Settings β Factory Reset reset won't bring back the original MIUI if you installed custom firmware, and that requires a complete flashing of the device.
β οΈ Note: If your device is blocked by your Mi Account (after a reset or purchase of a used one), first unlock it through the official account.xiaomi.com service!
Preparation for firmware: what to do before the start
Before you start restoring stock firmware, follow the mandatory steps:
Make a backup copy of the data (photos, contacts, messages)|Check the battery level (minimum 60%)|Download the correct firmware version for your model|Install Xiaomi drivers on PC|Prepare. USB-cable (original or high quality)
-->
Pay special attention to firmware selection. The wrong MIUI version can turn a smartphone into a brick because of the anti-rollback mechanism.
- Find out the exact device model in Settings β About Phone β Model (e.g. Redmi Note 11 Pro+ 5G has veux code).
- Check the current version of MIUI in Settings β About Phone β MIUI version (e.g. MIUI 14.0.5 Global).
- Download the firmware of the same or newer version that is installed now.
| Source | Reference | What firmware? |
|---|---|---|
| Official Xiaomi website | new.c.mi.com | Stock global and Chinese firmware (Fastboot/Recovery) |
| Xiaomi Firmware Updater | xiaomifirmwareupdater.com | Archival and test versions of MIUI |
| 4PDA (forum) | 4pda.to | Firmware for rare models and modifications |
If you are not sure about your firmware choice, use the XiaomiTool V2 tool β it will automatically determine the model and offer compatible versions of MIUI.
Official Global (Global)|Official Chinese (China)|European (EEA)|Castomy on the base MIUI|Another.-->
Method 1: Recovery with Mi Flash Tool (Fastboot)
This is the most reliable way to get back the stock firmware, but it requires an unlocked bootloader and a PC connection.
- π± Not included or got stuck on the Mi logo.
- π§ Have an unlocked boot loader (if not, see the section about unlocking).
- π₯οΈ Can connect to the PC in Fastboot mode.
Step-by-step:
- Download and install: Mi Flash Tool (the official utility from Xiaomi). Qualcomm or ADB drivers (depending on the device's processor).
- Connect your smartphone to your PC in Fastboot mode: 1. Turn off the device. 2. Press Volume down + Food before the appearance of the hare in the hat-ushank (Fastboot mode). 3. Connect USB-cable.
- Launch Mi Flash Tool: Unpack the downloaded firmware (a file with the.tgz extension) into a folder without Cyrillic characters. In Mi Flash, click Select and specify the path to the firmware folder. Select the firmware mode: Clean all - complete cleanup (recommended in case of failures). Clean all and lock - clean + lock the bootloader (only if you sell the phone!). Save user data - save data (not always works stably).
Start the firmware:
Flash
What to do if the Mi Flash Tool is in error?
β οΈ Warning: If the device doesn't turn on after firmware for more than 15 minutes, don't panic! some Xiaomi models (like the Redmi Note 10 Pro) boot up to 20 minutes for the first time. + Volume up 20 seconds for forced reboot.
Method 2: Installation via Recovery (without PC)
This method is suitable if:
- π± The device is powered on and loaded into the system (or at least in Recovery).
- π The bootloader is unlocked (if not, see the section below).
- π You have firmware in.zip format for installation via Recovery.
The advantage of the method is that you donβt need a PC, but it doesnβt work on all models (for example, a Poco F3 or Mi 11 might require a Fastboot).
- Download firmware for Recovery: The file must have a name of the type miui_BLOCKNAME_global_V14.0.1.0.TKWMIXM_... And the.zip extension. Don't unpack the archive!
- Transfer the firmware to the device: If the phone turns on, copy the file to the root folder of internal memory. If the phone does not turn on, use ADB Sideload (see instructions below).
Download to Recovery:
1. Turn off the device.
2.Put Volume Up + Power before the Mi Recovery logo appears.
3. Select the language (if available).Install the firmware:
- Select Install update.zip to System (or similar).
- Specify the path to the downloaded.zip file.
- Confirm the installation and wait for completion.
- Clean the cache: After installation, select Wipe & Reset β Wipe Cache.
- Reset the device.
π‘
If Recovery doesnβt have a firmware installation, your device uses OrangeFox or TWRP. In this case, select Install β Select Storage β Internal Storage and specify the firmware file.
If the device is stuck on the logo after installation, try repeating the process with a pre-reset (Wipe Data in Recovery).
How to unlock a bootloader on Xiaomi (if it is blocked)
Most Xiaomi smartphones come with a locked bootloader.To install the stock firmware via Fastboot or Recovery, it needs to be unlocked.The official method requires linking the Mi Account to the device and waiting (usually 7 days).
Step-by-step:
- Link your Mi Account to your device: Go to Settings β Xiaomi Account and log in. To Settings β Additional β Developer β Mi Unlock Status, link your account to your device.
- Download Mi Unlock Tool: Install the utility on your PC (Windows 7/10/11) and log in to it under the same Mi Account as your phone.
Connect the device in Fastboot mode:
1. Turn off the phone.
2. Press Volume Down + Nutrition.
3. Connect to the PC.Run the unlock:
- In Mi Unlock Tool, press Unlock.
- If you receive a notice of waiting, wait until the time is specified (usually 168 hours = 7 days).
- Once unlocked, the phone will automatically perform Wipe Data (all data will be deleted!).
β οΈ Note: Some models (e.g. Xiaomi) 12T or Redmi K50) They have additional protection - after unlocking the bootloader, they can require you to enter a password from Mi Account even after resetting!
How to get around the wait of 7 days?
Frequent mistakes and their solutions
When you go back to stock firmware, you're going to have a problem, and we've collected some of the most common bugs and ways to fix them.
| Mistake. | Reason. | Decision |
|---|---|---|
| Anti-rollback check fail | Trying to install the MIUI version is older than the current one. | Download the firmware of the same or newer version (check in Settings β About phone). |
| Device is locked (in Mi Flash) | The bootloader is locked. | Unlock the bootloader through the Mi Unlock Tool (see section above). |
| The device does not turn on after firmware | Incompatible firmware or interrupted process. | Repeat the firmware through Fastboot with a complete clean (Clean all). |
| Invalid image format (in Recovery) | Try to install firmware for Fastboot via Recovery. | Download the firmware in.zip (for Recovery) format, not.tgz (for Fastboot). |
| Mi Account Locked After Resetting | The device is linked to the account of the previous owner. | Contact Xiaomi Support with proof of purchase. |
If your error is not listed in the table, check the firmware log (in the Mi Flash Tool it is saved in the folder with the utility) and look for a solution on the 4PDA or XDA Developers forums.
β Compatibility of firmware with device model.
β Version MIUI (below the current!).
β Battery charge (minimum 60%).
β Is the loader unlocked.
-->
How to check that the firmware is installed successfully
After restoring the stock firmware, make sure everything went correctly:
- Check out MIUI version: Go to Settings β About Phone β MIUI version. Compare with the downloaded firmware version (should match).
- Make sure there are no root rights: Install the Root Checker app. If root access is not available, the firmware is stock.
Check the status of the loader:
1. Turn off the device.
2.Put Volume Down + Power (Fastboot mode).
3. Connect to the PC and enter the command:
adb devicesIf you see your device in the answer, the bootloader is unlocked. If not, check the drivers.
Test the basic functions:
- Camera, fingerprint sensor, NFC, IR-blaster.
- Mobile network and Wi-Fi.
- Charging and recognition of accessories (headphones, Power Bank).
For rare models (like the Redmi Note 9 Pro Max for India), look for firmware on the Xiaomi Firmware Updater.