Install Update via Fastboot on Xiaomi: A Complete Guide from A to Z

Installing updates via Fastboot on Xiaomi devices is a universal way to flash your smartphone when standard. OTA-Update is not available or is malfunctioning.The method is suitable for restoring "bricks", rollback to the old version. MIUI, However, the process requires carefulness: an error at any stage can lead to complete loss of data or locking the device without the possibility of recovery through official services.

Unlike the Recovery update, Fastboot runs at a low system level, which allows you to bypass the limitations of the locked bootloader (if it is unlocked) or fix critical damage to the /system partition. But there are nuances here: for example, for the POCO F5 or Redmi Note 12 models with a Snapdragon 8 Gen 1 processor, a special version of the Mi Flash Tool is required, and for devices on MediaTek (like Redmi 10C) a separate set of drivers. In this article, we will analyze the entire process from preparation to finishing, including solutions to typical errors like anti-roll or sparse invalid file.

What is Fastboot and When to Use It

Fastboot is a protocol for interacting with the bootloader of Android devices via USB. In the context of Xiaomi, it allows:

  • ๐Ÿ”„ Install official firmware (MIUI Stable/Beta) bypassing the standard update.
  • ๐Ÿ› ๏ธ Restore your smartphone after a soft brick (for example, when the device only boots in Fastboot).
  • ๐ŸŒ Change the firmware region (from Chinese to global or vice versa).
  • โฎ๏ธ Reverse to the previous version MIUI (with anti-rollback restrictions).

When you should not use Fastboot:

  • โŒ If you donโ€™t have a backup, the process erases everything, including photos and apps.
  • โŒ To install custom firmware (for example, LineageOS) - you need an unlocked bootloader and TWRP.
  • โŒ If the device is under warranty - unlocking the bootloader will cancel it.

โš ๏ธ Note: On devices with MediaTek processor (e.g. Redmi) 9A or POCO C31) Using unofficial versions of the Mi Flash Tool can lead to hardware locking BROM. Always check firmware compatibility with the model through the site MIUI Downloads.

๐Ÿ“Š What type of firmware do you usually install?
Official stable
Official beta version
LineageOS (Pixel Experience)
I've never sewed it myself.

Preparation of the device: unlocking the loader

Before installing the firmware through Fastboot, you need to unlock the bootloader. On Xiaomi devices, this is done through the official Mi Unlock Tool, but with a number of restrictions:

  1. The device must be tied to the Xiaomi account for at least 7 days (up to 30 days for new models).

Download the Mi Unlock Tool from the official en.miui.com/unlock website and follow the instructions.

  • ๐Ÿ”— On models POCO X3 Pro and later may require additional confirmation through SMS.
  • ๐Ÿ•’ The unlocking process takes up to 10 minutes โ€“ donโ€™t turn off the cable!
  • ๐Ÿšซ If the tool shows a Couldnโ€™t unlock error, check that the device is displayed by the fastboot device command in Fastboot.
What if the Mi Unlock Tool canโ€™t see the device?
1. Make sure the drivers ADB/Fastboot Install them (download them through Android Studio). 2. Try another one. USB-port (preferably) USB 2.0). 3. Disable the antivirus โ€“ it can block the connection. 4. Restart your PC and device in Fastboot again (clip Volume Down) + Nutrition).

Choosing the Right Firmware for Fastboot

Firmware error is the main reason for the bricks, and there are three file types available on MIUI Downloads:

Type of firmwareExpansionWhen to useLimitations
Fastboot (Recovery).tgz or.zipTo install via Mi Flash Tool or fastboot manually.It requires an unlocked bootloader. It erases data.
Recovery (OTA).zipUpdate through Recovery without losing data.Not suitable for region change or rollback version.
Full ROM (Anti-Rollback).tgz marked ARBFor rollback protection devices (e.g. Redmi K50).You canโ€™t install the old version after the new one.

How to choose the correct version:

  1. Check the device model in Settings โ†’ About Phone โ†’ Model (e.g. 2201116TI for Redmi Note 11 Pro+ 5G).
  2. Check the current version of MIUI (e.g. V14.0.3.0.TKCCNXM).
  3. Select firmware with the same code name (e.g. veux for POCO X3 NFC).

โš ๏ธ Note: On anti-rollback devices (e.g. Mi 11 Ultra or Redmi) K40) If you install an old firmware version, you'll be unable to turn it on. ARB in the file name (for example, ARBv4 never roll back ARBv3).

โ˜‘๏ธ Checking the firmware before installation

Done: 0 / 4

Installation of firmware through Mi Flash Tool

The official Mi Flash Tool simplifies the firmware process, but only works on Windows. Download it from the official website and follow the steps:

  1. Unpack the firmware. Remove the.tgz file to a folder without Cyrillic characters (for example, C:\MIUI\veux_global_images_...).
  2. Connect the device. Turn off your smartphone, press Volume Down + Power to enter the Fastboot (a screen with a bunny and FASTBOOT).
  3. Launch the Mi Flash Tool. Press Select and specify the path to the firmware folder. The device should be selected in the list.
  4. Select firmware mode: Clean all - complete cleaning (recommended for changing the region); Clean all and lock - cleaning + lock bootloader (only for official firmware!); Save user data - data storage (does not work on all models).

Start the firmware.

Flash

If the process is suspended on waiting for the device:

  • ๐Ÿ”Œ Reconnect. USB-cable or change port.
  • ๐Ÿ–ฅ๏ธ Reinstall drivers via Device Manager (look for Android Bootloader Interface).
  • ๐Ÿ”„ Restart your PC and device in Fastboot again.

๐Ÿ’ก

If the Mi Flash Tool gives an invalid sparse file error, try manually flashing through fastboot commands (instructions in the next section).

Manual firmware via Fastboot commands (alternative method)

If the Mi Flash Tool does not work (for example, on Mac/Linux or for MediaTek firmware), you can use manual mode via the terminal.

  1. Unpack the firmware and find the file flash_all.bat (for Windows or flash_all.sh (for Mac/Linux).
  2. Open the terminal in the firmware folder and execute: fastboot devices The device should appear in the list (e.g., 1234abcd fastboot).
  3. Run the firmware: fastboot -w update name file.img or (for full cleanup): fastboot erase userdata fastboot erase cache fastboot flash system.img fastboot flash boot boot.img...

MediaTek devices (e.g. Redmi 9T) require an additional SP Flash Tool, which is more complicated to configure by manually specifying the scatter file and selecting partitions for the firmware. For detailed instructions for MTK chips, see the XDA theme for your model.

๐Ÿ’ก

Manual firmware via fastboot gives more control, but requires knowledge of commands. A sequence error (e.g., skipping fastboot erase userdata) can lead to a boot cycle.

Solving typical firmware errors

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

Mistake.Reason.Decision
anti-rollback check failAn attempt to roll back the old version of MIUI.Install firmware with the same or newer ARB number.
device not foundProblems with drivers or cable.Check the connection, install ADB drivers manually.
invalid sparse fileThe system.img file is damaged.Pump the firmware or manually stitch through sections.
This package is for "veux" devices; this is a ""Disparity between the device model and the firmware.Download the firmware for your codename (check in fastboot getvar product).

If the device does not start after the firmware:

  1. Try to go to Recovery (click Volume Up + Power) and do Wipe Data.
  2. Please re-select the Clean All option.
  3. If the screen is black, the PC defines the device as Qualcomm. HS-USB QDLoader 9008 will be required. EDL-Mode and authorized Xiaomi account to unlock.

โš ๏ธ Attention: On devices with Snapdragon chip 888/8 Gen 1 (for example, Xiaomi 12 Pro) incorrect firmware may result in Firehose hardware locking, in which case recovery is only possible at the service center using the Mi Account linked to the device.

Checking the device after firmware

After successfully installing firmware through Fastboot, follow the following steps:

  1. Check the version of MIUI. Go to Settings โ†’ About the phone and make sure the version matches the one installed.
  2. Basic function test: ๐Ÿ“ถ Mobile network and Wi-Fi. ๐Ÿ”‹ Charging (connect the charger). ๐Ÿ“ธ Camera and sensors (gyroscope, approximations).

Mi Cloud

Google Account

Log in to your account and restore contacts, photos and apps.

If you notice a problem:

  • ๐Ÿ”„ Refuse the device with the Clean All option.
  • ๐Ÿ“ฅ Install the update through Settings โ†’ System update (sometimes bugs are patched).
  • ๐Ÿ’ฌ Contact the forums. 4PDA or XDA โ€” This is probably a problem with a particular firmware.

๐Ÿ’ก

After firmware is installed via Fastboot, it is recommended to disable automatic updates in Settings โ†’ System Update โ†’ Three Points โ†’ Settings to avoid conflicts with manual firmware.

FAQ: Frequent Firmware Questions via Fastboot

Can I flash Xiaomi through Fastboot without unlocking the bootloader?
No. Fastboot installations on Xiaomi devices require an unlocked bootloader, except for official updates via Recovery, but they donโ€™t offer that flexibility (e.g., you canโ€™t change the firmware region).
Why does Mi Flash Tool show the error "Can't get hello packet"?
This error is due to connectivity issues.Solutions: Check cable and port USB (better USB 2.0). Turn off the antivirus and firewall. Reinstall the drivers. ADB/Fastboot Try another PC (sometimes the problem is in conflict with others) USB-device).
How to Implement Xiaomi on Mac or Linux?
Nana macOS/Linux Use the manual method through the terminal: Install ADB/Fastboot brew install android-platform-tools (Mac) or sudo apt install adb fastboot (Linux). Unpack the firmware and go to the file folder. Run the commands one by one (example for Redmi Note). 10 Pro): fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot flash system system.img fastboot -w MediaTek will need to be SP Flash Tool via Wine or Windows Virtual Machine.
What if IMEI disappeared after the firmware?
Loss of loss IMEI โ€” A common problem when you're firmware on MediaTek, you can restore it: From the engineering menu: dial ##3646633##, go to Connectivity โ†’ CDS Information โ†’ Radio Information and Enter Recovery Commands IMEI. Using tools like Maui META (only MTK). Contact the service center (if there is no backup copy) NVRAM). โš ๏ธ Attention: Self-modification IMEI This method can be illegal in your country and only be used to restore the original number.
How to check if the bootloader is unlocked on Xiaomi?
Turn off the device and log in to Fastboot (Put Volume Down + Power). If there's a UNLOCKED sign at the bottom of the screen and an open lock icon, the bootloader is unlocked. If LOCKED, you'll need to unlock through the Mi Unlock Tool.