How to Reset Xiaomi Settings via Fastboot: A Complete Guide with Commands and Error Solutions

Resetting Xiaomi’s smartphone settings via Fastboot mode is a radical but effective way to bring the device back to factory status when standard methods through the Settings β†’ Reset menu don’t work, an approach required for critical firmware failures, viral attacks, a forgotten pattern lock, or after failed experiments with custom ROMs. Unlike Recovery Mode, Fastboot allows you to control the device directly through the computer, which gives more control but also increases risks.

In this article, you will find relevant commands for MiFlash. 2026 The year that runs on models from Redmi Note 10 Xiaomi 14 Ultra, as well as solutions to common errors such as anti-rollback or flash_write_protect. We will understand when you need an unlocked bootloader, and when you can do without it, and why some devices (for example, the device is not available, POCO F5) If your phone is stuck on the Mi logo, doesn't respond to buttons or gives you an error MIUI Version Cannot Be Installed On This Device.

What is Fastboot and when to reset it

Fastboot is a low-level protocol for interacting with the Android bootloader. Unlike Recovery Mode, where the reset is done via a GUI, all commands are sent from the computer via ADB or MiFlash Tool.

  • πŸ”§ Hardware failure: the phone does not load beyond the Xiaomi logo or reboots cyclically (bootloop).
  • πŸ”’ Forgotten password: screen locking is not removed even through Find My Device.
  • πŸ“± Failed Update: After Firmware Through OTA or TWRP the device became a brick".

But Fastboot is not a cure-all, for example, if the problem is a physical memory chip failure (emmc corrupt error), resetting won't help, it will need repairs.

  • ⚠️ Deletes all data, including photos in internal memory (SD-card unaffected).
  • ⚠️ It may require unlocking the bootloader (on new Xiaomi models it is mandatory).
  • ⚠️ It doesn’t always work on devices with a locked anti-rollback).
πŸ“Š What kind of smartphone you Xiaomi?
Redmi (Note/Pro)
POCO (F/X/M)
Mi (11/12/13/14)
Black Shark
Other

Preparation for resetting: what to do before the start

Before you transfer your phone to Fastboot, follow the mandatory steps. Neglecting them can lead to a brick (completely inoperable) device.

⚠️ Attention: On Xiaomi models 12T, Redmi K50 And a new Fastboot reset without the bootloader unlocking will cause the Flash not allowed in locked state error to be made!

Preparation checklist:

β˜‘οΈ Preparing for reset via Fastboot

Done: 0 / 5

Pay special attention to the choice of firmware. Only stable official firmware (not beta!) marked Fastboot in the file title is suitable for resetting.

  • 🌍 Official Xiaomi website (Download section) β†’ Select device).
  • πŸ“¦ Xiaomi Firmware Updater (alternative archive with verified builds).

Do not use firmware from the 4PDA or XDA forums unless you are sure of their origin – they may contain modified bootloaders that will lock the device permanently.

πŸ’‘

If your Xiaomi model is released after 2022, download the firmware with the.tgz extension, not.zip – the new versions of MiFlash do not support the old formats.

Step-by-step: how to reset Xiaomi via Fastboot

The reset procedure consists of 5 steps. Follow them strictly in order - skipping a step can lead to errors like invalid sparse file format at header.

Step 1: Transfer your phone to Fastboot mode

If the device is switched on:

  1. Turn off the phone.
  2. Press the buttons Volume down + Power for 10-15 seconds until the hare appears in the hat-eared (Fastboot logo).

If the phone does not respond to the buttons:

  1. Connect it to the PC via USB.
  2. Enter in the command line (Win + R β†’ cmd): adb reboot bootloader

Step 2: Checking the connection

Open Device Manager on PC and make sure that the Ports (COM and LPT) section includes a Qualcomm HS-USB QDLoader 9008 or Android Bootloader Interface. If Unknown Device is hanging instead, install the drivers manually:

  • πŸ–₯️ Download Google. USB Driver.
  • πŸ”§ In Device Manager, right-click on an unknown device β†’ Update the driver β†’ Perform a search on this computer.

Step 3: Start MiFlash and Select Firmware

Unpack the downloaded firmware (.tgz or.zip) into a folder without Cyrillic characters (e.g., C:\Xiaomi\ROM).

  1. Open the MiFlash Tool (launch on behalf of the administrator!).
  2. Click Select and point the way to the firmware folder.
  3. At the bottom, select Clean All (Full Reset) or Clean All and Lock (Reset + Lock bootloader).
What do you mean, "clean all and lock"?
This mode not only resets the settings, but also blocks the bootloader, making it impossible to further unlock without official permission from Xiaomi. Use it only if you are sure that you will no longer install custom firmware.

Step 4: Flash firmware

Click Refresh in MiFlash – your phone should appear in the list of devices (for example, COM4). Then click Flash. It takes 5-15 minutes. Don't turn it off. USB-Do not interrupt the process even if the progress bar is 99%!

The successful completion looks like this:

Flash Done. Total Time: 540s


Operation Success!

Step 5: First start after reset

After restarting, the phone will turn on in the initial setting mode.

  1. Select the language and region (Russia or Europe is recommended for Global ROM).
  2. Connect to Wi-Fi (required! otherwise Google services will not be activated).
  3. Skip the Mi Account link (unless you plan to use the cloud).

πŸ’‘

If the phone is stuck on the logo again after reset, repeat the procedure, but select clean all and lock mode in MiFlash - this often solves problems with the bootloader on new models.

Unlock the bootloader: when it is needed and how to make it

Starting with the Xiaomi Mi 10 (2020) and all POCO models after the POCO X3 NFC, a Fastboot reset requires an unlocked bootloader. If you're trying to flash a device with a locked bootloader, MiFlash will give an error:

flash_write_protect: Device is locked. Please unlock first.

Official unlocking takes 7 days to wait (from the moment you link your Mi Account to your device).

  1. Link your Mi Account: go to Settings β†’ Xiaomi Account β†’ Link your device.

⚠️ On the models of Redmi Note 12 and newer Xiaomi introduced an additional check β€” binding IMEI If you drop your phone without unlocking it, it's impossible to retrieve it!

Solving errors when resetting via Fastboot

Even with the correct instructions, Xiaomi can produce errors, and below are the most common ways to correct them.

Mistake.Reason.Decision
anti-rollback check failTrying to flash the old version of MIUI to a device with a new oneDownload the firmware of the same or newer version
flash_write_protectbootloader lockedUnlock the bootloader through the Mi Unlock Tool
invalid sparse file formatA damaged firmware file or an incompatible version of MiFlashUpload the firmware and use MiFlash 2026.3.1+
This MIUI version cannot be installedThe firmware is intended for another region (CN/Global/EEA)Select the firmware with the correct region (for example, ingres_global for Russia)

If MiFlash can't see the device:

  1. Try another one. USB-cable (preferably original from the set).
  2. Connect your phone to a USB 2.0 port (Blue USB 3.0 ports often don’t work).
  3. Disable driver signatures in Windows: bcdedit/set nointegritychecks on bcdedit/set testsigning on (after PC reboot).

Resetting without a computer: alternative methods

If you don't have access to a PC, try resetting Xiaomi through Recovery Mode or Find My Device, which are less reliable, but sometimes work.

Method 1: Recovery Mode (for unlocked devices)

  1. Turn off the phone.
  2. Press Volume Up + Power before the Recovery menu appears.
  3. Select Wipe Data β†’ Wipe All Data (control – volume buttons for navigation, power for selection).

Method 2: Find My Device (if you have a Google account attached)

  1. Go to the Find My Device page.
  2. Select your device and click Delete Data.
  3. Confirm the action (you will need a password from your Google account).

⚠️ Note: On Xiaomi models with MIUI 14+ Reset via Find My Device may not work if the Remote Management option is disabled in the settings (Settings) β†’ Google β†’ Security).

Frequent Questions (FAQ)

Can you reset Xiaomi via Fastboot without losing data?
No. Fastboot resets always delete all the data in the internal memory (photos, messages, apps) and the only way to save the information is to backup in advance via adb backup or Mi Cloud (if the phone is still on).
Why does MiFlash show "Waiting for Device" and nothing happens?
This error is caused by problems with the driver or USB-Try: Reinstall Qualcomm drivers manually through Device Manager. Use another one. USB-port (preferably) USB Disable the antivirus (it can block MiFlash). If it doesn't help, check if the phone is detected in Fastboot mode by the command: fastboot devices
How do I know if my Xiaomi bootloader is unlocked?
Turn off your phone and press Volume Down + Power to get into the Fastboot. If the bottom of the screen says Unlocked, the bootloader is unlocked. If Locked is locked. Newer models (Xiaomi 13, Redmi Note 12) may instead have Device is locked.
What if after reset, the phone asks for the old password from the Mi Account?
It's FRP-To remove it, enter your phone-linked Mi Account. If you don't remember the data, restore access through the recovery page. MIUI 12 can be bypassed FRP through TWRP, But it requires an unlocked bootloader.
Is this a good guide for POCO, Redmi and Black Shark?
Yes, all MIUI-based devices (including POCO, Redmi and Black Shark) are reset via Fastboot the same way. Exceptions: Black Shark 5/6: require a separate Black Shark Flash Tool utility. POCO F1: has a unique bootloader, it needs firmware marked beryllium.