Fastboot on Xiaomi: unlock the bootloader, firmware and recovery

Fastboot is a special boot mode on Xiaomi smartphones that allows you to interact with the device at a low level through a computer. It is used to unlock the bootloader, install custom firmware, recover from failures and even "resuscitate" completely broken devices. However, working in this mode requires caution: one error can turn your Redmi into a real-life machine, POCO or Mi in the brick".

In this article, we will analyze all the stages of working with Fastboot on Xiaomi devices – from preparing and entering mode to unlocking the bootloader, firmware through MiFlash and solving typical errors. You will learn what tools you need, how to avoid common problems and what to do if something goes wrong. 13/14, Redmi Note 12, POCO F5 and others) in view of recent changes in Xiaomi’s policy on unlocking the bootloader.

What is Fastboot and Why You Need It on Xiaomi

Fastboot (from English "fast boot") is a protocol for interaction with the bootloader of an Android device that allows you to perform low-level operations through the use of a computer. USB-Unlike Recovery mode, which has basic recovery features, Fastboot gives you full control over the memory partitions, bootloader and kernel.

On Xiaomi smartphones, this mode is used to:

  • πŸ”“ Unlocking the bootloader (mandatory step before installing custom firmware or root rights).
  • πŸ“₯ Firmware official software via MiFlash (for example, when recovering from a crash).
  • πŸ› οΈ Installations of custom Recovery (TWRP, OrangeFox and firmware (LineageOS, Pixel Experience).
  • πŸ”„ Reset protection (for example, after a failed update or reset to factory settings).
  • 🚨 Restore "bricks" (devices that are not included or hung on the logo).

It is important to understand that Xiaomi blocks the bootloader on all devices by default, which means that without official unlocking, you will not be able to use Fastboot to firmware alternative software. The unlocking process requires an account binding Mi and waiting (usually 7-15 days), but more about this in the next section.

⚠️ Note: All operations in Fastboot reset data on the device. If you do not back up, important files (photos, contacts, messages) will be lost without the ability to restore data.

πŸ“Š Why you use Fastboot on Xiaomi?
Unlocking the loader
Firmware official software
Installation of custom firmware
Recovery after failure
Other

Preparation for work: what you need for Fastboot on Xiaomi

Before you get to the bottom of the game, make sure you have everything you need. Here's the full checklist:

β˜‘οΈ Preparation for work with Fastboot

Done: 0 / 7

Let’s look at each item in more detail:

1. Drivers. Without the right drivers, the computer won't recognize the device in Fastboot mode.

  • πŸ”Œ MiPhone Driver (official driver from Xiaomi, downloaded from the support site).
  • πŸ–₯️ Qualcomm HS-USB QDLoader 9008 (needed for Qualcomm processor devices if the device is not defined).
  • πŸ”§ Universal ADB Driver (alternative if the official drivers do not work).

2 Tools ADB And Fastboot. These are console utilities that allow you to send commands to the device:

  • πŸ“¦ As part of Android SDK Platform-Tools (Official Source from Google).
  • πŸ”§ Through XDA Developers (simplified builds, such as Minimal) ADB and Fastboot).

3. Firmware. If you plan to flash the device, download the official software from the Xiaomi website (Download section). β†’ Choose a model β†’ Fastboot ROM). Pay attention to the version:

  • πŸ“Œ Stable - stable firmware (recommended for most users).
  • πŸ§ͺ Developer - Test version (may contain bugs, but supports unlocking the bootloader).

4. Mi Unlock utility. To unlock the bootloader, you will need the official software from Xiaomi - Mi Unlock Tool. Download only from the official website to avoid viruses.

⚠️ Note: On devices with MediaTek processors (e.g. Redmi) 9A, POCO C31) Unlocking the bootloader via the Mi Unlock Tool may not work, in which case alternative methods will be required (for example, through the use of the Unlock Tool). SP Flash Tool).

Tool.AppointmentDownload link
Mi Unlock ToolOfficial unlocking of the loaderen.miui.com/unlock
MiFlashFirmware official software in FastbootXiaomi Downloads
ADB & FastbootManaging the device through the command lineAndroid SDK
TWRP (informal)Castomic recavers for installing firmwaretwrp.me

How to Sign In to Fastboot on Xiaomi: 3 Ways to Work

There are several ways to get Xiaomi’s smartphone into Fastboot mode. Choose the one that suits your situation:

Method 1: Through a button combination (if the device is turned off).

  1. Turn off your smartphone (press the power button and select Turn off).
  2. Press and hold the power button. + Reduce volume for 5-10 seconds.
  3. Release the buttons when a hare in a hat-eared hat appears on the screen (Fastboot logo).

Method 2: Through ADB (if the device is on).

  1. Connect your smartphone to your PC and enable debugging USB (Settings β†’ The phone. β†’ Version. MIUI (press 7 times) β†’ Additionally. β†’ For developers β†’ Debugging by USB).
  2. Open the command line in the folder with ADB Enter adb reboot bootloader
  3. The device will automatically reboot to Fastboot.

Method 3: Through Mi Recovery (if the device is stuck on the logo).

  1. Enter Recovery (click Power + Volume Increase).
  2. Choose Reboot. β†’ Fastboot (navigation is carried out by volume buttons, the choice is by the power button).

If the device does not respond to buttons or is not detected by the computer, check:

  • πŸ”‹ Battery charge (must be at least 30%, otherwise the device may be switched off during operation).
  • πŸ”Œ Cable USB (Use an original or certified cable with data transmission support).
  • πŸ–₯️ Port port USB on your computer (try the port) USB 2.0 if USB 3.0 is not working).

πŸ’‘

If the device is not identified in Fastboot, try reinstalling drivers manually through Windows Device Manager. Open Device Manager, find the device with an exclamation mark (usually under "Other Devices"), right-click β†’ Update the driver β†’ Search for drivers on this computer β†’ Specify the folder with unpacked MiPhone drivers.

Unlock the bootloader on Xiaomi via Fastboot

Unlocking the bootloader is a must before any firmware modification. Xiaomi has made this process more difficult in recent years, so follow the instructions carefully.

Step 1: Linking your Mi Account.

  • πŸ“± On your smartphone, enter Settings β†’ Xiaomi account and log in.
  • πŸ”— Go to Settings. β†’ Additionally. β†’ For developers β†’ Mi Unlock status and link your account to your device.
  • ⏳ Wait 7-15 days (depending on model and region) without waiting, unlocking will not be possible!

Step 2: Prepare the Mi Unlock Tool.

  • πŸ“₯ Download and install Mi Unlock Tool from the official website.
  • πŸ–₯️ Launch the utility on behalf of the administrator (right click) β†’ Launch on behalf of the administrator).
  • πŸ”‘ Log in to the same Mi Account that is linked to the device.

Step 3: Unlock.

  1. Transfer the device to Fastboot (by any of the methods described above).
  2. Connect your smartphone to your PC.
  3. In Mi Unlock Tool, press Unlock and confirm the action.
  4. Wait until the process is completed (usually takes 1-3 minutes).

Once successfully unlocked, the device will automatically reset to factory settings. Now you can flash custom firmware or install it. TWRP.

⚠️ Note: On some models (e.g. Xiaomi) 12T, Redmi Note 11 Pro+) When you unlock it, you may have a security alert every time you boot it, which is normal and doesn't affect the device.

πŸ’‘

Unlocking the bootloader resets all the data on the device. Backup is mandatory!

Xiaomi firmware via Fastboot: step-by-step instructions

Fastboot is the most reliable way to bring a device back to life or install official software, and we'll look at two methods: MiFlash and manually fastboot commands.

Method 1: Firmware via MiFlash (recommended for beginners).

  1. πŸ“₯ Download the firmware in.tgz format for your model from the official website.
  2. πŸ“ Unpack the archive in a folder without Cyrillic characters (for example, C:\Xiaomi\ROM).
  3. πŸ–₯️ Install and run MiFlash (you can download here).
  4. πŸ”Œ Connect the device in Fastboot mode.
  5. πŸ“‚ In MiFlash, click Select and specify the folder with the unpacked firmware.
  6. πŸ”„ Select firmware mode: clean all - complete cleaning (recommended in case of failures). clean all and lock - cleaning + - lock the bootloader (if you need to return the official status), save user data - saving user data (does not always work correctly).

Flash

Method 2: Manual firmware through Fastboot commands (for experienced ones).

This method requires knowledge of commands and is suitable for installing separate partitions (e.g., only boot.img or recovery.img).

  1. Open the command line in the folder with unpacked firmware.
  2. Check the connection of the device: fastboot devices (serial number should be displayed).
  3. Sweep through all sections in turn (example for Redmi Note) 10 Pro): fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot flash system system.img fastboot flash vendor vendor.img fastboot flash dtbo dtbo.img fastboot flash vbmeta vbmeta.img fastboot reboot

If the firmware is interrupted or the device is not booting, try repeating the process with the clean all option in MiFlash.

What to do if MiFlash gives you a β€œflash not done” error
The β€œflash not done” error is usually due to firmware incompatibility or driver issues. Try: 1. Reinstall MiPhone drivers manually. 2. Use another version of MiFlash (for example, modified from the MiFlash version). XDA). 3. manually flash the device through fastboot (see above commands). 4. Check to see if the firmware matches the device model (e.g., firmware for the Redmi Note 11 won't work for the Redmi Note 11 Pro).

Typical Fastboot Errors and How to Fix Them

Fastboot is often a bit of a bug, especially for beginners, and we've collected some of the most common problems and solutions.

Mistake.Reason.Decision
waiting for deviceDevice not definedCheck the cable and port USB. Reinstall the drivers. Try another computer.
remote: device is lockedbootloader lockedUnlock the bootloader through the Mi Unlock Tool (see section above).
FAILED (remote: 'Partition not found')The firmware is incompatible with the deviceDownload the correct version of the firmware for your model.
MiFlash: flash not doneSection entry errorTry a different mode (clean all). Use a different version of MiFlash.
The device does not turn on after firmwareIncorrect firmware or interrupted processRepeat the firmware with the clean all option or manually stitch through fastboot.

Additional advice:

  • πŸ”„ If the device is stuck on the Mi logo, try to go to Fastboot and flash only the boot: fastboot flash boot section. boot.img fastboot reboot
  • πŸ”‹ If the device is not charging in Fastboot mode, plug it into charging for 10-15 minutes, then try again.
  • πŸ“‘ If the Mi Unlock Tool is giving you a "Couldn't unlock" error, check: Is the account linked to the device? Is it 7 days since the link? Is the device connected to the Internet (via the device) SIM or wifi).

πŸ’‘

If the device does not run through MiFlash after unlocking the bootloader, try temporarily disabling antivirus protection. Some programs (for example, Avast or Kaspersky) block access to firmware files.

How to Get Out of Fastboot on Xiaomi

If you have completed all operations or accidentally got into Fastboot, you can get out of this mode in several ways:

Method 1: Standard Reboot.

  • Press and hold the power button for 10-15 seconds.
  • The device must be restarted as normal.

Method 2: Through Fastboot commands.

  1. Connect the device to the PC.
  2. Open the command line and type in: fastboot reboot

Method 3: If the device does not respond.

  • Turn off the USB cable.
  • Remove the battery (if possible, for example, on older Redmi models). 4X).
  • Wait 1-2 minutes and turn the device back on.

If the device does not boot after leaving Fastboot (it freezes on the logo or restarts in a loop), this is a sign of a failed firmware.

  1. Get back on Fastboot.
  2. Sweep through the official firmware through MiFlash with the clean all option.

FAQ: Frequent questions about Fastboot on Xiaomi

Can I unlock the bootloader without waiting 7 days?
No, Xiaomi has introduced a mandatory wait for all models released after 2018.On older devices (e.g. Redmi Note). 4X, Mi A1) The only way to get around it is to buy a device with an unlocked bootloader already (but this is risky because it is not known what modifications were made).
What if the Mi Unlock Tool says "Current account is not bound to this device"?
This error means that the Mi Account is not tied to the device. To fix: Log in to the Mi Account on your smartphone. Go to Settings β†’ Additionally. β†’ For developers β†’ Mi Unlock status. Click Add account and device. Wait 7 days (if required). If Add account is inactive, update firmware to the latest version.
How to flash Xiaomi if Fastboot doesn’t define the device?
The problem is usually with drivers or cable.Try: Use another one USB-cable (preferably original) Connect the device to the port USB 2.0 (on the back of the PC). Reinstall drivers manually: Open Device Manager. Find a device with an exclamation mark (usually Android Bootloader Interface). Update the driver by specifying the folder with MiPhone drivers. Try another computer (like Windows 10 if you have Windows 11). If nothing helps, the device may be in mode. EDL (In this case, you will need firmware via Qualcomm QFil or Mi Flash Pro.
Can I return the official status of the device after unlocking?
Yes, but you need to: Swipe the official firmware through MiFlash with the clean all and lock option. This will lock the bootloader and return the device to its original state (but the data will be erased). Note that on some models (for example, Xiaomi 13) after locking the bootloader, you may need to wait 7 days again for a new unlock.
Which Xiaomi models can’t be unlocked?
Xiaomi doesn’t block unlocking at model level, but there are limitations: Devices for the Chinese market (with China firmware) ROM) Some carrier versions (for example, Verizon or Verizon) may require a Chinese Mi Account to be unlocked. AT&T) have a locked bootloader at the hardware level. Devices with a damaged persist or modem partition may not unlock until recovery. Before buying a firmware, check if it supports unlocking (for example, on the device). XDA Developers).