Xiaomi Smartphone Firmware Fastboot: A Complete Guide from Preparation to Installation

Fastboot is one of the most reliable ways to install official or custom software when standard methods are not available through Recovery, which requires unlocking the bootloader but gives you complete control over the process, allowing you to restore the brick, update the MIUI version or upgrade to global firmware. But mistakes are not allowed: the wrong command or interrupted process can turn the device into a useless β€œbrick”.

Unlike the firmware through Recovery, where it is enough to choose ZIP-Fastboot runs at the low-level command level through a computer, which means you'll need the Mi Flash Tool, drivers. ADB/Fastboot, And the correct firmware version for your model, and in this article, we'll go through the whole process from unlocking the bootloader to the final restart, focusing on the typical bugs and how to fix them.

What is Fastboot and When to Use It

Fastboot mode is a protocol for communicating with an Android device loader via USB, which allows you to send commands directly to the bootloader without passing the operating system. In the context of Xiaomi, this mode is used to:

  • πŸ”„ Installation of official firmware (for example, when switching from Chinese) CN Global version MIUI).
  • πŸ› οΈ Restore the device after a failure (the β€œbrick”) when the system is not booted.
  • πŸ”“ Unlock the bootloader (a mandatory step before any firmware via Fastboot).
  • πŸ“± Custom firmware installations (such as LineageOS or Pixel Experience).

Unlike Recovery, Fastboot installs firmware by byte through commands, not as an archive, which makes the process more flexible, but also more risky. For example, if you interrupt the firmware through Recovery, the device probably won't boot, but will remain functional for a second try. In Fastboot, an interrupt can damage the bootloader, and then you will need specialized hardware to restore.

⚠️ Warning: Fastboot erases all data on your device, including photos, contacts and apps, even if you are flashing the same version. MIUI, Backup via Mi Cloud or manually.

πŸ“Š What do you plan to use Fastboot for?
Install official firmware
Unlock the loader
Restore the brick.
Put the custom firmware in.
Other

Preparation for firmware: what will be needed

Before you start the process, make sure you have everything you need.

  • πŸ“± Xiaomi smartphone with a battery charge of at least 60% (better than 100%).
  • πŸ’» Computer running Windows 7/10/11 (for Mac/Linux Additional drivers will be required).
  • πŸ”Œ Original. USB-cable (cheap cables can cause data transmission errors).
  • πŸ”— Firmware in.tgz or.zip format for your model (download only from the official Xiaomi website).
  • πŸ› οΈ Used by Mi Flash Tool, ADB/Fastboot drivers, Mi Unlock Tool (to unlock the bootloader).

Pay special attention to the choice of firmware. For example, for the Redmi Note 10 Pro (sweet) global stable version will have a type name sweet_global_images_V13.0.6.0.SKFMIXM_20230310.0000.00_12.0_global.zip. Don’t confuse the regions: the firmware for CN (China is not suitable for the Global or EEA (Europe).

ComponentWhere to downloadNotes
Mi Flash ToolOfficial website2023 version or newer
ADB/Fastboot driversAndroid StudioOr through Minimal ADB and Fastboot
Mi Unlock ToolUnlocking pageRequires a Mi Account with a linked phone number
Firmware for your modelXiaomi Firmware UpdaterCheck out the Android version (like 12 or 13)

⚠️ Warning: If you are flashing a device with Android 10 or newer, make sure the firmware supports your anti-rollback version.Installing the old version on a new device can lock the bootloader permanently.

Make sure that the smartphone model supports unlocking the bootloader |

Download firmware from an official source (not from torrents!)|

Check the compatibility of the Android version (anti-rollback) |

Install ADB/Fastboot drivers on PC|

Charge your phone to at least 60%-->

Step 1: Unlocking the Xiaomi bootloader

Without an unlocked bootloader, you can't flash the device through Fastboot. Xiaomi blocks this process by default to protect against unauthorized access.

  1. Link your Mi Account to your device in Settings β†’ Mi β†’ Mi Cloud account.
  2. Enable Developer Options: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  3. In Developer Options, activate OEM Unlock and USB Debugging.
  4. Connect your phone to your PC, launch the Mi Unlock Tool and follow the instructions.

The unlocking process can take anywhere from 72 to 360 hours (depending on Xiaomi policy). Once you submit your request, you will receive a wait time notification. Upon expiration, connect your phone in Fastboot mode (press Power + Volume Down) and complete the unlock.

Important: Unlocking the bootloader resets the device to factory settings. All data will be deleted!

What if the Mi Unlock Tool can’t see the device?
1. Check if the drivers are installed ADB/Fastboot (Device Manager should display Android Bootloader Interface). 2. Try another one. USB-cable or port (better) USB 2.0). 3. Disable the antivirus – it can block the Mi Unlock utility. 4. Reinstall the Mi Unlock Tool from the official website, avoiding "modified" versions.

Step 2: Install drivers and connect the device

Without the right drivers, your computer won’t be able to β€œsee” your Xiaomi in Fastboot mode.

  1. Download and install Minimal ADB and Fastboot or Platform Tools from Android Studio.
  2. Connect your phone to your PC in Fastboot mode (press Power + Volume down when the device is off).
  3. Open Command Prompt in the ADB folder and type: fastboot devices If the device is displayed (e.g., 1234abcd fastboot) – the drivers are installed correctly.

If the fastboot device command does not show your device:

  • πŸ”Œ Try another one. USB-port (preferably) USB 2.0 on the back of the PC).
  • πŸ”„ Reinstall drivers manually through Device Manager (select Android Bootloader Interface).
  • πŸ› οΈ Disable the driver signature in Windows (to do this, type in the command line on behalf of the administrator: bcdedit /set nointegritychecks on

πŸ’‘

If the Mi Flash Tool is 0x8007001f, try running the program in Windows 7 compatibility mode and on behalf of the administrator.

Step 3: Firmware with Mi Flash Tool

When the bootloader is unlocked and the drivers are installed, you can start the firmware.

  1. Unpack the downloaded firmware (for example, sweet_global_images_V13.0.6.0.SKFMIXM_20230310.0000.00_12.0_global.tgz) a folder without Cyrillic symbols on the way.
  2. Launch the Mi Flash Tool, press Select and point the path to the unpacked firmware folder.
  3. Connect your phone in Fastboot mode and press Refresh – the device must be determined.
  4. Select the firmware method: Clean all – complete cleaning (recommended for changing the firmware region); Clean all and lock – cleaning + locking the bootloader (only for official firmware!); Save user data – data storage (not always working correctly).

Flash

Critical error: If an anti-rollback check fail message appears during the firmware process, DO NOT TRY to continue! This means you are trying to install the firmware with an older anti-rollback version than the current one. The only solution is to find firmware with a compatible or newer version.

πŸ’‘

Always check the anti-rollback version in the firmware name (e.g. anti4 or anti5). Installing an older version can permanently lock the device.

Typical errors and their solutions

Even with the correct instructions, errors can occur, and here are the most common ways to correct them:

Mistake.Reason.Decision
fastboot: error: cannot load 'image_name'A damaged firmware file or wrong pathDownload the firmware, unpack it into a folder with a Latin name.
This package is for "sweet" devices; this is a "".The firmware is not suitable for your model.Check the code name of the device (such as sweet for Redmi Note 10 Pro)
Device is locked. Cannot flash imagesThe bootloader is not unlockedRepeat the unlocking process with the Mi Unlock Tool
anti-rollback check failThe firmware is older than the current version of the antiFind firmware with the same or newer version of anti

If the device after firmware does not turn on or hung on the MI logo:

  • πŸ”„ Try re-swipe the device with the choice of Clean all.
  • πŸ“± Go to Fastboot and execute the command: fastboot erase userdata then restart the device.
  • πŸ› οΈ If nothing helps, the boot section may be damaged. Try flashing it separately: fastboot flash boot boot.img

Firmware custom ROM through Fastboot

If you are installing custom firmware (like LineageOS or ArrowOS) rather than the official MIUI, the process will be different:

  1. Unlock the bootloader (as described above).
  2. Install custom Recovery (e.g. TWRP) via Fastboot: fastboot flash recovery twrp.img fastboot boot twrp.img
  3. In TWRP, reset (Wipe β†’ Format Data), then install ZIP with firmware.

Important: Custom firmware often requires additional steps, such as installing GApps (Google services) or kernels. Always read the instructions for a particular firmware on the XDA Developers forum.

⚠️ Attention: Installation of custom firmware can lead to loss of warranty, as well as problems with the operation of the module NFC, Check user reviews of your model before installing it.

FAQ: Frequent questions about Xiaomi’s firmware through Fastboot

Can I flash Xiaomi through Fastboot without unlocking the bootloader?
No, Xiaomi blocks firmware via Fastboot on locked devices.The only exception is official firmware via the Mi Flash Tool with the Clean all and lock option, but this only works to return to the stock version.
How to find out the code name of my Xiaomi for choosing a firmware?
Codename (e.g. sweet, alioth) can be found: Settings β†’ About Phone β†’ MIUI β†’ Device name. Fastboot getvar product command. On sites like Xiaomi Device model.
What to do if the phone does not turn on after the firmware?
If the device doesn't respond to the power button: Connect to charge for 30 minutes, maybe the battery has gone down. + Volume down) and re-swipe through the device, and even if the Fastboot is not available, it may be a damaged bootloader, and only a service center with firmware through the machine will help. EDL.
Can I roll back the MIUI version via Fastboot?
A rollback is possible, but it's extremely risky because of the anti-rollback mechanism: If the new firmware has raised the anti version, installing the old version will lock the device. Check compatibility on the forums before rollback.
Do I need to block the loader after the firmware?
Fastboot oem lock increases security, but: βœ… Recommended for official firmware unless you plan on further modifications. ❌ Do not block the bootloader on custom firmware, this will lead to a bootloop. To block the bootloader, use the command: fastboot oem lock or the Clean all and lock option in the Mi Flash Tool.