Guide to fixing the error of accidentally selecting Clean All And Lock when flashing Xiaomi ROM.
15/03/2026 12:19 · 515 views
When flashing a ROM on a Xiaomi phone using Mi Flash Tool, many people accidentally select the "Clean All And Lock" option. After flashing, the phone may encounter errors such as:
Unable to boot into the operating system
Stuck on logo (bootloop)
Unable to enter fastboot mode
Black screen
This is a fairly common error when flashing ROMs on Xiaomi phones. This article will guide you on how to fix it.
1. What is Clean All And Lock?
Mi Flash Tool has three options:
Clean All
Save User Data
Clean All And Lock
Meaning of each option:
Clean All: erases all data and flashes a new ROM
Save User Data: retains user data
Clean All And Lock: erases data, flashes the ROM, and locks the bootloader
The problem occurs when you flash a ROM from a different region (for example, a China ROM to a Global ROM). When the bootloader is locked but the ROM is not the original version, Xiaomi's security system will not allow the phone to boot, leading to a bricked device.
2. Check if your device can still enter Fastboot mode
First, try entering Fastboot mode by:
Holding the Power button + Volume Down button.
If the FASTBOOT logo appears on the screen, the device can still be recovered.
3. How to fix if Fastboot mode is still available
Step 1: Download the official Fastboot ROM
Download the correct official Xiaomi Fastboot ROM that matches your device model.
Step 2: Flash again using Mi Flash Tool
Follow these steps:
Open Mi Flash Tool
Select the extracted ROM folder
At the bottom, select Clean All
Important note:
Do not select Clean All And Lock
Then press Flash and wait for the process to complete.
Step 3: Restart your device
After flashing, press Reboot to restart your phone.
Usually, the device will restart normally if the ROM is the correct version.
4. Cases where the device cannot enter Fastboot mode
If the device shows the following signs:
Completely black screen
Unable to enter fastboot mode
The computer does not recognize the device
then the device may be severely bricked.
In this case, you need to use EDL Mode (Emergency Download Mode) to re-flash the ROM. However, this mode usually requires a licensed Mi account or assistance from a phone repair shop.
5. Notes when flashing Xiaomi ROMs
To avoid similar errors, when flashing a ROM you should:
Always select Clean All
Do not select Clean All And Lock if you are flashing a ROM from a different region
Download the correct ROM for your device model
Check if the bootloader is unlocked
Conclusion
The error of accidentally selecting Clean All And Lock when flashing Xiaomi ROMs is quite common among those who like to tinker with their phones. Fortunately, if the device can still enter fastboot mode, the chances of fixing it are quite high by re-flashing the correct ROM and not locking the bootloader.
Hopefully, this guide will help you save your device.