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
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
Attention! If you're using Windows, turn off the driver digital signature check.
- Press Win + X β Device Manager
- Find your smartphone under Other Devices (usually displayed as Android)
- 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)
- Turn off the smartphone with a long press Power + Volume up
- Press Power + Volume Down for 5-10 Seconds
- Release the buttons when the Fastboot logo appears.
Method 2. via ADB (if the smartphone is turned on)
- Connect your device to your PC and enable USB Debugging in Settings β About Phone β MIUI version (click 7 times to unlock the developer menu)
- Enter the command line: adb reboot bootloader
Method 3. via Mi Recovery (if ADB is not available)
- Enter Recovery Mode (Food + Volume Up)
- 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. | Description | Example of inference |
|---|---|---|
| fastboot devices | Shows connected devices | 1234abcd fastboot |
| fastboot getvar all | Provides complete information about the device | version-bootloader: UFI-2.1secure: yes... |
| fastboot oem device-info | Checks the status of the bootloader unlock | Device unlocked: false |
| fastboot reboot | Reboot 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?
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
- Log in to Settings β Xiaomi account and log in
- Go to Settings β About Phone β MIUI Version and Tap 7 Times to Activate Developer Mode
- 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
- Download and install Mi Unlock Tool from the official website
- Launch the utility and log in under the same Mi Account as on your smartphone
- Transfer the device to Fastboot (as described above) and connect to the PC
- 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
- After the waiting time has expired, repeat the procedure in the Mi Unlock Tool.
- The utility will show the progress bar and the message Unlocked successfully
- 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
- 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
- Unpack the archive in a folder without Cyrillic characters (for example, C:\Xiaomi\ROM\)
- Launch the Mi Flash Tool, press Select and specify the folder with the firmware
- Connect your smartphone in Fastboot mode and press Refresh β the device should be determined
- 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
- Unpack the firmware and go to the folder with files via CMD
- 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
- 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?
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 device | PC doesn't see a smartphone | Check drivers, cable, USB port. Try the fastboot device command in another folder with ADB. |
| remote: unknown command | Unsupported team for this model | Check 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 locked | Unlock the bootloader through the Mi Unlock Tool (see section above) |
| Invalid sparse file format at header | Firmware file damaged | Download the firmware again and check it out. MD5-hash |
| The smartphone does not turn on after firmware | Incompatible firmware or interrupted process | Repeat 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.