Xiaomi reset to factory settings via PC: 3 proven methods

Forgot the pattern lock on Xiaomi? Phone brakes after the MIUI update? Or just want to sell the device and completely clear it of personal data? Resetting through the computer is the most reliable way to return the smartphone to factory status, especially when standard methods through the Settings โ†’ Reset menu are not available. Unlike resetting through the receptacles, connecting to a PC allows you to bypass screen locks, restore "bricks" after a failed firmware, and even refuse the device to a clean version of MIUI.

In this article, we will discuss 3 working PC reset methods (including the Fastboot, Mi Flash Tool and ADB) relevant to 2018-2026 models: from Redmi Note 7 to Xiaomi 14 Ultra. We will discuss how to prepare a computer, where to download official tools, and what to do if the process is frozen in the flashing stage.

1.Reset Preparation: What to Do Before Connecting Xiaomi to a PC

Before you start resetting, make sure you follow all the critical steps. Skipping even one item can lead to data loss without the ability to recover or turn the phone into a brick.

First, check the battery charge: it must be at least 50%. At low charge, the device can turn off during firmware, which can damage the boot partition. USB-cable (better the one that came with the phone) โ€“ cheap cables often donโ€™t transmit data in Fastboot mode.

  • ๐Ÿ”‹ Battery charge โ‰ฅ 50% (optimum 70โ€“80%)
  • ๐Ÿ”Œ Original. USB-cable (Type-C or Micro-USB depending on the model)
  • ๐Ÿ’ป Windows computer 7/10/11 (MacOS does not support Mi Flash Tool)
  • ๐Ÿ“ฅ Qualcomm or MediaTek Drivers (depending on your Xiaomi processor)
  • ๐Ÿ“‚ Backup of important data (reset will delete everything, including photos in the data) DCIM)

Pay special attention to drivers. If your Xiaomi is running on a Qualcomm Snapdragon processor (like the POCO F5 or Redmi K60), download the QDLoader HS-USB Driver. MediaTek chips (like the Redmi Note 12 or POCO M5) will require MTK Driver Auto Installer. Without the right drivers, the PC will simply not see the phone in Fastboot mode.

โš ๏ธ Note: If you are resetting Xiaomi with a locked bootloader, first unlock it through the official Xiaomi tool. otherwise, after the reset, the phone will not turn on!

๐Ÿ“Š What Resetting Method Have You Tried Before?
Through phone settings
The Recavator (Volume Up + Power)
Through the Mi Flash Tool
Never dropped it.

2. Method 1: Reset via Mi Flash Tool (for firmware clean MIUI)

Mi Flash Tool is the official utility from Xiaomi, which allows you to flash a device with a full reset.

  • ๐Ÿ“ฑ The phone is not turned on or stuck on the logo MI
  • ๐Ÿ”’ You forgot your password/pattern lock
  • ๐ŸŒ The device is severely braked after the update MIUI
  • ๐Ÿ“ฆ You need to install a global or Chinese version of the firmware

Download the official firmware for your model (choose the Fastboot version, not Recovery!). Unpack the archive into a folder without Cyrillic characters (e.g., C:\Xiaomi\ROM).

  1. Turn off the phone.
  2. Press Volume Down + Power to enter the Fastboot (screen with a hare in a hat-eared).
  3. Connect the device to the PC.
  4. Launch the Mi Flash Tool, press Select and point the path to the unpacked firmware.
  5. At the bottom, select Clean all (full reset) or Clean all and lock (reset + lock bootloader).
  6. Press Flash and wait until it is completed (usually 5-10 minutes).

If the process is stuck on waiting for a device, check:

  • ๐Ÿ”Œ Is the cable connected to the port? USB 2.0 (Blue port on PC is the first port on PC) USB 3.0 that may not work)
  • ๐Ÿ› ๏ธ Drivers installed (check in Device Manager โ€“ Android Bootloader Interface should be displayed)
  • ๐Ÿ”„ Try restarting your PC and phone, then reconnect.

Download Fastboot firmware for your model | Unpack the archive into a folder without Cyrillic |Install Qualcomm/MediaTek | Enter Fastboot (Vol Down + Power) |Connect the phone to USB 2.0 port-->

Mistake in Mi FlashReason.Decision
Can't find 'flash_all.bat'The firmware is unpacked incorrectly or downloaded the wrong versionDownload the firmware again and unpack through WinRAR
Anti-rollback check failTrying to flash the old version of MIUI after the new oneDownload the firmware of the same or newer version
Device is lockedThe bootloader is not unlockedUnlock with the Mi Unlock Tool
Flash not done, unknown errorProblems with drivers or cableReinstall drivers, try another cable/port

Method 2: Reset via Fastboot commands (without firmware)

If you donโ€™t need to reflash your phone, you just need to reset your settings, you can do without the Mi Flash Tool. You will need ADB and Fastboot, tools from Google that allow you to manage Android devices through the command line.

Download Googleโ€™s Platform Tools and unpack it into C:\platform-tools.

  1. Turn on Fastboot on your phone (press Volume Down + Power).
  2. Connect the device to the PC.
  3. Open Command Prompt in the platform-tools folder (click Shift + right mouse button โ†’ Open the PowerShell window here).
  4. Enter the command to check the connection: fastboot devices If the device is displayed (e.g. 1234567890abcdef fastboot), you can continue.
  5. Reset one of the commands: fastboot erase userdata or to reset completely (including cache): fastboot -w

Once you do the command, the phone will automatically restart. This method doesn't remove the firmware, it just resets user data, so it's safer than flashing through Mi Flash.

โš ๏ธ Note: If you are following the fastboot command -w phone is stuck on startup the boot, try resetting the cache separately: fastboot erase cache

bcdedit /set testsigning on

and reboot the PC.-->

Method 3: Reset via ADB (if the phone is turned on but locked)

If your Xiaomi is turned on but you canโ€™t unlock the screen (forgot your password or pattern lock), you can reset your settings via ADB without losing data in some cases.

  • ๐Ÿ”“ The phone's debugging on. USB (Even if the screen is locked)
  • ๐Ÿ–ฅ๏ธ You previously connected this device to this PC (there is an adbkeys file with permissions)

Instructions:

  1. Connect the phone to the PC.
  2. Open the Command Prompt in the platform-tools folder.
  3. Check the connection: adb devices If the device is displayed as 1234567890abcdef device, enter: adb shell
  4. Enter the reset command (works on MIUI 12โ€“14): am start -a android.settings.SETTINGS If it didn't work, try: pm clear com.android.providers.settings

These commands sometimes allow you to bypass the lock screen and access settings where you can reset in a standard way, but on newer versions of MIUI (14+), this method may not work due to enhanced protection.

What if the ADB canโ€™t see the device?
If the adb device command returns a blank list, try: 1. Reinstall Google drivers USB Driver through SDK Manager 2. Insert USB-Debugging in the hidden developer settings (if the phone is unlocked). 3. Use another USB-cable or port. 4. Launch ADB on behalf of the administrator.

5. Frequent errors and their solutions

Even with the exact instructions, the PC reset process may not go according to plan.-5 errors and ways of correcting them:

Problem.Possible causeDecision
Mi Flash does not see the deviceNo drivers or incorrect versionInstallation of Xiaomi Driver Installer
Invalid sparse file format at headerA damaged firmware fileDownload the firmware again, check the checksum MD5
Phone doesn't come out of FastbootFailed firmware or failurePress the Power for 20-30 seconds for a forced reboot
ADB issues unauthorizedNo debugging authorization granted.Unlock your phone and confirm access on the screen
After reset, there is no net (IMEI reset)Modem section damagedSweep non-HLOS.bin through Mi Flash or restore IMEI through Maui META

If after reset the phone does not turn on or hovers on the logo MI, Try to put it through EDL-The mode (emergency loading:

  1. Turn off the phone.
  2. Press Volume Up + Volume Down and connect to the PC.
  3. Install the Qualcomm HS-USB QDLoader 9008 driver.
  4. Flush the firmware through Mi Flash or QFil.

๐Ÿ’ก

If a Fastboot reset doesnโ€™t help and the phone doesnโ€™t turn on, the last chance is firmware in the phone. EDL-But this method requires authorization of Xiaomi account and can block the device if you do not do the right thing.

6. Data recovery after reset

A PC reset deletes all user data, including:

  • ๐Ÿ“ธ Photos and video (folder) DCIM)
  • ๐Ÿ“ฑ Contacts (unless synced with Google or Mi Account)
  • ๐Ÿ’ฌ Messages in messengers (WhatsApp, Telegram, etc.)
  • ๐ŸŽฎ Game saving (if not linked to an account)
  • ๐Ÿ“„ Documents in the Download folder

It is almost impossible to recover data after a complete reset, but there are several ways to return at least some of the information:

  • ๐Ÿ” Use programs like DiskDigger or Recuva to scan internal memory (works if the phone is defined as a drive).
  • โ˜๏ธ Check backups in Google Drive (settings) โ†’ Accounts. โ†’ Backup).
  • ๐Ÿ“ฑ If sync with Mi Cloud was enabled before reset, restore data via the web version.

โš ๏ธ Warning: Do not write new files to your phone after a reset if you plan to restore data! New files can overwrite old ones, making recovery impossible.

7.Reset on locked devices (linked to Mi Account)

If your Xiaomi is linked to your Mi Account and is blocked after a reset (this device is locked) you will need to:

  1. Sign in to the same Mi Account that was linked to the phone.
  2. Confirm the rights of the owner via SMS or email.
  3. If you do not remember your account details, try to restore access through the official website.

If the phone is bought by hand and the previous owner has not untied the account, contact him to unlock. In extreme cases, you can contact the Xiaomi service center with proof of purchase (check, purchase agreement).

Some models (such as the Redmi Note 10 Pro or POCO X3 Pro) may require you to enter the old Mi Account password after reset, even if you are logged in, in which case only a call in support of Xiaomi will help.

FAQ: Answers to Frequent Questions

Can you reset Xiaomi via PC without losing data?
No, any reset via Fastboot or Mi Flash deletes all user data.The only way to save files is to back up before reset via adb backup (if USB debugging is enabled) or manually copy files to your PC.
Why does Mi Flash give you a โ€œFlash Not Doneโ€ error?
This error is usually due to: Incorrectly installed drivers (try Xiaomi Driver Installer); damaged cable or port (use the original cable and USB 2.0 port); incompatible firmware version (download firmware for your model); and check if the bootloader is unlocked.
How do I know if my Xiaomi bootloader is unlocked?
Turn off your phone and log in to Fastboot (press Volume Down + Power). If the bottom of the screen says "Unlocked" the bootloader is unlocked. If "Locked" you need to unlock through the Mi Unlock Tool.
What to do if there is no net after reset (no catch) SIM-map)?
This means that the modem partition that handles communication is damaged when reset. Solutions: Re-sweep your phone through Mi Flash with the Clean all and lock tick. If it doesn't work, file non-HLOS.bin and modem.bin separately from the firmware. In extreme cases, contact the service center for flashing through EDL.
Can you reset Xiaomi via MacOS or Linux?
The official Mi Flash Tool only works on Windows. However, on MacOS or Linux you can use: Fastboot commands (method 2 of this article). Informal tools like XiaomiTool V2 (requires an unlocked bootloader). For Fastboot on MacOS, first install homebrew, then: brew install android-platform-tools