Fastboot on Xiaomi: how to use for unlocking, firmware and recovery

Xiaomi’s Fastboot mode is a powerful tool for power users to perform operations that are not available in the standard interface, unlocking the bootloader, installing custom firmware, recovering the device after crashes, or even β€œresuscitating” the brick, but using the Fastboot incorrectly can lead to a complete loss of phone performance.

In this article, we will discuss how to use Fastboot on Xiaomi in 2026, which commands to use for different tasks, and how to avoid typical errors. The material will be useful for both beginners who are just familiar with the features of the mode, and experienced users who are looking for current instructions for new models Redmi, POCO and Mi.

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 via USB and receives low-level commands. Unlike normal mode of operation or even Recovery, Fastboot allows:

  • πŸ”“ Unlock the bootloader (bootloader) - a mandatory step before installing custom firmware or obtaining root rights.
  • πŸ“₯ Install official and unofficial firmware via fastboot flash.
  • πŸ”§ Restore the device after software failures when standard methods do not work.
  • πŸ“Š View and modify memory partitions (boot, recovery, system, etc.).
  • πŸ› οΈ Perform a rollback to the factory firmware if the smartphone stopped loading.

On Xiaomi smartphones, Fastboot mode is especially important, as the company blocks the bootloader by default. Without it, you can not install TWRP, Magisk or alternative firmware like LineageOS. At the same time, on new models (2023-2026), the unlocking process has become more complicated - now you need to link the Mi Account and wait up to 720 hours (30 days).

It is important to understand that working with Fastboot requires caution, a team error or interrupted firmware can turn a smartphone into a brick.

⚠️ Warning: Before using the Fastboot, make sure the battery is at least 50% charged. interruption of the process due to discharge can make the device inoperable.

How to enter Fastboot mode on Xiaomi

There are several ways to run Fastboot on Xiaomi, Redmi and POCO smartphones. The choice of method depends on the state of the device:

  • πŸ“± Through a button combination – works if the smartphone is turned off or got stuck.
  • πŸ–₯️ Through ADB β€” convenient if the phone is on and connected to the PC.
  • πŸ”„ Automatically – when connected to a computer with a clamped volume button.

The most universal way is to use hardware buttons:

  1. Turn off the smartphone (if it freezes, press the power button for 10-15 seconds).
  2. Press and hold the power button + volume down button.
  3. Keep them until the Fastboot logo appears (an open-body Android robot or FASTBOOT label).

If you have ADB and Fastboot drivers installed on your computer, you can enter software mode.

adb reboot bootloader

Once this command is executed, the smartphone will automatically restart to Fastboot. Make sure that the Settings β†’ USB Debugging option is enabled for developers.

πŸ“Š What is the Fastboot login method you use more often?
Button combination
ADB Team Team
Automatically when connected to a PC
Another way.

Unlock bootloader on Xiaomi via Fastboot

Unlocking a bootloader is a must for custom firmware or root rights. On new Xiaomi models (2022-2026), the process has become more complicated: it now requires a binding Mi Account and a wait of up to 720 hours (30 days), but on older devices (until 2021), unlocking takes only a few minutes.

To unlock, you will need:

  • πŸ“± Xiaomi smartphone with enabled debugging USB.
  • πŸ–₯️ Computer with Mi Unlock Tool and Fastboot drivers installed.
  • πŸ”— Mi Account tied to the device (required for models after 2021).
  • πŸ”Œ Original. USB-cable (better from the set).

Step-by-step:

  1. Download the official Mi Unlock Tool from en.miui.com/unlock.
  2. Log in to Fastboot on your smartphone (see previous section).
  3. Connect your phone to your computer and start the Mi Unlock Tool.
  4. Sign in to your Mi Account (should match the one on your phone).
  5. Press Unlock and wait for the process to be completed.

On new devices, after pressing Unlock, a message will appear to tell you to wait.

  • Connect to the Internet on your smartphone.
  • Log in to Settings β†’ Mi Account β†’ Unblock Status.
  • Link your account to your device and wait until the end of the timer (168 to 720 hours).

⚠️ Note: Some models (such as the Redmi Note 12 or Xiaomi 13) reset all data after unlocking!

Charge your phone at least 50 times%|Download Mi Unlock Tool from the official website|Enable debugging on USB unlock OEM|Linking your Mi Account to your device|Use the original USB-cable-->

Main Fastboot teams for Xiaomi

Fastboot has a lot of commands available to control the device, and here's a list of the most useful ones you can use for firmware, repair, or diagnostics.

Team team.DescriptionExample of use
fastboot devicesShows connected devices in Fastboot modefastboot devices β†’ must show the serial number
fastboot rebootRebooting the device to normal modefastboot reboot or fastboot reboot recovery
fastboot flash [section] [file]Firmware of this section (boot, recovery, system, etc.)fastboot flash boot magisk_patched.img
fastboot erase [section]Cleaning the partition (for example, before firmware)fastboot erase userdata - data reset
fastboot getvar allShows information about the device (model, bootloader version, etc.)Useful for checking unlock: fastboot getvar unlocked

To run the official firmware through Fastboot, use the command:

fastboot flash all firmware.zip

Where firmware.zip is a firmware file downloaded from Xiaomi's official website. Importantly, the firmware should be designed specifically for your model.

fastboot getvar product

If you only need to flash certain sections (for example, to save data), use commands like:

fastboot flash boot boot.img


fastboot flash recovery recovery.img




fastboot flash system system.img

πŸ’‘

Before firmware, check the integrity of firmware files with the help of MD5-This will help to avoid errors due to corrupted data.

Xiaomi firmware via Fastboot: step-by-step instructions

Fastboot firmware is one of the most reliable ways to upgrade or restore a Xiaomi smartphone, and this method is suitable if:

  • πŸ“± The device does not turn on or hangs on the logo.
  • πŸ”„ We need to revert to the previous version. MIUI.
  • πŸ› οΈ It is required to install an official firmware after unsuccessful experiments with custom.

You'll need firmware.

  • Official firmware in.tgz or.zip format (you can download it on the official website).
  • Mi Flash Tool (for Windows) or fastboot manually (for Linux/macOS).
  • Unlocked bootloader (if you are running the unofficial version).

The following is a step-by-step guide for the Mi Flash Tool:

  1. Unpack the downloaded firmware in a folder without Cyrillic symbols.
  2. Run the Mi Flash Tool on behalf of the administrator.
  3. Log in to Fastboot on your smartphone and connect it to your PC.
  4. In the Mi Flash Tool, click Select and specify the path to the firmware folder.
  5. Select firmware mode: Clean all - complete cleaning (data will be deleted); Clean all and lock - cleaning + lock bootloader (for official firmware); Save user data - saving user data (does not always work).

Flash

If you use Fastboot manually (for example, on Linux), do:

fastboot flash all firmware.zip

Once the firmware is successful, the smartphone will automatically restart. The first launch can take up to 10 minutes - that's normal.

What do you do if the firmware is frozen?
If the firmware process through the Mi Flash Tool is frozen for 99% or another step longer than 20 minutes: Disconnect the smartphone from the PC. Press the power button for 20-30 seconds for a forced reboot. Repeat the firmware by selecting a different mode (Clean all instead of Save user data). If the problem recurs, try a different version of the firmware or check the integrity of the files.

Xiaomi Restores via Fastboot (if the phone doesn’t turn on)

If Xiaomi’s smartphone stopped turning on, stuck on the logo, or went into a β€œbootloop,” Fastboot is often the only way to recover, and depending on the cause of the failure, you can use different methods:

  • πŸ”„ Official firmware MIUI β€” If the problem is in the software.
  • 🧹 Partition Cleanup – if the system is damaged but the bootloader is working.
  • πŸ”§ Recovery through EDL β€” If Fastboot does not identify the device (an authorized account is required).