Xiaomi rollback to old firmware: 3 proven ways (2026)

Have you updated your firmware on Xiaomi, but the new version of MIUI is unstable? Does the battery go down faster, apps fly out and the interface become less user-friendly? A rollback to the previous version is a real solution, but the process requires caution. Unlike a conventional update, a rollback can lead to data loss, device lockdown or even a "brick" (complete failure) if the sequence of actions is disrupted.

In this article, three working rollback methods (via Recovery, Fastboot and Mi Flash Tool) are relevant for 2020-2026 models, including Redmi Note 12, POCO X5, Xiaomi 13 and others. We will discuss how to choose the right firmware version, unlock the bootloader (if required) and avoid typical errors. Importantly, after a rollback on some devices, antirollback protection may work, in which case you will need to bypass through EDL- mode.

1.Preparation for rollback: what to do before the start

The first step is to save important data. Firmware rollback almost always results in a reset and in some cases, a full formatting of internal memory. Use Mi Cloud, Google Drive, or a physical backup on your PC to back up:

  • πŸ“± Contacts, SMS, Call log (export through Settings) β†’ Google β†’ Backup)
  • πŸ“· Photos and videos (copy to computer or cloud)
  • 🎡 Music, documents, downloads (check Download and DCIM folders)
  • πŸ”‘ Logins and passwords (use Google Smart Lock or Password Manager)

Next, check the device model and the current version of MIUI, which is critical because the firmware is strictly code-named.

  • πŸ“± In Settings β†’ About Phone β†’ Version MIUI (e.g., V14.0.5.0.TMCRUXM)
  • πŸ”§ Through ADB: connect your phone to your PC and type in the command: adb shell getprop ro.product.device (example of response: toco for Xiaomi 12 Pro)

⚠️ Warning: If your device was purchased in China (China ROM), a rollback to the global version (Global ROM) may block the network (IMEI). Check the firmware region in Settings β†’ About Phone β†’ The MIUI version must match the original.

The final stage of preparation is to unlock the bootloader (if it is blocked), without this, a rollback via Fastboot or Mi Flash Tool is impossible.

adb reboot bootloader

If the screen says Device unlocked, the bootloader is unlocked. If Device locked, you will need to officially unlock through the Mi Unlock Tool (instructions in the next section).

πŸ“Š What Xiaomi model do you want to roll back?
Redmi Note 11/12
POCO X3/X4/X5
Xiaomi 12/13/14
Another model

2. Unlock the loader (if required)

The Xiaomi bootloader is blocked by default to protect against unauthorized changes, and to unlock it, you need a Mi Account tied to the device and the official Mi Unlock Tool software. The process takes 7 to 30 days (due to Xiaomi's policy).

Step-by-step:

  1. Download Mi Unlock Tool from the official website.
  2. Enable Developer Options (7 times click on the MIUI version in the settings) and activate USB Debugging and OEM Unlock.
  3. Sign in to Mi Account on your phone and link it to your device in Settings β†’ Xiaomi Account β†’ Cloud Services β†’ Find device.
  4. Connect your phone to your PC in Fastboot mode (adb reboot bootloader command) and start the Mi Unlock Tool.
  5. If you receive a message about the need to wait, wait for the specified time (usually 168 hours).

⚠️ Warning: Once the bootloader is unlocked, all data (including internal memory) will be deleted from the device.

If the unlock fails:

  • πŸ”„ Try another USB- cable or port (better use the original cable and port USB 2.0).
  • πŸ“± Make sure the phone is enabled with Developer Mode and Unlock OEM.
  • 🌐 Use VPN with China (sometimes helps with Xiaomi server errors).

β˜‘οΈ Preparation for unlocking the loader

Done: 0 / 5

3. Method 1: Recovery (without PC)

The simplest method, but it only works if:

  • πŸ“± The device is not locked (the bootloader is unlocked or never locked).
  • πŸ”„ You roll back to the version that was installed earlier (no anti-rollback).
  • πŸ“ You have an official ZIP- firmware file for your model.

Instructions:

  1. Download the desired version of MIUI from the official website (link). Choose Recovery ROM (not Fastboot!).
  2. Rename the file to update.zip and move it to the root folder of the phone’s internal memory.
  3. Go to Recovery: Turn off the phone, then press Volume up + Power.
  4. From the Recovery menu, select Install update.zip to System (on some devices, the option may be called Apply update from SD card).
  5. Confirm the installation and wait for completion (5-10 minutes).

If after the reboot the phone is stuck on the MI logo:

  • πŸ”„ Try resetting your settings via Recovery (Wipe data β†’ Wipe all data).
  • πŸ“± If it doesn't work, repeat the process with another firmware version.

⚠️ Warning: On some devices (e.g., the Redmi Note 10 Pro), a rollback via Recovery may result in an Anti-rollback check fail error.

What is an anti-rollback?
This is Xiaomi protection, which blocks the rollback on the MIUI version over a certain date. For example, if your device has upgraded to MIUI 14 and you are trying to install MIUI 13, the lock can work, and you can only get around it through EDL- mode (requires an authorized Xiaomi account).

Method 2: Recoil via Fastboot (from PC)

This method is suitable for most devices, including those that do not work Recovery.You will need a PC with installed drivers ADB/Fastboot and the official Fastboot ROM.

Steps:

  1. Download Fastboot ROM for your model from the official website. The file will be in.tgz format - unpack it.
  2. Connect your phone to your PC in Fastboot (adb reboot bootloader) mode.
  3. In the folder with the unpacked firmware, run the file flash_all.bat (for Windows) or flash_all.sh (for Linux/Mac).
  4. Wait for the process to be completed (10-15 minutes) and the phone will reboot automatically.

If the script gives you an error:

Mistake.Reason.Decision
fastboot: not foundThere are no ADB/Fastboot drivers.Install Platform Tools from Google
Device not foundPhone not found on FastbootCheck the USB- cable, port, drivers. Try the command fastboot devices.
Anti-rollback check failTrying to roll back on an too old versionUse a newer firmware or bypass through EDL

For devices with a locked bootloader, this method is not suitable – unlock it first (Section 2).

fastboot flash system system.img

(substitute system.img to the actual file name from the firmware folder).-->

5. Method 3: Recoil through the Mi Flash Tool (for experienced)

Mi Flash Tool is Xiaomi’s official firmware utility for devices, and it supports all models, but requires an unlocked bootloader and the right firmware.

Step-by-step:

  1. Download and install the Mi Flash Tool.
  2. Download Fastboot ROM for your model and unpack it.
  3. Connect your phone to Fastboot (adb reboot bootloader) mode.
  4. In the Mi Flash Tool, click Select and specify the path to the firmware folder.
  5. Select firmware mode: Clean all - complete clean (recommended when rolling back); Clean all and lock - cleaning + lock bootloader (do not use!); Save user data - save data (may lead to errors).

Flash

If the Mi Flash Tool is 0x80070002 error:

  • πŸ”„ Reinstall Xiaomi drivers manually through Device Manager.
  • πŸ“₯ Download the firmware again (maybe the file is corrupted).
  • πŸ–₯️ Try a different PC or version of Windows (sometimes Windows 10 helps instead of 11).

⚠️ Warning: Clean all and lock mode will block the bootloader after you have firmware. Use it only if you are sure you won't change the firmware anymore!

πŸ’‘

The Mi Flash Tool is the most reliable way to roll back, but requires an unlocked bootloader and the right firmware. Always use Clean all mode to avoid conflicts.

6. Solving errors after rollback

Even if the pullback is successful, there may be problems, and here are the most common ways to solve them:

Problem.Possible causeDecision
Phone not turned on (black screen)Incorrect firmware or interrupted processRepeat the firmware via Fastboot or EDL
Hanging on the MI logoData conflict after rollbackReset your settings via Recovery (Wipe Data)
No network (IMEI missing)Incompatible Region Firmware (China β†’ Global)Restore IMEI through QCN- file or run the correct version
The Anti-rollback errorTrying to roll back on an too old versionUse the firmware newer or bypass through EDL

If the root rights or custom recovery (TWRP) are missing after the rollback:

  • πŸ”„ Reinstall Magisk or TWRP via Fastboot.
  • πŸ“± Check the compatibility of the Magisk version with your firmware.

To restore the IMEI (if it has dropped):

  1. Download the original QCN- file for your model (see the 4PDA or XDA forums).
  2. Use tools like QPST or Maui META to recover.
  3. If you are not sure, contact the service center.
How to restore IMEI after a rollback?
IMEI is stored in modemst1 and modemst2. If the firmware is not correct, these partitions can be erased. Recovery requires a QCN backup or help from a service center. Self-editing IMEI without a backup can lead to permanent network loss!

7 How to Avoid Anti-Rollback (Anti-Rollback)

Anti-Rollback is a Xiaomi protection mechanism that blocks the rollback of MIUI versions older than a certain date, for example, if your device has upgraded to MIUI 14 and you are trying to install MIUI 13, an error may occur:

Anti-rollback check fail!

To circumvent this limitation:

  • πŸ” Check the current version of your device's Anti-Rollback, which you can find out through ADB: adb shell getprop ro.build.version.incremental or in the build.prop file (section ro.vendor.build.security_patch).
  • πŸ“… Select a firmware with a data patch no older than the current one. For example, if you have a patch from 2023-10-01, roll back to the version with the patch 2023-09-01 or later.
  • πŸ”§ If you want to roll back to an older version, use EDL- mode (requires an authorized Xiaomi account and a special cable).

List of anti-rollback devices and their limitations:

ModelMinimum version of MIUIDate of introduction of Anti-Rollback
Redmi Note 10 ProMIUI 12.52021-04-01
Xiaomi 11/11TMIUI 132021-12-01
POCO X3 ProMIUI 12.5.32021-07-01

If you are not sure about the version of the anti-rollback, check the 4PDA or XDA-Developers forums using your device’s codename.

8. Alternative methods: EDL and custom firmware

If standard methods did not help (for example, due to antirollback), two options remain:

1 Firmware through EDL- Mode

EDL (Emergency Download Mode) is a service mode that allows you to flash a device even with a locked bootloader.

  • πŸ”Œ Specialist EDL-cable (or closing contacts on the board).
  • πŸ’» Mi Flash Pro or QFilm.
  • πŸ”‘ Authorized Xiaomi Account (for new devices).

The process is complex and risky – recommended only for experienced users or in service centers.

Installation of custom firmware

If the official rollback is not possible, you can install custom firmware based on LineageOS, Pixel Experience or crDroid.

  • πŸ”„ There are no anti-rollback restrictions.
  • πŸ“± More recent versions of Android.
  • πŸ›‘οΈ There is no extra bloatware from Xiaomi.

Disadvantages:

  • ⚠️ Loss of official support and guarantees.
  • πŸ“Ά There may be problems with the camera, NFC or network (depending on the firmware).

For custom firmware installation:

  1. Unlock the bootloader (Section 2).
  2. Install TWRP or other custom Recovery.
  3. Download the firmware from XDA-Developers.
  4. Flow through Recovery.

πŸ’‘

EDL and custom firmware are extreme measures, and if you're not sure about your skills, you should go to a service center to avoid turning your phone into a brick.

FAQ: Frequent questions about Xiaomi rollback

Can you roll back Xiaomi without losing data?
Theoretically, yes, if you use Recovery and select Save user data in the Mi Flash Tool. However, in practice, this often leads to errors (hangs, application crashes).
What if the phone doesn’t turn on after the rollback?
First, try going to Recovery (Loudness Up). + Power) and make Wipe data. If it doesn't work, repeat the firmware on Fastboot or EDLIf the screen is black and there is no response to the buttons, the boot loader may have been damaged (repair required).
How do I know which firmware was installed before?
If you don't remember the previous version, check: πŸ“± In Settings β†’ About Phone β†’ Version MIUI (if the phone is turned on). πŸ”§ Through ADB: adb shell getprop ro.miui.ui.version.name πŸ“ In the /system/build.prop file (if there is root access). If the phone isn't turned on, look for the serial number information on the forums.
Can Xiaomi roll back from MIUI 14 to MIUI 12?
Probably not, because of the anti-rollback. Xiaomi blocks rollbacks on versions older than 1-2 years. Trying to install MIUI 12 on a device with MIUI 14 will lead to an error Anti-rollback check fail. The only bypass is firmware through EDL with an authorized account.
Will Google Pay work after the rollback?
If you’ve rolled back to the official firmware without root and custom Recovery, Google Pay will work. If you’ve unlocked a bootloader or installed custom software, you’ll need to re-certify your device via SafetyNet (use Magisk with Universal SafetyNet Fix).