Introduction: when to reset via PC and how it is better than the standard method
Forgot the pattern lock on Xiaomi? Your phone hung on the logo after a failed update? Or just want to sell the device, completely clearing it of personal data? In such cases, a standard reset via the settings menu may not be available, but a reset via a computer will be a real salvation. This method allows you to return the smartphone to factory settings even if the screen does not respond to touch, the system does not boot or you forgot the password from your Mi Account.
The main advantage of PC reset is a 100% guarantee of cleanup of all data, including hidden files and settings that may remain after a soft reset via Recovery. In addition, this method often helps to "reanimate" devices with serious software failures when other methods are powerless. But there are nuances: the procedure requires training, knowledge of special tools (Mi Flash Tool, ADB, Fastboot) and can lead to a loss of warranty if the device was blocked by the manufacturer.
In this article, weβll break down three proven ways to reset Xiaomi through your computer that work on most models β from the old Redmi 4X to the flagship Xiaomi 13 Ultra.Youβll learn which method to choose depending on the situation, how to avoid errors, and what to do if something went wrong.
Preparation for resetting: what to do before the procedure
Before you start resetting, make sure you have everything you need. Without preparation, you risk getting a brick instead of a working smartphone. Here's the minimum set of tools and data you'll need:
- π₯οΈ Computer running Windows 7/10/11 (The Mi Flash Tool requires Windows; macOS/Linux Alternative methods will have to be used).
- π± Cable USB Type-C/MicroUSB (Original or quality certified β cheap cables can interrupt the connection).
- π Battery charge of at least 50% (when reset via Fastboot, the phone does not charge!).
- π Access to your Mi Account if your device has activated Mi Cloud (required to unlock after resetting).
- π Backup of important data (photos, contacts, messages) as it will be permanently deleted.
Pay special attention to drivers. Without them, your computer will not see your Xiaomi in Fastboot or EDL modes. Download and install:
- π§ Mi USB Driver (Official Driver from Xiaomi to Work with Fastboot).
- π§ Qualcomm HS-USB QDLoader 9008 (if you plan to use the mode) EDL).
- π§ ADB & Fastboot tools (part of Googleβs Platform Tools).
β οΈ Note: If your device was purchased with a carrier-specific connection (e.g., Redmi Note) 10T 5G From MTS or Beeline, a Fastboot reset could block the network, in which case an official unlock would be required. IMEI.
Before starting the procedure, check the model of your device.
- Turn off the phone.
- Press Volume Up + Power before the Fastboot logo appears.
- Connect to your PC and type in the command line: fastboot getvar product In the answer you will see the model code (for example, cepheus for Xiaomi Mi 9).
Method 1: Reset via Mi Flash Tool (for locked devices)
Mi Flash Tool is the official utility from Xiaomi, which allows you to flash the device in EDL (Emergency Download Mode) mode.
- π Phone is completely locked (forgot password, pattern lock, PIN-code).
- π€ The device does not load (hang on the logo, cyclic reboot).
- π± Complete reflashing is required with the removal of all data.
Important: to work with the Mi Flash Tool, you need to download the official firmware for your model. Using informal firmware can lead to loss of IMEI or other problems. You can download the firmware on en.miui.com (choose the Fastboot version, not Recovery!).
Step-by-step:
- Install the Mi Flash Tool (you can download from the official website).
- Unpack the firmware in a folder without Cyrillic characters (for example, C:\Xiaomi\cepheus_global_images...).
- Turn the phone into EDL mode: Turn the device off. Press Volume up + Volume down and connect the USB cable to the PC. Hold the buttons for 10-15 seconds until the Qualcomm HS-USB QDLoader 9008 appears in Device Manager.
Launch the Mi Flash Tool
Select
Select firmware mode
- Clean all β Complete reset with deletion of all data (recommended).
- Clean all and lock is the same, but with the bootloader lock (only if you want to return the warranty).
- Press Flash and wait until it is completed (usually 5-10 minutes).
β οΈ Note: If the phone doesn't turn on after firmware or freezes on the logo, try repeating the procedure with another firmware version (for example, an older one). MIUI contain bugs for specific models.
Install the Qualcomm QDLoader 9008| driver
Download the official Fastboot firmware for your model |
Disable the antivirus (it can block the Mi Flash Tool)|
Charge your phone to at least 50% |
Prepare original USB-cable-->
| Xiaomi model | Code name | Supports EDL? | Notes |
|---|---|---|---|
| Redmi Note 10 Pro | sweet | Yes. | Requires unlocking the bootloader for firmware custom ROM |
| POCO F3 | alioth | Yes. | In some versions of MIUI EDL disabled by default |
| Xiaomi Mi 11 | venus | Yes. | Firmware via EDL resets the region of the device |
| Redmi 9A | dandelion | No. | Supports only Fastboot, EDL is blocked |
Method 2: Reset via Fastboot (without losing the bootloader unlock)
If your Xiaomi boots into Fastboot mode but doesnβt log in, you can reset without completely flashing it.This method keeps the bootloader unlocked and is suitable for devices that donβt need to change the firmware, but only need to clean the data.
The work will require:
- π₯οΈ Established ADB & Fastboot tools (you can download as part of Google Platform Tools).
- π± Phone in Fastboot mode (clip Volume down) + Power with the device switched off).
- π Cable USB Data transmission support (charging cables will not work!).
Discharge commands:
Open the command line (Win + R β enter cmd) and execute:
fastboot devices(Checks if the list is empty, there is a driver or cable problem.)
fastboot erase userdatafastboot erase cachefastboot rebootThese commands will delete all user data (userdata) and cache, after which the phone will restart in a clean state. If after the reboot you request Mi Account data, then the device was associated with the account, and you need to enter a login / password.
π‘
If the fastboot erase userdata command is followed by a FAILED error (remote:'Not allowed in Lock State'), then the bootloader is blocked, in which case only full firmware via the Mi Flash Tool (method 1) or official unlock through the Xiaomi website will help.
Extended reset (if standard did not help):
If there are problems after the basic reset (for example, the phone still brakes or does not load), try to completely clean all sections:
fastboot erase boot
fastboot erase system
fastboot erase vendor
fastboot erase userdata
fastboot erase cache
fastboot rebootβ οΈ Warning: The fastboot erase system and fastboot erase vendor will remove the firmware and the phone won't boot.
What if the Fastboot canβt see the device?
Method 3: Reset via ADB (if the phone is turned on but locked)
If your Xiaomi is turned on but you canβt unlock it because of a forgotten password or screen failure, Android Debug Bridge (ADB) will come to the rescue.
- π The phone was debugging on. USB (developer-setting).
- π± The device is loaded into the system (at least until the lock screen).
- π₯οΈ Computer installed ADB driver.
If USB debugging wasnβt activated in advance, this method wonβt work β youβll have to use Fastboot or Mi Flash Tool.
Step-by-step:
- Connect your phone to your PC via USB.
- Open the command line and check the connection: Adb devices If a device is detected, you will see its serial number.
- Reset to factory settings: Adb shell recovery --wipe_data Alternatively (for new Android versions): Adb shell am start -a android.intent.action.MASTER_CLEAR
- Confirm the reset on the phone screen (if you receive a request).
If nothing happens after the command, try restarting your phone to Recovery and resetting it from there:
adb reboot recoveryFrom the Recovery menu, select Wipe Data β Wipe All Data (manage by volume and power buttons).
π‘
Resetting through ADB is the most gentle method, because it doesn't affect system partitions; it only deletes user data, leaving the firmware intact, which reduces the risk of "bricking" the device.
Frequent Mistakes and How to Avoid Them
Even with the correct following of the instructions, problems can arise, and here are the most common mistakes and ways to solve them:
| Mistake. | Reason. | Decision |
|---|---|---|
| FAILED (remote:'Flashing is not allowed in Lock State') | bootloader locked | Unlock the bootloader through the official Xiaomi website or use the Mi Flash Tool with the clean all and lock option |
| Waiting for device (not found) | Problems with drivers or cable | Reinstall drivers, try another USB cable/port, disable antivirus |
| phone is stuck on startup logo after reset | Incompatible version of the firmware | Swipe the device with another version of MIUI (e.g., an older stable version) |
| Invalid sparse file format at header | Damaged firmware file | Download the firmware again, check the checksum (MD5) |
| After reset, requires Mi Account, but the data is not suitable | The device was linked to another account. | Contact Xiaomi with proof of purchase or use the EDL bypass (risky!) |
Another problem is the loss of IMEI after a reset, which can happen if you've been running a device with unofficial firmware or interrupting the firmware process, and you can restore IMEI using an engineering menu or tools like Maui META (for Mediatek) or QCN Rebuilder (for Qualcomm), but these methods require deep knowledge and may be illegal in some countries.
π‘
Before you run the firmware, always check the checksum (MD5) of the downloaded firmware. You can use the MD5 & SHA Checksum Utility utility. If the amount does not match the official amount, the file is corrupted - its use can lead to failures.
Recovery after resetting: what to do next
After a successful reset, your Xiaomi will be like new, with no apps, settings, or data.
- Set up your device: Choose a language, connect to Wi-Fi, log in to Mi Account (if required), or create a new account. Skip recovery suggestions from backup (if you made a reset due to viruses or crashes).
Update the firmware:
Go to Settings β About Phone β Update the system and install the latest updates. This will fix possible bugs after reset.
Recover the data:
If you have backed up your Mi Cloud or Google Account, restore contacts, photos and apps. Go to Settings β Accounts β Mi Cloud.
Check the key functions:
- π Telephony (calls, SMS, mobile).
- πΆ Wi-Fi and Bluetooth.
- π Charging the battery.
- π₯ Camera and microphone.
If nothing helps, try using another computer or installing Windows in Legacy BIOS mode (sometimes UEFI blocks unsigned drivers).