Resetting Xiaomiβs smartphone to factory settings via a computer is the only way to bring the device back to life when standard methods donβt work. You may have forgotten the pattern lock, the phone is stuck on the MIUI logo, or the system gives critical errors after a failed update. In such cases, connecting to a PC and using the official Mi Flash Tool or Fastboot tools becomes a salvation.
This guide will take you through all the steps from preparing drivers to choosing the right firmware for your model, and we will look at two main methods: Fastboot (for unlocked bootloader) and EDL (for critical crashes), and explain how to avoid common errors, such as Invalid image format or Device not found.
If you've never flashed a smartphone before, don't worry, we've broken it down into simple steps with explanations, and the rule of thumb is, follow the instructions consistently and don't miss driver training, and that's going to save you 90 percent of the problems.
Preparation for resetting: what to do before the start
Before you connect Xiaomi to your computer, make sure all the prerequisites are met. Skipping at least one item can lead to errors like Waiting for device or not being able to identify the phone in the Mi Flash Tool.
- π Charge the phone to at least 50%. With low battery power, the process can be interrupted, leading to a "brick" (inoperable state) of the device.
- π» Use a Windows PC 7/10/11. MacOS and Linux do not support official Xiaomi tools without additional manipulation.
- π Download the original USB-Cheap cables don't transmit data, they only charge. You'd better use the one that came with the phone.
- π Back up your sensitive data. Once reset, everything will be erased without recovery. Use Mi Cloud or plug in your phone in mode. MTP, if it's still working.
Pay special attention to drivers. Without them, your computer simply wonβt see your Xiaomi in Fastboot or EDL mode. Official drivers can be downloaded from the Xiaomi website or use the universal Mi USB Driver package. Install them before your phone is connected, otherwise the system can automatically deliver incorrect drivers.
Method 1: Fastboot Reset (for unlocked bootloader)
This is a good way to check if you already have a bootloader unlocked, and it's easy to turn off the phone, then press Volume Down + Power until you have a hare in a hat that says Fastboot. If the screen is black or Mi Bunny comes in with a lock, the bootloader is locked, and you need Method 2 (EDL).
To reset via Fastboot, we will need the Mi Flash Tool and the firmware for your model, download them from the official Xiaomi website in the Download β ROM section. Choose the version of Fastboot ROM (not Recovery!) that corresponds to your region (Global, China, EEU).
Download the latest Mi Flash Tool |
Download Fastboot ROM for your model |
Install Xiaomi | drivers
Charge your phone to 50%+
Connect the original USB-cable-->
Step-by-step:
- Unpack the downloaded firmware archive into a folder without Cyrillic characters (e.g., C:\Xiaomi\ROM).
- Run the Mi Flash Tool on behalf of the administrator.
- Turn off your phone and turn it into Fastboot mode (Loud down + Power buttons).
- Connect your phone to your PC. COM-port, COM4).
- Click Select and point the way to the folder with unpacked firmware.
- At the bottom, select Clean All (full reset) or Clean All and Lock (reset) mode. + loader-lock).
- Press Flash and wait for the process to end (5-10 minutes).
β οΈ Warning: If you click Flash and you have an Invalid image format error, check the integrity of the firmware archive. Download it again and unpack it again. Also make sure there are no Russian letters or spaces on the way to the folder.
Method 2: Reset via EDL (for locked bootloader or "brick")
EDL (Emergency Download Mode) is a firmware emergency mode that works even on completely broken phones, requiring either an EDL cable or a short circuit on the board (for power users), a method that is often used if:
- π The phone is not turned on or stuck on the logo MIUI.
- π« The bootloader is locked and Fastboot is not available.
- π Previous attempts at firmware ended in a mistake.
To work in EDL mode, you will need:
- The Mi Flash Tool (same as the Fastboot)
- Firmware in.mbn or.elf format (usually bundled with Fastboot ROM).
- EDL cable or the ability to manually transfer the phone to this mode (for example, through test points).
Instructions for firmware through EDL:
- Put your phone in EDL mode: Method 1: Use EDL cable (when you connect to a PC, the phone will automatically go into this mode). Method 2: Close Test Point contacts on the motherboard (requires disassembly of the phone). Method 3: If the phone is turned on but not loaded, try adb reboot edl (you need an unlocked ADB).
In Device Manager, check that the Qualcomm HS-USB QDLoader 9008 device has appeared.
In the Mi Flash Tool, select firmware and press Refresh. The port should be defined as COM:EDL.
Press Flash and wait until it is completed (the process can take up to 15 minutes).
β οΈ Note: If you have Device Manager instead of Qualcomm HS-USB QDLoader 9008 displays Unknown device, install the driver manually. To do this, download the QDLoader Driver and specify the path to it when you update the driver.
What if the Mi Flash Tool doesnβt see the phone in EDL?
Table: Common mistakes and their solutions
| Mistake. | Reason. | Decision |
|---|---|---|
| Waiting for device | Phone is not defined in Fastboot/EDL | Check it out. USB-Reinstall Xiaomi drivers. Try another computer. |
| Invalid image format | Damaged firmware archive | Download the firmware again. Unpack the archive into a folder without Cyrillic. |
| Flash is not done | Incompatible firmware or blocked boot loader | Check the phone model and firmware version. Use EDL for a locked bootloader. |
| Device is locked | The bootloader is locked and the firmware requires unlocking | Unlock the bootloader through the Mi Unlock Tool. Use the firmware marked Global (not China). |
How to unlock the bootloader before resetting (if required)
If your Xiaomi is officially purchased (not a βgrayβ import), you can unlock the bootloader through the official Mi Unlock Tool utility. This process takes up to 72 hours due to checking your Mi Account. Without unlocking the bootloader, you will not be able to flash the phone through Fastboot, but a reset via EDL will remain available.
Step-by-step instructions for unlocking:
- Link your Mi Account to your phone: go to Settings β Xiaomi Account β Sync and enable all options.
- Download Mi Unlock Tool from Xiaomiβs official website.
- Turn your phone into Fastboot mode (Loudness down + Power).
- Connect your phone to your PC and start the Mi Unlock Tool.
- Log in to the same Mi Account as on your phone.
- Press Unlock and wait for confirmation (up to 3 days may be required).
Once successfully unlocked, you can flash your phone through Fastboot without restrictions. Note: unlocking resets all data on the phone, so do this before resetting to factory settings if you need to save information.
π‘
If the Mi Unlock Tool gives you a "Couldn't unlock" error, try connecting the phone to another one. USB-port (preferably 2.0) or use another cable. Also make sure the phone is debugging enabled. USB (Settings β The phone. β Version. MIUI β Press 7 times, then return to Additional β For developers β Debugging by USB).
What to do after resetting: the first setup of the phone
After a successful reset, the phone will turn on as new, and you will have to go through the initial setup, where it is important:
- π Do not miss system updates. After reset, immediately check for updates in Settings β The phone. β Updating the system.
- π Recover data from backup. If you backuped through Mi Cloud, log in and restore contacts, notes and photos.
- π‘οΈ Set up protection. Set up a new pattern lock or PIN-code and enable Find Device in your Mi Account settings.
- π± Check it out. IMEI. After the firmware through EDL errantly IMEI. Make sure they are in place: dial *#06#.
If the phone is unstable after reset (for example, it discharges quickly or overheats), do another reset via the Recovery menu:
- Turn off the phone.
- Press Volume Up + Power until the Recovery menu appears.
- Choose Wipe Data β Wipe All Data.
- Confirm the action and restart the phone.
FAQ: Frequent questions about Xiaomi reset via PC
Can you reset Xiaomi via PC without losing data?
Why does Mi Flash Tool not see my Xiaomi?
How do I know if my Xiaomi bootloader is unlocked?
What if the phone doesnβt turn on after reset?
Can you reset Xiaomi through a PC if it is locked with a pattern lock?
π‘
PC reset is the only way to bring the blinky Xiaomi back to life, but it requires care. Always check firmware compatibility with the phone model and use the original cables.