Fastboot on Xiaomi: how to use the software for firmware and unlock

What is Fastboot and why it is needed by Xiaomi owners

Fastboot is a special protocol integrated into Android devices that allows you to control your smartphone through a computer at a low level. For Xiaomi owners, this tool becomes indispensable when you need to unlock a bootloader, flash custom software or restore a brick after a failed update. Unlike the standard Recovery Mode, Fastboot gives access to system partitions even if the operating system does not boot.

Main use cases:

  • πŸ”“ Unlocking the bootloader (a mandatory step before installing custom firmware)
  • πŸ“₯ Firming official/unofficial samples via Mi Flash Tool
  • πŸ› οΈ Recovery from crashes (for example, if the smartphone is getting stuck on the Mi logo)
  • βš™οΈ Partition management (deletion, creation, modification)

It's important to understand that Fastboot requires care, and one wrong action can turn your Redmi Note 12 or POCO X5 into a brick, but when done right, it opens up possibilities that are not available through standard settings.

In this article, we will discuss:

  • πŸ–₯️ How to connect Xiaomi to your PC in Fastboot mode
  • πŸ”‘ Step-by-step unlocking the bootloader (subject to recent Xiaomi restrictions)
  • πŸ“‚ Firmware and diagnostic commands
  • ⚠️ Common Mistakes and How to Avoid Them

πŸ“Š What kind of Xiaomi smartphone do you have?
Redmi Note Series Series Series
POCO
Mi series
Black Shark
Other

Preparation for work: what you need for Fastboot on Xiaomi

Before you go to commands, make sure you have everything you need. Without proper preparation, even a simple operation can end up with a remote error: unknown command or worse, with data loss.

Mandatory set:

  • πŸ’» Windows PC 10/11 (or Linux/macOS with additional drivers)
  • πŸ”Œ Cable USB Type-C (preferably original to avoid connection issues)
  • πŸ“± Xiaomi smartphone with at least 50% battery charge
  • πŸ› οΈ Utility: ADB & Fastboot Tools, Mi Unlock Tool (unlock), Mi Flash Tool (for firmware)

Download the official tools from the Xiaomi website:

  • 🌐 Mi Unlock Tool (Mi Account required)
  • 🌐 Mi Flash Tool (for Fastboot firmware)

β˜‘οΈ Pre-work checks

Done: 0 / 5

Attention! If you're using Windows, turn off the driver digital signature check.

  1. Press Win + X β†’ Device Manager
  2. Find your smartphone under Other Devices (usually displayed as Android)
  3. Update the driver manually by specifying the folder with ADB

⚠️ Warning: On Xiaomi 12T, Redmi K50 and newer models, unlocking a bootloader may require waiting up to 720 hours (30 days) after an account is linked, a restriction introduced in 2022 to fight fraud.

How to enter Fastboot mode on Xiaomi

There are three ways to get your smartphone into Fastboot mode: Choose the one that is available in your situation:

Method 1. Through the device turned off (most reliable)

  1. Turn off the smartphone with a long press Power + Volume up
  2. Press Power + Volume Down for 5-10 Seconds
  3. Release the buttons when the Fastboot logo appears.

Method 2. via ADB (if the smartphone is turned on)

  1. Connect your device to your PC and enable USB Debugging in Settings β†’ About Phone β†’ MIUI version (click 7 times to unlock the developer menu)
  2. Enter the command line: adb reboot bootloader

Method 3. via Mi Recovery (if ADB is not available)

  1. Enter Recovery Mode (Food + Volume Up)
  2. Select Connect with MiAssistant (on some models – Reboot to Fastboot)

After a successful entry, the smartphone screen should look like this:

πŸ’‘

If the smartphone is not detected in Fastboot, try another USB-port (preferably USB 2.0 on the back of the PC) or disable all other USB- devices.

Main Fastboot teams for Xiaomi

All commands are entered via Command Prompt (CMD) or Terminal (macOS/Linux). Go to the folder from fastboot.exe or specify the full path to the file.

Basic commands for diagnosis:

Team team.DescriptionExample of inference
fastboot devicesShows connected devices1234abcd fastboot
fastboot getvar allProvides complete information about the deviceversion-bootloader: UFI-2.1secure: yes...
fastboot oem device-infoChecks the status of the bootloader unlockDevice unlocked: false
fastboot rebootReboot to normal modeβ€”

Firmware commands:

  • πŸ“¦ Image setup: fastboot flash <section> <file.img> (example: fastboot flash boot boot.img)
  • 🧹 Cleaning partition: fastboot erase <section> (caution! deletes data irrevocably)
  • πŸ”„ Recovery: Fastboot Reboot Recovery

Critical information: On models with a Qualcomm Snapdragon processor (for example, POCO F5, Redmi K60) before the firmware must unlock the critical area command fastboot oem edl. Without this firmware through the Mi Flash Tool will end in error.

What to do if the team is not working?
If you see waiting for device after you enter the command, check: 1. Correct cable connection (try another port) 2. If drivers are installed (Device Manager should not have exclamation marks) 3. Does Fastboot itself work on the device (reboot again) 4. Are there any conflicts with antivirus (temporarily turn off protection)

Unlock the bootloader via Fastboot

Xiaomi has been blocking the bootloader on all devices since 2017, and to install custom software (like LineageOS or Pixel Experience), it must be unlocked.

Step 1 - Linking the Mi Account

  1. Log in to Settings β†’ Xiaomi account and log in
  2. Go to Settings β†’ About Phone β†’ MIUI Version and Tap 7 Times to Activate Developer Mode
  3. Return to Additional Settings β†’ For Developers and enable: πŸ”— Debugging with USB πŸ”“ Unlock OEM (on some models this item is hidden until the account is linked)

Connect your smartphone to your PC and confirm the debugging permission

Step 2: Request Unlocking through Mi Unlock Tool

  1. Download and install Mi Unlock Tool from the official website
  2. Launch the utility and log in under the same Mi Account as on your smartphone
  3. Transfer the device to Fastboot (as described above) and connect to the PC
  4. In the utility, click Unlock. If you receive a message about the need to wait, wait for the specified time (from 72 to 720 hours)

Stage 3: Final unlock

  1. After the waiting time has expired, repeat the procedure in the Mi Unlock Tool.
  2. The utility will show the progress bar and the message Unlocked successfully
  3. Reboot your smartphone – now the bootloader is unlocked

⚠️ Warning: On Xiaomi 13 and later models, unlocking the bootloader resets all data on the device, including internal memory (userdata).

πŸ’‘

Unlocking the bootloader will void the Xiaomi warranty. If you plan to contact the service center, return the device to its original state with the command fastboot oem lock (but this will delete all data).

Xiaomi firmware via Fastboot: step-by-step instructions

Fastboot firmware is the most reliable way to restore or update your smartphone when standard methods don’t work, and we’ll look at two options: through the Mi Flash Tool and manually through commands.

Option 1: Automatic firmware via Mi Flash Tool

  1. Download the firmware for your model from the official website (choose the Fastboot version, not Recovery!). For example, for Redmi Note 11, this will be a file ingres_global_images_V13.0.6.0.SGCMIXM_20221010.0000.00_12.0_global.zip
  2. Unpack the archive in a folder without Cyrillic characters (for example, C:\Xiaomi\ROM\)
  3. Launch the Mi Flash Tool, press Select and specify the folder with the firmware
  4. Connect your smartphone in Fastboot mode and press Refresh – the device should be determined
  5. Select firmware method: πŸ”„ Clean all - complete clean (recommended when changing MIUI) 🧹 Clean all and lock - clean + lock the bootloader (to return to warranty state) πŸ“¦ Save user data - saving user data (not always stable)

Flash

Option 2: Manual firmware via Fastboot commands

  1. Unpack the firmware and go to the folder with files via CMD
  2. To run all sections, enter successively: fastboot flash boot.img fastboot flash recovery.img fastboot flash recovery system.img fastboot flash vendor.img fastboot flash vendor.img fastboot flash dtbo dtbo.img fastboot reboot
  3. For models with dynamic partitions (e.g. Xiaomi 12) use: fastboot update rom.zip (where rom.zip is the original firmware archive)

After the firmware is installed, the first turn on can take up to 10 minutes. Do not interrupt the process, even if the screen remains black for a long time!

How to check the integrity of the firmware?
Before you run the firmware, compare the MD5- hash of the downloaded file to the official one. To do this, 1. Download the MD5 utility Checker 2. Drag the firmware file into the 3 program window. Compare the hash you get with what is listed on Xiaomi's website If the hashes don't match, download the file again.

Typical Fastboot Errors and How to Fix Them

Even experienced users experience errors when working with Fastboot, and we have collected the most common problems and their solutions:

Mistake.Reason.Decision
waiting for devicePC doesn't see a smartphoneCheck drivers, cable, USB port. Try the fastboot device command in another folder with ADB.
remote: unknown commandUnsupported team for this modelCheck the syntax of the command. On new devices, some commands (oem unlock) have been replaced by fastboot flashing unlock.
FAILED (remote: 'Flashing is not allowed in Lock State')bootloader lockedUnlock the bootloader through the Mi Unlock Tool (see section above)
Invalid sparse file format at headerFirmware file damagedDownload the firmware again and check it out. MD5-hash
The smartphone does not turn on after firmwareIncompatible firmware or interrupted processRepeat the firmware with a complete clean (Clean all). If it doesn't work, run through EDL Mode (requires an authorized account)

If you see an error that isn't in the table, read the text carefully. Often the solution is hidden in the message itself. For example, remote: 'This miui version cannot be downgraded' means you're trying to flash an older version of MIUI than the one installed now, in which case only firmware through EDL or waiting for an official update will help.

πŸ’‘

If after firmware smartphone got stuck on the Mi logo, try to reset the cache: fastboot erase cache, then fastboot reboot.

Security and recommendations when working with Fastboot

Fastboot is a powerful tool, but it's also the most dangerous one. One wrong action can lead to data loss or a build-up of your device.

What must be done:

  • πŸ”‹ Always check the battery power (minimum 50%, preferably 70%+)
  • πŸ“‹ Make backups of important data (Fastboot doesn't save custom files!)
  • πŸ” Download firmware only from official sources (Xiaomi Firmware or Xiaomi Firmware Updater)
  • πŸ”„ After firmware, reset to factory settings (fastboot -w) to avoid conflicts.

What can't be done:

  • ❌ Interrupt the firmware process (even if nothing seems to be happening)
  • ❌ Use firmware from other models (even if they are "similar")
  • ❌ Try to unlock the bootloader on devices with Mi Account tied to another region (e.g., Global firmware ROM on a smartphone with a Chinese account)
  • ❌ Delete partitions that you do not know the purpose of (e.g. modem, bluetooth)

If you’re a beginner, start with official firmware through the Mi Flash Tool. Custom ROMs (like ArrowOS or HavocOS) require in-depth knowledge and often have bugs specific to specific Xiaomi models.

⚠️ Warning: On devices with a MediaTek processor (e.g., Redmi 10C, POCO M4 Pro), unlocking the bootloader and firmware via Fastboot are often not possible. These models require special software (SP Flash Tool) and authorized access to DA- files.

FAQ: Frequent questions about Fastboot on Xiaomi

Can I unlock the bootloader without waiting 720 hours?
No, it's a technical limitation of Xiaomi since 2022, which used to be 72 hours, but because of abuse by fraudsters (theft of data through unlocked devices), the period was extended to 30 days, and you can't get around this rule - all unofficial methods lead to the blocking of Mi accounts.
Why can't the Mi Flash Tool see my device?
There are several reasons: Drivers are not installed (check in Device Manager - the device should be displayed as Android Bootloader Interface) Used USB-hab or port USB 3.0 (try to connect directly to the port USB 2.0 on the motherboard) Used utility not on behalf of the administrator Conflict with antivirus (temporarily disable protection)
How to return the guarantee after unlocking the loader?
Theoretically, you can block the bootloader by the command fastboot oem lock, but: This will delete all data on the device Xiaomi Service Center can check the logs and deny warranties if it detects traces of unlocking On some models (for example, Xiaomi 13 Ultra) the bootloader lock leads to an orange state error that requires contacting the service The best option is to flash the official firmware through the Mi Flash Tool with the Clean all and lock option, then reset the settings in the Recovery menu.
Can I flash Xiaomi through Fastboot without unlocking the bootloader?
No, Xiaomi blocks system, boot, vendor entry on locked devices, the only exception being the firmware of the same MIUI version via the Mi Flash Tool with Save user data, but even then some partitions (e.g. recovery) may not be flashed.
What to do if after the firmware smartphone does not turn on?
Steps: Make sure the battery is charged (plug in for 30 minutes) Try going to Fastboot (Power + Volume Down) and repeating the firmware with full clean (Clean all) If the screen is black and there is no reaction to the buttons - try flashing through EDL Mode (requires an authorized account and a special cable) If nothing helps - contact the service center (specify that you tried to flash the official software)