Xiaomi resetting to factory settings via a computer is the only way out when the smartphone does not respond to the screen, is locked with a password or is working with failures. Unlike the standard reset via the Settings menu β About phone β Reset, the method using a PC allows you to restore the device even if critical firmware errors or damage to system files.
This article covers all the current ways, from the official MiFlash tool to manual commands via Fastboot and ADB. We will discuss how to prepare a computer, where to download the necessary drivers, and what to do if the process is frozen at the firmware stage.
Important: The procedure deletes all data on your phone, including photos, contacts and apps. If the device is still on, try saving important information first via the Mi PC Suite or the Mi Cloud.
Preparation of the computer: drivers, programs and settings
Before resetting Xiaomi via PC, you need to install specialized software and drivers, without them, the computer will not recognize the phone in Fastboot or EDL modes, and the firmware will end in error.
List of mandatory instruments:
- π₯ MiFlash Tool β the official utility from Xiaomi for firmware through Fastboot (download from the official website).
- π§ ADB & Fastboot β a toolbox for working with Android through the command line (download from the Android Developers website).
- π₯οΈ Drivers. Qualcomm/MTK β phone-recognition EDL (If you want a deep reset, Qualcomm will do QDLoader, MediaTek β MTK Driver Auto Installer.
- π Firmware for your model β download the official version from the MiUI Downloads website (choose Fastboot) ROM fully discharged).
After installing the drivers, check the phoneβs connection:
- Turn off Xiaomi.
- Press Volume Down + Power before the Fastboot logo appears.
- Connect your phone to your PC via USB.
- In the command line (Win + R β cmd) enter:
fastboot devicesIf the serial number of the device appears in the answer, the drivers are installed correctly.
β οΈ Warning: Windows 11 laptops may need to disable driver signature verification. To do this, reboot your Shift PC, select Diagnostics β Additional parameters β Loading parameters β Disable mandatory driver signature verification.
Method 1: Reset via MiFlash Tool (for devices with unlocked bootloader)
MiFlash is the official tool from Xiaomi, which allows you to flash your phone in Fastboot mode with a full reset.The method works for most models (Redmi Note 10 Pro, Poco X3 Pro, Mi 11, etc.), but requires an unlocked bootloader.
Step-by-step:
- Download and unpack Fastboot ROM for your model (file with.tgz extension).
- Run the MiFlash Tool on behalf of the administrator.
- In the Select field, specify the path to the unpacked firmware.
- Connect your phone in Fastboot mode (as described above).
- At the bottom of the window, select firmware mode: Clean all - complete reset with deletion of all data (recommended); Clean all and lock - reset + lock bootloader (only if you sell a phone); Save user data - firmware without deleting files (not suitable for resetting).
Refresh
Flash
If the process is suspended during the waiting for the device:
- π Check the cable. USB (Use the original).
- π Reinstall drivers manually through Device Manager.
- π οΈ Try another one. USB-port (preferably) USB 2.0 on the back of the PC).
βοΈ Preparing for firmware through MiFlash
Method 2: Reset via Fastboot commands (without MiFlash)
If MiFlash doesnβt recognize the device or gives out errors, you can use manual commands via Fastboot, which is universal and works even on older models (Redmi 4X, Mi A1).
Instructions:
- Connect your phone in Fastboot mode (as in the previous method).
- Open the command line in the folder with platform-tools (where adb and fastboot are installed).
- Enter the commands one by one:
fastboot oem edlIf the command fails (FAILED: remote: unknown command) use:
fastboot erase userdata
fastboot erase cache
fastboot rebootThese commands will clear the partition with user data and cache, which is equivalent to a factory reset.
To completely delete all partitions (including system files) use:
fastboot erase boot
fastboot erase system
fastboot erase vendor
fastboot erase userdata
fastboot rebootβ οΈ Warning: erase system and erase vendor commands will remove firmware! Once executed, the phone will not turn on until the firmware is re-introduced via MiFlash or EDL.
What if the fastboot canβt see the device?
Method 3: Reset via EDL mode (for blocked or "bricks")
EDL (Emergency Download Mode) is Xiaomiβs last chance to recover if the phone doesnβt turn on, hovers on the logo, or has a locked bootloader.
How to transfer your phone to EDL:
- π Hardware method: Turn off the phone, press Volume up + Loudness down + USB-The screen will remain black, but the computer must identify the device as Qualcomm. HS-USB QDLoader 9008.
- π± Through ADB: If the phone turns on, connect it with debugging enabled USB and do: adb reboot edl
- π§ On some models (Redmi Note 8 Pro, Poco) X2) It's a risky method, and without experience, you should go to the service center.
After switching to EDL, use:
- π MiFlash Tool β Select the firmware and press Flash (Clean all mode).
- π QFil β for Qualcomm devices (download here).
- π SP Flash Tool β for smartphones on MediaTek (for example, Redmi) 9A, Poco C3).
| Tool. | Supported chipsets | Download link | Features |
|---|---|---|---|
| MiFlash Tool | Qualcomm | Official website | Requires an authorized Xiaomi account for new models |
| QFil (Qualcomm Flash Image Loader) | Qualcomm | qfiltool.com | Supports the firmware in parts (firehose) |
| SP Flash Tool | MediaTek | spflashtool.com | Requires a scatter.txt file from firmware |
π‘
If MiFlash is not done, try replacing the file. flash_all_lock.bat on flash_all_except_storage.bat It's going to save the internal memory, but it's going to reset the settings.
Frequent mistakes and their solutions
Even if you follow the instructions accurately, the reset process can end up in error, and let's look at the most common problems and how to fix them.
Mistake 1: "Waiting for device" in MiFlash
- π Check the connection. USB (Try the port USB 2.0).
- π§ Reinstall drivers manually through Device Manager (select Android Bootloader Interface).
- π οΈ Disable the antivirus β it can block access to fastboot.
Error 2: "Invalid sparse file format at header magic"
Reason: The firmware file is damaged.
- π₯ Download the firmware again from the official website.
- π Unpack the archive in a short-cut folder (for example, C:\ROM\).
- π Try another version of the MiFlash Tool (e.g., the old version of 2018).
Error 3: The phone doesn't go to EDL
If the hardware method does not work:
- π Check the battery charge (should be at least 30%).
- π Use a data-enabled cable (not all) USB-cables are suitable for firmware).
- π± For MediaTek, try the Loudness up combination + Nutrition + USB.
Error 4: "This miui version cannot be downgraded"
Xiaomi is blocking the rollback to an older version of the firmware.Solution:
- π Unlock the bootloader through the Mi Unlock Tool.
- π Install firmware of the same or newer version.
- π If you want to downgrade the version, first go Fastboot. ROM current version, then the old version.
π‘
If a Fastboot reset doesnβt help and the phone doesnβt turn on, the only way out is EDL mode. But new models (released after 2021) may require an authorized Xiaomi account to unlock the firmware.
Xiaomi reset on MediaTek processor (via SP Flash Tool)
MediaTek-based devices (Redmi 9A, Poco C3, Redmi 8A) require a different approach, using the SP Flash Tool, a firmware utility for MTK chipsets.
Instructions:
- Download the SP Flash Tool and firmware for your model (look for files with the.zip and scatter.txt extensions).
- Unpack the firmware in a folder without Cyrillic symbols.
- Launch it. SP Flash Tool and press Scatter-loading, then select the file MTxxxx_Android_scatter.txt firmware.
- In the section list, uncheck all boxes except: preloader (if it is in firmware). userdata (for resetting settings). cache.
Connect the phone to the PC (without pressing the buttons!).
Download
If the process is stuck at 100% DA:
- π Turn off and reconnect the phone.
- π§ Install MediaTek Preloader Driver.
- π₯ Try another version. SP Flash Tool (for example, v5.2026).
β οΈ Warning: Do not flash the preloader section on a working phone β this can lead to a complete loss of communication with the device ("brick").
Recovery after reset: the first steps
After a successful Xiaomi reset via PC, the phone will turn on in a βout of the boxβ state. To return it to working condition, perform a few key actions.
System setup
- π Choose the language and region (Russia is recommended for the correct operation of Xiaomi services).
- πΆ Connect to Wi-Fi (do not use mobile data at this stage).
- π Skip Mi Account Linking if you donβt plan on using cloud services.
2. Checking of performance
- π Call the phone β check the operation of the communication module.
- π· Take a test photo β make sure the camera is working.
- π Charge your phone to 100% β after reset, battery calibration may be required.
3. Data recovery
If you have made a backup copy:
- π± Connect the phone to the Mi PC Suite and recover data from the backup.
- βοΈ Log in to Mi Cloud (if sync was enabled) and download contacts/photos.
- π Copy files from a memory card or computer manually.
4. Optimization of productivity
- π« Disable unnecessary system applications through Settings β Annexes.
- π Update the firmware to the latest version in Settings β The phone. β Updating the system.
- π‘οΈ Install an antivirus (like Dr.Web Light) and check the system.
π‘
After reset, turn on the developer mode (Settings β About Phone β MIUI version β tap 7 times) and activate the USB Debugging option. This will simplify future manipulation of the phone over the PC.