Removing old firmware on Xiaomi devices is a procedure that may be required when switching to custom software, fixing system errors or after a failed update. Unlike a conventional factory reset, completely removing firmware involves cleaning all memory partitions, including boot, system and. This avoids conflicts between old and new OS files, but requires care: wrong actions can turn a smartphone into a brick.
In this article, we will discuss three official methods of removing firmware (via Fastboot, Recovery and Mi Flash Tool), as well as the nuances for different product lines β from budget Redmi to flagship Xiaomi 13 and gaming Black Shark. Special attention will be paid to preparation: without unlocked bootloader and the right drivers, even experienced users risk losing data or damaging the device. If you have never worked with firmware, start with the section βWhat happens if something goes wrongβ β there we will honestly tell you about the risks and methods of recovery.
Why can't you just reset the settings?
Many users mistakenly believe that resetting through Settings β Recovery and Reset completely removes the old firmware. In fact, this method only cleans user data (data), leaving intact:
- π System partitions (system, vendor) β here are stored OS files that may conflict with the new firmware.
- π Boot-partition β contains the kernel and loader, critical for starting the device.
- π± Modem β responsible for communication (mobile network, Wi-Fi, Bluetooth).
- π EEPROM β Non-volatile memory with unique device data (IMEI, serial).
It is because of the remnants of the old firmware after surface reset that users are faced with:
- π’ Slowdown of work - new versions MIUI They may be βstumbledβ by old libraries.
- π Cyclical reboot (bootloop) β a typical problem when updating βoverβ the old firmware.
- π΅ Communication problems β if the modem version does not match the firmware.
π‘
If after the update, the smartphone began to overheat or discharge quickly, it is not the new firmware that is to blame, but a conflict with old files in the vendor section.
Preparation of the device: what to do before removing the firmware
Before proceeding with removal, follow the mandatory steps:
- Unlock the bootloader. Without it, no method will work. On new Xiaomi devices (released after 2022), it requires a Mi Account to be linked to the device and a wait of 7-15 days (depending on the model) to unlock.
- Download the correct firmware. Only Fastboot firmware (a file with the.tgz or.zip extension) will be suitable for complete removal. Recovery ROM versions will not clean system partitions!
- Install drivers. To work with Fastboot and Mi Flash Tool, you need Qualcomm or MediaTek drivers (depending on your deviceβs processor).
- Charge your smartphone at least 60%, interrupting the process due to battery discharge can make the device inoperable.
To check the status of the loader:
- Turn off your smartphone.
- Press Volume Down + Power to enter Fastboot.
- Connect the device to the PC and enter the command: fastboot oem device-info If you see Device unlocked: true in the answer - the bootloader is unlocked.
How to unlock a bootloader on Xiaomi in 2026?
Attention to models with MediaTek! processors! For MTK devices (e.g. Redmi 10C, Poco M5), unlocking the bootloader is different - through the SP Flash Tool.
- π§ I need authorization files (auth_file), Which Xiaomi offers on request.
- π₯ The firmware should be in.bin format (not.tgz).
Method 1: Fastboot Firmware Removal (Recommended for Experienced)
This method is suitable for most Xiaomi devices on Qualcomm Snapdragon processors (for example, Xiaomi 12T, Poco F5, Redmi K50) and allows you to manually clean all partitions before installing a new firmware.
Step-by-step:
- Download Fastboot firmware for your model from the official Xiaomi website or the XDA Developers forum.
- Unpack the archive in a folder without Cyrillic characters (for example, C:\Xiaomi\fastboot_rom).
- Open the command line (Win) + R β enter cmd) and go to the firmware folder: cd C:\Xiaomi\fastboot_rom
- Connect your smartphone in Fastboot mode (clip Volume down + Power when the device is off).
- Enter the command to clean all partitions: fastboot erase boot fastboot erase system fastboot erase vendor fastboot erase data fastboot erase cache β οΈ Erase userdata or erase persist commands can be deleted IMEI! Use them only if you are sure of the consequences.
- Install a new firmware: fastboot flash boot.img fastboot flash system.img fastboot flash vendor vendor.img fastboot flash data.img (file names may differ - see the contents of the firmware folder.)
- Reboot the device: fastboot reboot
πΉ Smartphone charged at 60%+
πΉ bootloader unlocked (checked through fastboot oem device-info)
πΉ Qualcomm drivers (for Snapdragon) or MediaTek installed
πΉ Downloaded the right Fastboot firmware for your model
πΉ Backup of important data (photos, contacts, SMS)-->
What if the Fastboot canβt see the device?
- π Check the cable β use the original USB Type C.
- π₯οΈ Reinstall drivers via Mi Flash Tool (Driver button).
- π Try another one. USB-port (preferably) USB 2.0).
- π οΈ Disable driver signatures in Windows (via Run) β gpedit.msc).
Method 2: Using the Mi Flash Tool (for beginners)
Mi Flash Tool is Xiaomiβs official software that automates the firmware process and is suitable for users who are afraid of the command line but require strict adherence to instructions.
Algorithm of action:
- Download the Mi Flash Tool from the official website (the version should match your model).
- Unpack the Fastboot firmware into a folder (e.g., C:\Xiaomi\rom).
- Run the Mi Flash Tool on behalf of the administrator.
- Connect your smartphone in Fastboot mode (as in the previous method).
- In the utility, click Select and specify the path to the folder with the firmware.
- Select Clean mode: Clean all deletes all partitions (analogue of fastboot erase). Clean all and lock - the same, but blocks the bootloader (use only if you plan to sell the device); Save user data - leaves user data (not suitable for completely removing firmware!).
Flash
Mi Flash Tool Errors and Their Solutions
| Mistake. | Reason. | Decision |
|---|---|---|
| Can't find fastboot | Drivers or device not installed in Fastboot mode | Reinstall drivers via Driver in Mi Flash Tool |
| Flash is not done | Incompatible firmware or corrupted files | Download the firmware again, check the device model |
| Anti-rollback check fail | Trying to install an older firmware | Use the same or newer version of the firmware |
| Device is locked | The bootloader is not unlocked | Unlock the bootloader through the Mi Unlock Tool |
Through Fastboot (manual commands)
Mi Flash Tool (automatically)
Recovery (via the recovery menu)
Castom Recovery (TWRP)
Never stitched.-->
Method 3: Cleaning through Recovery (without PC)
If you don't have access to your computer, you can try removing firmware through stock or custom Recovery, which is less reliable because it doesn't clean all partitions, but it's good for eliminating non-critical errors.
Instructions for stock recovery:
- Turn off your smartphone.
- Press Volume Up + Power to enter Recovery.
- Choose a language (usually English or Chinese).
- Go to Wipe Data β Wipe All Data (full reset).
- Go back to the main menu and select Reboot β Reboot to Bootloader.
- Connect the device to your PC and install the firmware via Fastboot or Mi Flash Tool (as in previous methods).
For custom Recovery (TWRP):
- Install TWRP for your model (instructions are available on XDA Developers).
- Enter TWRP (Put Volume Up + Nutrition).
- Go to Wipe. β Advanced Wipe.
- Check the boxes: π Dalvik / ART Cache π± System π§ Data ποΈ Cache π Vendor (if any)
Swipe to Wipe
Install
.zip
π‘
Stock Recovery does not remove system and vendor partitions! you need a Fastboot or Mi Flash Tool to clean up completely.
β οΈ On devices with Dynamic Partition (e.g. Xiaomi 11, Redmi Note 11) cleaning through TWRP This can cause partition loss. Before using, check the support for your model in the forum. XDA.
What happens if something goes wrong?
Even with strict adherence to instructions, there is a risk of problems, and here are the most common scenarios and ways to solve them:
- π΄ Device not turned on (brick): If the screen is black after firmware is flashed or the Xiaomi logo is on, try it: π Connect to charging on 30 minutes (sometimes helps with battery discharge during firmware). π₯οΈ Repeat the firmware via Fastboot with the command fastboot flash boot boot.img. π Contact the service center (if the loader is blocked, self-recovery is impossible).
- π΅ No network or IMEI: If the mobile Internet is lost after firmware or the device does not catch the network, the modem or nvram partition is most likely damaged: π‘ Sweat files separately modem.img and nvram.img via Fastboot. π§ Use the tool. SN Write Tool for Recovery IMEI (requires a backup nvram).
- π Cyclical reboot: Is the device constantly restarting: π Incompatible firmware (for example, firmware for Redmi Note) 10 on the Redmi Note 10 Pro). π§ Damaged files boot.img or vendor.img. Solution: Sweat the device again by selecting the correct firmware version.
How to recover data after a failed firmware?
If you don't back up, the chances of getting back the data are minimal, but you can try.
- π Use programs like Dr.Fone or EaseUS MobiSaver (efficiency) ~30%).
- π Connect your smartphone in Fastboot mode and try to extract data via ADB pull (if the data partition is not damaged).
- πΎ Contact a data recovery lab (expensive but sometimes works).
Can I roll back the firmware to an older version?
Features for different Xiaomi lines
The process of removing firmware may vary depending on the series of devices, and below are the key nuances for popular lines.
| Linea | Features of firmware | Recommendations |
|---|---|---|
| Redmi Note (10/11/12) | Dynamic Partition is often used, making it difficult to clean through TWRP. | Use Fastboot or Mi Flash Tool with the Clean All option. |
| Poco (F/X/M) | Firmware is often based on MIUI, but with a modified core. | Download firmware only from the official Poco or XDA website. |
| Xiaomi 11/12/13/14 | Anti-Rollback 4+ protection, blocking rollbacks to older versions. | Check the firmware version before installing (e.g. V14.0.4.0.TKBCNXM). |
| Black Shark | Use the custom core for gaming functions. | Sew only through Fastboot with full cleaning (erase). |
| Mi A (Android One) | No MIUI, firmware closer to Android stock. | Use Google Fastboot Tools instead of Mi Flash Tool. |
Attention Xiaomi owners with MediaTek processor!
MTK devices (e.g. Redmi 9A, Poco C31) require a special approach:
- π§ I need firmware. SP Flash Tool + auth_file (requested by Xiaomi).
- π The firmware should be in scatter-file format (not.tgz).
- β οΈ A firmware error can lead to a loss IMEI (solve SN Writer).