Resetting Xiaomiβs smartphone to factory settings via a computer is the only way to guarantee that all data is deleted if the phone is locked, does not respond to the sensor, or needs to be prepared for sale. Unlike the standard Settings β Reset, the PC method allows you to bypass the locking of your Mi Account account, remove encryption, and even restore the device to work after a firmware failure.
In this article, we will discuss all available ways to completely erase data from Xiaomi, Redmi or other devices. POCO From official tools (Mi Flash Tool) to alternative solutions for devices with unlocked bootloader. IMEI and methods of avoiding them β this is critical for models on MediaTek processors (for example, Redmi Note 11 or the other two). POCO X5 Pro).
Resetting Preparation: What to Do Before Connecting to a PC
Before you start erasing data, make sure that the key conditions are met, and without them, the procedure can result in a device being knocked out (completely inoperable) or a loss of network functionality.
- π Battery charge of at least 60%. When discharged during the procedure, the smartphone may stop turning on.
- π Unlocked bootloader (for methods with firmware via Fastboot). Check status with the command fastboot oem device-info - if Device unlocked: false, you will need official unlock via Mi Unlock Tool.
- π» Installed drivers. Xiaomi needs Qualcomm HS-USB QDLoader 9008 (regime EDL) and ADB/Fastboot Download them from Xiaomi Community website.
- π Backup copy IMEI (You can use tools like MediaTek. MTK Droid Tools or Maui META, save files NVRAM and NVRAM.bak.
β οΈ Note: On devices with MediaTek processor (e.g. Redmi) 10C, POCO M5) Reset via Fastboot without backup IMEI The recovery is possible only through a service center or specialized boxes (for example, a UFi Box).
If you are not sure about the CPU model, check it through the CPU-Z app or search for the name of your Xiaomi model + βprocessorβ. For example, for Xiaomi 13T Pro it is Dimensity 8200 Ultra (MediaTek), and for Xiaomi 12 Pro it is Snapdragon 8 Gen 1 (Qualcomm).
Method 1: Complete reset via Mi Flash Tool (official method)
Mi Flash Tool is a Fastboot firmware from Xiaomi that allows you to install a clean version of MIUI that automatically erases all user data, and works on all models, but requires an unlocked bootloader.
Download the Mi Flash Tool from the official website (version at least 2023.4.1 to support MIUI 14/15). You will also need firmware for your model in.tgz or.zip format. Find it on resources like Xiaomi Firmware Updater, selecting the Global or EEA region.
βοΈ Preparation for firmware through Mi Flash Tool
Instructions for erasure:
- Unpack the firmware in a folder without Cyrillic characters (for example, C:\MIUI\redmi_note_12_global).
- Run the Mi Flash Tool on behalf of the administrator.
- Connect the phone to your PC by holding Volume Down + Power until the Fastboot logo appears.
- In the program, click Select and specify the path to the folder with the firmware.
- Select Clean All mode and press Flash.
- Wait for the end (10-15 minutes) and the phone will reboot automatically.
β οΈ Note: If you have an anti-rollback error in the Mi Flash Tool, you are trying to flash an older version. MIUI, Download firmware with a higher build number (for example, instead of the one installed now). V14.0.2.0.TLCRUXM take V14.0.4.0.TLCRUXM).
Once the firmware is in place, the device will be as new as it is: no Mi Account, no password, and with a clean system. However, this method does not bypass account binding if it was activated before the reset. It will require additional software (e.g., XiaomiTool V2) to delete it.
Method 2: Erase data via ADB (without firmware)
If you just need to delete data without reflashing the device, use ADB commands. This method works even on locked phones if USB debugging is enabled (Settings β About Phone β MIUI version β 7 times tap to activate the developer mode, then Settings β Additional β For Developers β Debugging over USB).
Install Googleβs ADB and Fastboot Tools. Connect your phone to your PC and execute on the command line (Win + R β cmd):
adb devicesIf the device is displayed (e.g., 123456789abcdef device), enter:
adb shell
wipe_dataFor a complete reset (including internal memory) use:
adb shell recovery --wipe_dataIf the phone doesnβt respond, try restarting it to recovery:
adb reboot recoveryThen, select Wipe Data β Wipe All Data (manage volume and power buttons).
π‘
If the team wipe_data Try the alternative method: adb shell am broadcast -a android.intent.action.MASTER_CLEAR. This simulates reset through system settings.
Method 3: Using Custom Recovery (TWRP)
For advanced users, the best option is to install TWRP (Team Win Recovery Project), a custom recovery that allows you not only to erase data, but also to back up, restore it or flash a modified firmware.
Download the current version of TWRP for your model from twrp.me. Make sure the version supports your CPU (for example, for Redmi Note 10 Pro with Snapdragon 732G, TWRP 3.7.0 will work).
Instructions for installation and discharge:
- Turn your phone to Fastboot (Volume Down + Power) mode.
- Connect to your PC and check the connection with the command: fastboot devices
- TWRP: fastboot flash recovery twrp-3.7.0-joyeuse.img (replace joyeuse with your model's code name).
- Reboot Recovery: Fastboot Reboot Recovery
- In TWRP, select Wipe β Format Data, enter Yes and confirm.
- For full erasure, also run Wipe β Advanced Wipe and mark Dalvik, Cache, System, Internal Storage.
| Xiaomi model | Code name | Supported by TWRP | Features |
|---|---|---|---|
| Redmi Note 11 Pro+ 5G | veux | 3.6.2 | Requires disabling the avb (fastboot) check --disable-verity --disable-verification flash vbmeta vbmeta.img) |
| POCO X4 Pro 5G | veux | 3.7.0 | It only works with firmware based on Android 12 |
| Xiaomi 12T Pro | diting | 3.7.0 (informal port) | No encryption support, data formatting after firmware is required |
| Redmi 10 2022 | selene | 3.6.1 | Supports OTG for backup to the flash drive |
β οΈ Note: On Dynamic Partition devices (all Android 10 models)+) systemformation TWRP It's not going to be downloadable, and you can only restore it by flashing it over the Fastboot.
Method 4: Reset via EDL mode (for "bricks")
If the phone doesnβt turn on (brick), isnβt detected in Fastboot, or doesnβt respond to buttons, then Emergency Download Mode (EDL) is left to flash the device at a low level, bypassing all locks, but Xiaomi with Qualcomm processors will require an authorized account (or paid credits on the Xiaomi site).
For MediaTek, the EDL mode is called BROM and does not require authorization, but the risk of losing IMEI is higher.
- π§ Mi Flash Pro or QFil (for Qualcomm) / SP Flash Tool (for MediaTek).
- π Firmware in.mbn (Qualcomm) or.scatter (MediaTek) format).
Instructions for Qualcomm:
- Download the firmware for EDL from the Xiaomi Firmware Updater site (look for files marked EDL).
- Open Mi Flash Pro, select firmware and connect the phone in EDL mode: Turn off the phone β Press Volume Up + Volume Down β Connect the cable to the PC If the phone does not go to EDL, close the contacts Test Point (located on the motherboard, requires disassembly of the device).
- In the program, select Clean all and lock (block the bootloader after firmware) and press Flash.
Where to find Test Point on Xiaomi?
For MediaTek, use the SP Flash Tool:
- Download the firmware with the.scatter extension.
- In the program, click Scatter-loading and specify the file.
- Select Firmware Upgrade (saves IMEI) or Format All + Download (complete erasure).
- Connect the phone turned off (without pressed buttons) β the program must determine it.
- Press Start and wait until it is completed (5-10 minutes).
π‘
EDL mode is the last chance to bring your phone back to life, but it requires technical skills. If you're not sure what you're doing, go to the service center. The wrong firmware can make the device unusable for recovery.
What to do after resetting: recovery and verification
After successfully erasing data, follow a few critical steps to make sure the device is working:
- Check it out. IMEI: dial *#06#. If zeros or Invalid are displayed instead of the number, you will need to restore via Maui META or SN Writer (for MediaTek) or QCN-file (for Qualcomm).
- Activate the device: connect to Wi-Fi and complete the initial setup. If this device is locked, then the bootloader is locked, unlock it through the Mi Unlock Tool.
- Update your firmware: go to Settings β About Phone β System Update and install the latest version of MIUI.
- Check sensors: Use the Phone Tester app (available on Google Play) to make sure the camera, gyroscope, proximity sensor is working.
If the phone doesnβt turn on or loads into Fastboot after reset, try:
- π Reflash the device through the Mi Flash Tool with the choice of Clean all and lock mode.
- π§ Install another version MIUI (For example, try Global instead. EEA china).
- π Contact the service center if the problem is hardware related (e.g. damaged eMMC memory).