Fastboot mode on Xiaomi: how to use without the risk of β€œbricking” the phone

Fastboot is a low-level boot mode on Xiaomi smartphones that lets you interact with your device via your computer even if Android isn’t running.It’s used to unlock the bootloader, firmware custom recavators, restore the system after crashes, or install official updates manually.However, the wrong actions in this mode can turn your Redmi, POCO or Mi into a β€œbrick” – a device that doesn’t turn on or respond to buttons.

Unlike Recovery Mode, which is controlled via touch screen, fastboot works via the command line on the PC. This gives more features, but requires accuracy: one error in the command, and the phone can lose data or stop loading altogether. In this article, we will discuss how to safely use fastboot on Xiaomi, what commands are really needed, and what to do if something goes wrong.

What is fastboot mode and why is it needed on Xiaomi?

Fastboot (or bootloader mode) is a diagnostic tool built into the firmware of Android smartphones, which is activated when you boot on Xiaomi devices and allows you to:

  • πŸ”“ Unlock the bootloader (bootloader unlock) for installing custom firmware.
  • πŸ“₯ Install official and unofficial firmware through fastboot teams.
  • πŸ”§ Restore the device after software failures (for example, after a failed update).
  • πŸ“‘ Switching through individual system parts (e.g. recovery, boot, or modem).
  • πŸ› οΈ Diagnose hardware problems (such as checking memory or Wi-Fi module).

Xiaomi fastboot is often confused with EDL-Emergency Download Mode, but they are different things: EDL It is used for deep recovery through special boxes (for example, Qualcomm 9008), while fastboot is available to any user without additional hardware.

It is important to understand that unlocking the bootloader on Xiaomi is officially supported by the company, but leads to a reset of all data and cancellation of the warranty. Once unlocked, the device becomes more vulnerable to malware, as it loses the protection of Verified Boot.

πŸ“Š Why you use fastboot on Xiaomi?
Unlocking the loader
Installation of custom firmware
Recovery after failure
Update of the PO
Other

How to enter fastboot mode on Xiaomi: 3 working ways

You can get into fastboot on Xiaomi in a number of ways, depending on the state of the device. If the phone is on and running, the easiest way to use a combination of buttons is to use it. If the screen is not responsive, ADB or hardware shutdown will help.

Method 1: Power and volume buttons (for working devices)

The most versatile method, works on all models of Redmi, POCO and Mi:

  1. Turn off the phone (press the power button and select Turn off).
  2. Press the Power button + Volume down at the same time.
  3. Hold on for 5-10 seconds until the Mi Bunny logo appears in fastboot mode (Android robot with an open belly and the inscription FASTBOOT).

If you're loading your phone into Recovery instead of fastboot, you've been holding the buttons for too long. Try again, releasing them as soon as the logo appears.

Method 2: Team Team ADB (if USB-debugging is on)

If USB Debugging is enabled on your phone (in Settings β†’ About Phone β†’ MIUI version, tap 7 times, then return to Additional Settings β†’ For Developers), you can log in to fastboot via your computer:

adb reboot bootloader

Once this command is executed, the phone will automatically restart to fastboot mode, which is convenient if you need to quickly switch between modes when you are running firmware.

Method 3: Forced entry (if the phone is not turned on)

If the device is stuck on the Mi logo or does not respond to buttons, try:

  1. Connect your phone to charge for 10-15 minutes (even if it doesn’t show signs of life).
  2. Press the Power button + Volume down for 15-20 seconds.
  3. If it doesn’t work, try the Power Button + Volume Up + Volume Down combination (on some models).

πŸ’‘

On the POCO F1, Redmi K20 Pro and some others, you may need to first press the Volume up and then press Power to enter the fastboot.

Necessary tools to work with fastboot

To interact with your phone in fastboot mode, you will need:

Tool.AppointmentWhere to download
ADB & Fastboot ToolsA set of utilities for sending commands via USBOfficial Android website
Mi Unlock ToolOfficial utility for unlocking the bootloaderXiaomi's Unlocking Page
Qualcomm/MTK driversProvide phone recognition PCXDA Developers
Firmware (ROM)Official or custom firmware in.tgz or.zip formatOfficial MIUI website

Before starting work, it is mandatory to:

  • πŸ”‹ Charge your phone at least 50% (better to 100%).
  • πŸ’Ύ Make a backup of the data (unlocking the bootloader erases everything!).
  • πŸ”Œ Use the original. USB-cable (cheap cables can interrupt the connection).
  • πŸ–₯️ Disable the antivirus on your PC (it can block fastboot commands).

β˜‘οΈ Preparation for work with fastboot

Done: 0 / 5

Basic fastboot commands for Xiaomi (with examples)

All commands are entered in the command line (Windows) or terminal (Linux/macOS) from the folder with the platform-tools. Before executing any command, make sure that the phone is recognized by the system:

fastboot devices

If you see a serial number (e.g. 1234567890abcdef fastboot) in response, the connection is established. If not, check the drivers and the cable.

Diagnostic teams

  • fastboot getvar all – show all the variable devices (model, bootloader version, etc.).
  • Fastboot oem device-info – Check the unlocked status (Device unlocked: true/false).
  • Fastboot flash recovery [file.img] – flash custom recavers (e.g. TWRP).

Commands for unlocking and firmware

  • fastboot oem unlock – unlock the bootloader (requires the binding of the Mi Account).
  • Fastboot flash boot [file.img] – flash the boot partition (for example, to install Magisk).
  • fastboot -w - delete user data (analogue to wipe data in Recovery).
  • Fastboot reboot – Reboot your phone to normal.

When the official firmware MIUI fastboot uses scripting flash_all.bat (for Windows or flash_all.sh (for Linux/macOS). You need to start it from a folder with unpacked firmware.

What to do if the fastboot team is not working?
If the command is hanging in the waiting for device stage, try: 1. USB-cable to another port (better) USB 2.0). 2. Reboot your phone to fastboot again. 3. Update drivers through Device Manager (select Android Bootloader Interface). 4. Run the command prompt on behalf of the administrator.

How to unlock the bootloader on Xiaomi via fastboot

Unlocking bootloader is a must for custom firmware installation or root rights. Xiaomi officially allows this, but with restrictions:

⚠️ Warning: Once the bootloader is unlocked, all data on the phone will be deleted, including photos, contacts and installed apps. L1 (Netflix, Disney+ Other services will work in low resolution).

Step-by-step:

  1. Link your Mi Account to your phone: Go to Settings β†’ Mi Account β†’ Sync. Make sure the device is linked to your account (Device tab).

Mi Unlock Tool

official website

fastboot

And connect the phone to the PC.

miflash_unlock.exe

Mi

The unlocking process takes 3 to 7 days (Xiaomi imposes an artificial delay) and after successful unlocking, the command prompt will have a message:

(bootloader) Unlocked successfully

πŸ’‘

Unlocking the bootloader on Xiaomi is only possible 1 time every 30 days for one Mi Account. If you sell the phone, the new owner will not be able to unlock it right away - you will have to wait.

Xiaomi firmware through fastboot: step-by-step instructions

Firmware via fastboot is a reliable way to restore your phone after a crash or install a new version of MIUI. It is important to use firmware designed specifically for your model (for example, davinci for the Redmi K20 or raphael for the Redmi K20 Pro).

Step 1: Download the correct firmware

The official firmware for fastboot is available on MIUI Downloads.

  • πŸ“± Recovery ROM β€” Recovery Mode (not suitable for fastboot!).

Step 2: Unpack the firmware and prepare the script

Unclose the downloaded.tgz file into a folder with platform-tools. Inside it will be:

  • flash_all.bat β€” Windows script.
  • flash_all.sh β€” script Linux/macOS.
  • Firmware files (boot.img, system.img, etc.)

Step 3: Launch the firmware

For Windows:

  1. Open the command line in the firmware folder (Shift + PCM β†’ Open the PowerShell window here).
  2. Enter the command: flash_all.bat
  3. Wait until the phone is finished (the phone will reboot automatically).

For Linux/macOS:

  1. Make the script executable: chmod +x flash_all.sh
  2. Launch it:./flash_all.sh

⚠️ Warning: If the firmware is interrupted during the sending 'sparse' or writing 'system' phase, don't turn off the phone! Wait 10-15 minutes - sometimes the process "hangs" but actually continues. IMEI or complete inoperability of the device.

Step 4: Check the result

After the firmware:

  • The phone should automatically reboot to MIUI.
  • The first launch can take 5-10 minutes (don’t interrupt!).
  • Check the firmware version in Settings β†’ About the phone.
What to do if the phone does not turn on after the firmware?
If the screen is black or the Mi logo is on for more than 20 minutes: 1. Try flashing it back through fastboot (maybe the files haven't been downloaded completely). 2. Make sure the firmware is suitable for your model (check the device's code name through fastboot getvar product). 3. If the phone doesn’t respond at all, try to enter. EDL-Mode (requires a special cable or box).

Common Fastboot Errors and How to Fix Them

Even experienced users have problems with fastboot, and here are the most common errors and solutions:

Mistake.Reason.Decision
waiting for devicePhone is unrecognizable by PCCheck the cable, drivers and USB port. Try the fastboot device command.
FAILED (remote: 'Flashing is not allowed in Lock State')bootloader lockedUnlock the bootloader through the Mi Unlock Tool.
Invalid sparse file format at header magicFirmware file damagedDownload the firmware again and check the checksum (MD5).
The phone is stuck on the Mi logoIncompatible firmware or interrupted processRe-sweeten or restore via the Mi Flash Tool.
No such file or directoryThe Wrong Path to the Firmware FileCheck the file name and folder where you are running the command.

If you see a FAILED error (remote: 'token verify failed'), then the Mi Account is not tied to the device or Xiaomi servers are temporarily unavailable.

  • Check your Internet connection.
  • Re-link the account in the phone settings.
  • Try unlocking later (servers may be overloaded).

FAQ: Frequent questions about fastboot mode on Xiaomi

Can I get out of fastboot without a computer?
If the phone is responding to buttons, press the Power Button for 10-15 seconds until the screen goes out. Then turn on the device as usual. If the buttons are not working, wait until the battery runs out (may take several hours).
Why does Mi Unlock Tool write "Couldn't unlock"?
This may be due to: Unbound Mi Account (check Settings β†’ Mi Account). Too frequent attempt to unlock (limit 1 time every 30 days); Unstable Internet connection (use a wired connection); Solution: reboot your phone and PC, check your account binding and try again in a day.
How to find out the code name of your Xiaomi model?
The code name (e.g., raphael for Redmi K20 Pro) can be found: via the command fastboot getvar product. In the phone settings: Settings β†’ About phone β†’ Version of the kernel (look for the line with the model). On the Xiaomi Device website by model number.
Can I flash a custom recap (TWRP) without unlocking the bootloader?
No. Installing a TWRP or any other customized recavator requires an unlocked bootloader, and trying to flash recovery on a locked device will result in a FAILED error (remote: 'Flashing is not allowed in Lock State').
What if there is no network after the firmware (IMEI is missing)?
This is a typical problem when firmware is unofficial or corrupted. Solutions: Sweep the original firmware through the Mi Flash Tool with the clean all option. Restore IMEI through Engineer Mode (requires root or EDL). Contact the service center (if the warranty is valid, don't talk about unlocking!).