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.
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:
- 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?
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 firmware | Expansion | When to use | Limitations |
|---|---|---|---|
| Fastboot (Recovery) | .tgz or.zip | To install via Mi Flash Tool or fastboot manually. | It requires an unlocked bootloader. It erases data. |
| Recovery (OTA) | .zip | Update through Recovery without losing data. | Not suitable for region change or rollback version. |
| Full ROM (Anti-Rollback) | .tgz marked ARB | For rollback protection devices (e.g. Redmi K50). | You canโt install the old version after the new one. |
How to choose the correct version:
- Check the device model in Settings โ About Phone โ Model (e.g. 2201116TI for Redmi Note 11 Pro+ 5G).
- Check the current version of MIUI (e.g. V14.0.3.0.TKCCNXM).
- 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
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:
- Unpack the firmware. Remove the.tgz file to a folder without Cyrillic characters (for example, C:\MIUI\veux_global_images_...).
- Connect the device. Turn off your smartphone, press Volume Down + Power to enter the Fastboot (a screen with a bunny and FASTBOOT).
- Launch the Mi Flash Tool. Press Select and specify the path to the firmware folder. The device should be selected in the list.
- 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.
- Unpack the firmware and find the file flash_all.bat (for Windows or flash_all.sh (for Mac/Linux).
- Open the terminal in the firmware folder and execute: fastboot devices The device should appear in the list (e.g., 1234abcd fastboot).
- 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 fail | An attempt to roll back the old version of MIUI. | Install firmware with the same or newer ARB number. |
| device not found | Problems with drivers or cable. | Check the connection, install ADB drivers manually. |
| invalid sparse file | The 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:
- Try to go to Recovery (click Volume Up + Power) and do Wipe Data.
- Please re-select the Clean All option.
- 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:
- Check the version of MIUI. Go to Settings โ About the phone and make sure the version matches the one installed.
- 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.