Fastboot on Xiaomi: A Complete Guide to Using for Firmware and Unlocking

Fastboot mode on Xiaomi smartphones is a powerful tool for power users to perform operations that are not available in the standard interface. It can unlock the bootloader, flash official and custom firmware, restore the device after failures or even β€œresuscitate” bricks (defaulting devices).

In this article, we will detail how to log into Fastboot on Xiaomi, what commands are supported, how to unlock the bootloader through Mi Unlock Tool, flash the device using MiFlash, and what to do if something goes wrong. This material is relevant for all modern models of the brand, from the budget Redmi Note to the flagship Xiaomi 14 and POCO F6. If you are a beginner, follow the instructions carefully and do not miss the warnings!

What is Fastboot and Why You Need It on Xiaomi

Fastboot (or bootloader mode) is a special state of the smartphone, in which it connects to the computer to perform low-level operations. Unlike normal operation mode or even Recovery, Fastboot allows you to:

  • πŸ”“ Unlock the bootloader (bootloader) for installing custom firmware;
  • πŸ“₯ Sweep official and unofficial images of the software through MiFlash;
  • πŸ”§ Restore the device after software failures ("bricking");
  • πŸ”„ Install patches for modifying system partitions;
  • πŸ“‘ Test hardware (e.g., check the operation of communication modules).

Xiaomi Fastboot is used more often than other brands, due to the company’s policy: all devices have a locked bootloader by default. Without it unlocking, you can not install TWRP, LineageOS or even official firmware through fastboot after a crash.

⚠️ Warning: Unlocking the bootloader resets all the data on the device! backup via adb backup or Mi Cloud won't help - after anlock, the phone will become "clean" as after purchase.

Fastboot will also be useful if:

  • 🐒 The smartphone is slowing down or constantly restarting (bootloop);
  • 🚫 The device is locked with a pattern lock or password;
  • πŸ“‰ Firmware through Recovery ends with an error;
  • πŸ”„ We need to revert to an older version. MIUI.
πŸ“Š Why you use Fastboot on Xiaomi?
Unlocking the loader
Firmware official software
Installation of custom firmware
Recovery after failure
Other

How to enter Fastboot mode on Xiaomi: 3 ways

Before you use the Fastboot, you have to log in, and you can do this in a number of ways, and you can choose the one that's more convenient for your situation.

Method 1: Through hardware buttons (if the phone is turned off or unresponsive)

This is a universal method that works even on completely dead devices (if they even turn on).

  1. Turn off the smartphone (press the power button for 10 seconds if it freezes).
  2. Press and hold the Power button + Volume Book down.
  3. Hold the buttons until the Mi Bunny logo appears on the screen in a header with the inscription FASTBOOT.

Method 2: Through ADB (if the phone is on and running)

If the device is functioning normally but you need to go to Fastboot for firmware or unlock, use ADB:

adb reboot bootloader

After this command, the smartphone will automatically restart to fastboot mode.

Method 3: Through the Recovery Menu (if standard recovery is available)

If you are already in Recovery Mode (for example, after a failed firmware), select:

Reboot β†’ Fastboot

Or (on older versions of MIUI Recovery):

Connect with MiAssistant

⚠️ Warning: On some Xiaomi models (e.g., Redmi Note 12 Pro+), Recovery may be triggered instead of Fastboot when holding the buttons. In this case, try pinching the buttons 1-2 seconds longer or use ADB.

β˜‘οΈ Preparation for work with Fastboot

Done: 0 / 5

Unlock the bootloader on Xiaomi via Fastboot

Bootloader unlock is a must before running custom recoveries or alternative firmware. Xiaomi officially allows this procedure, but with restrictions:

  • πŸ”— Requires the connection of the Mi Account to the device;
  • ⏳ The confirmation wait can take up to 720 hours (30 days) for new accounts.
  • πŸ“΅ All data is reset after unlocking;
  • πŸ”„ Some models (e.g., POCO X6 Pro) require additional confirmation from SMS.

To unlock, you will need:

  • πŸ’» Windows computer (7/10/11);
  • πŸ”Œ Original USB- Cable (important!)
  • πŸ“± Device with a charge of at least 60%;
  • πŸ”‘ Mi Account Account Linked to Phone.

Step-by-step instructions for unlocking

  1. Download Mi Unlock Tool: The official utility can be found at en.miui.com/unlock (authentication required).

If you see a message saying "Couldn't unlock, try again after XX hours" it means that your account is new and you have to wait. The waiting time is displayed right in the program window. There is no way around this restriction - all the "circumvent" methods from the Internet either do not work or lead to the account being blocked.

Xiaomi modelWaiting time to unlockFeatures
Redmi Note 13 Pro+720 hours (30 days)Confirmation by SMS is required
POCO F5168 hours (7 days)Supports unlocking without waiting for old accounts
Xiaomi 14 Ultra720 hoursAdditional IMEI verification
Redmi A272 hours (3 days)No SMS- confirmation

πŸ’‘

If the Mi Unlock Tool doesn’t see the device, try disabling driver signatures in Windows or installing drivers manually through Device Manager (select β€œXiaomi Composite MDB Interface”).

Xiaomi Firmware via Fastboot with MiFlash

Fastboot firmware is the most reliable way to install official software on Xiaomi, especially if the device is not turned on or stuck on the logo. This uses the MiFlash utility, which can be downloaded from the official Xiaomi website or from trusted sources (for example, xiaomiflash.com).

Important: Firmware via fastboot erases all data (including internal memory)! If the phone is still working, back up via adb backup or Mi Cloud.

Preparation for firmware

  1. Download firmware: Official images for Xiaomi are available on MIUI Downloads. Choose the version of Fastboot (file with the extension.tgz or.zip).
  2. Unpack Archive: Inside should be a folder with images files and a flash_all.bat script.
  3. Install drivers: If MiFlash can’t see the device, install the drivers manually (see tip above).

Firmware process

  1. Put your phone in Fastboot mode.
  2. Put him on the PC.
  3. Start MiFlash (on behalf of the administrator!)
  4. Press Select and select the folder with unpacked firmware.
  5. At the bottom of the window, select firmware mode: clean all – complete cleaning (recommended in case of failures); clean all and lock – cleaning + locking the bootloader (only for official firmware); save user data – data storage (not always stable).

Refresh

Flash

If the process is successful, the phone will automatically restart. The first turn on can take up to 15 minutes - don't interrupt it!

⚠️ Warning: If MiFlash gives a β€œflash not done” error, check: Correctness of the selected firmware (for your model!); Integrity of the USB- cable (try another port); Disable the antivirus – it can block firmware scripts.

What if MiFlash is 99% frozen?
This is a common problem with firmware verification. Solutions: 1. Restart MiFlash and repeat the process. 2. Try flashing in clean all and lock. 3. If it doesn't work, download the firmware from another source (e.g., Xiaomi Firmware Updater).

Fastboot Teams for Xiaomi: The Complete List

Fastboot mode supports dozens of commands to control the device, and below are the most useful ones for Xiaomi owners.

Major teams

fastboot devices # Show connected devices


fastboot reboot #Reboot your phone to normal mode




fastboot reboot recovery #Reboot to Recovery




fastboot oem device-info # Show bootloader status (locked/unlocked)




fastboot getvar all # Output all variable devices (model, IMEI, etc.)

Commands for unlocking and firmware

Fastboot oem unlock # Unlock the bootloader (requires Mi Unlock Tool)


fastboot flash boot.img # Switch the boot section image




fastboot flash recovery.img #Swipe out custom recaveri (TWRP)




fastboot erase userdata # Clear user data (reset to factory)

Diagnostic teams

fastboot oem edl # Transfer the device to EDL mode (for firmware through Qualcomm Tools)


Fastboot continue # Continue downloading after stopping on fastboot




fastboot format userdata # Format a partition with user data

To firmware individual partitions (for example, system or vendor) use the command:

fastboot flash [section] [file.img]

Example:

fastboot flash system system.img

πŸ’‘

The fastboot oem unlock command will not unlock the bootloader by itself, it will only initiate the process. Make sure to use the Mi Unlock Tool to unlock it completely!

Fastboot Errors on Xiaomi and Their Solutions

Fastboot users often encounter errors, most of which are solved by simple actions, but some require in-depth diagnostics.

Mistake.Reason.Decision
waiting for devicePC doesn't see the phoneCheck the USB- cable and port; Install Xiaomi drivers; Disable other USB- devices.
FAILED (remote: 'Flashing is not allowed in Lock State')bootloader lockedUnlock the bootloader through the Mi Unlock Tool.
Invalid sparse file format at headerFirmware file damagedDownload the firmware again and check the checksum (MD5).
This package is for "XXX" devices; this is a "YYY".The firmware is not suitable for the modelDownload the correct firmware version for your device.

If MiFlash is 99% β€œflash not done” error, try:

  • πŸ”„ Reboot your PC and phone;
  • πŸ“ Move the firmware to the root of the disk C:\ (the Cyrillic-free path!);
  • πŸ› οΈ Switch to clean all and lock mode.
  • πŸ”Œ Use the other USB-port (preferably) USB 2.0).

If the device does not turn on after firmware (black screen, vibration without image), try:

  1. Re-stripe with complete cleaning (clean all).
  2. Use a different version of the firmware (e.g., an older version).
  3. Put the device in EDL mode and flash it through QFil or MiFlashPro.

πŸ’‘

If MiFlash freezes during sending 'sparsecrash', disable the "Use New Flash Algorithm" option in the program settings.

Fastboot vs Recovery vs EDL: Which Mode to Choose

There are three main modes available on Xiaomi for firmware and recovery: Fastboot, Recovery and EDL. Each of them has its pros and cons.

Regime.When to usePlusesCons
FastbootUnlocking the loader; Firmware of official images; Installation of custom recavers.Supported by all models; Easy to use; Official Xiaomi supportRequires unlocking the bootloader; not all custom firmware is supported.
RecoveryInstall OTA- updates; Reset to factory settings; firmware ZIP- archives (e.g., Magisk).No PC; Saves data (when updated).Limited functionality; does not work in case of serious failures.
EDL (Emergency Download Mode)Recovery after the "brick"; firmware with a damaged loader.It works even on locked devices; Allows you to flash any partitions.Requires an authorized Xiaomi account; Setup difficulty (Qualcomm drivers required).

For most tasks (unlock, firmware official) enough Fastboot. Recovery is suitable for minor updates, and EDL is the β€œlast chance” for recovering broken devices.

Security and Tips for Working with Fastboot

Working with Fastboot is always a risk. To minimize problems, follow these tips:

  • πŸ”‹ Battery charge: Never stitch a device with a charge less than 50%. Optimally, 80% or higher.
  • πŸ”Œ USB- Cable: Use the original Xiaomi cable or certified USB-C. Cheap cables can interrupt data transmission.
  • πŸ’Ύ Backup: Even if you are running official software, backup important data (photos, contacts) to the cloud or PC.
  • πŸ“₯ Firmware Source: Download images only from official sites (MIUI Downloads) or verified resources (XDA Developers, 4PDA).
  • πŸ”’ Antivirus: Turn off the protection for the time of the firmware - it can block MiFlash scripts.

If you are a beginner, start by firmware through Fastboot. Castom firmware and modifications (such as TWRP or Magisk) require experience and can lead to:

  • 🚨 Loss of warranty;
  • πŸ“΅ Blocking your Mi Account;
  • πŸ”„ Unstable operation of the device.

⚠️ Warning: On some Xiaomi models (e.g. Redmi K70 or Xiaomi 14), custom firmware installation can result in IMEI or 5G locking.

πŸ’‘

If you are not sure about your actions, do not take risks! contact the Xiaomi service center or expert users on forums (for example, 4PDA).

Frequently Asked Questions (FAQ)

Can I unlock the bootloader without waiting 720 hours?
No, it’s a technical limitation of Xiaomi. all β€œcircumvent” methods (for example, resetting time through changing the date on the PC) do not work since 2021.The only way to speed up the process is to use the old Mi Account (registered before 2019), but in this case, it may require a wait of up to 7 days.
Why can't MiFlash see my device?
There may be several reasons: Drivers are not installed (download Platform Tools and Xiaomi drivers); Uses a non-original USB- cable; USB 3.0 port is incompatible (try USB 2.0); Antivirus blocks the connection (disable it). Also check if the device in Device Manager is identified as Android Booter Interface.
What to do if the phone does not turn on after the firmware?
If the screen is black or only the Mi logo is on: Try to re-stitch with a clean all. Use another firmware version (e.g. older). If it doesn't work, put the device in mode. EDL (Press the power button. + Loudness up + Volume down on the phone that's turned off, and run through MiFlashPro or QFil. If the phone vibrates but the screen doesn't turn on, maybe the dtbo or vendor partition is damaged, and then only firmware in the phone will help. EDL.
Can I flash Xiaomi through Fastboot without unlocking the bootloader?
No, official firmware via Fastboot requires an unlocked bootloader, except for firmware via EDL, but this requires an authorized Xiaomi account (usually only from service centers), and some models (such as the Redmi Note 10 Pro) allow you to stitch official updates through Recovery without unlocking, but this is not the case with Fastboot.
How to check if the bootloader is unlocked on my Xiaomi?
There are two ways: Turn on your phone and go to Settings β†’ About Phone β†’ MIUI Version. Press 7 times on the MIUI Version, then go back and select Additional β†’ bootloader Status. Transfer the device to Fastboot and execute the command: fastboot oem device-info If the answer has a line Device unlocked: true - the bootloader is unlocked.