Fastboot is one of the most reliable ways to upgrade or restore a device when standard methods donβt work, and itβs a method that can be used to install official and custom firmware, fix bugs after a failed βover the airβ update, and unlock additional features. However, the process requires care: wrong actions can turn a phone into a βbrick.β In this article, weβll look at all the stages of firmware, from PC and smartphone preparation to final restart, and also explain how to avoid typical errors.
It is important to understand that the firmware through Fastboot erases all user data, so be sure to back up important files. The method is suitable for most Xiaomi, Redmi and POCO models, but there are nuances for devices with a locked bootloader (they will have to be pre-unlocked). If you have never engaged in such manipulations, we recommend that you carefully study each step - this will save you from unpleasant surprises.
What is Fastboot and When You Need It
Fastboot mode is a low-level interface for interacting with the hardware of a smartphone via a PC. Unlike normal Android boot, it allows you to install firmware, restore system partitions and even βresuscitateβ devices that are not turned on.
- π The smartphone is getting stuck on the Mi logo or cyclically rebooting (bootloop").
- π± We need to install an official firmware. MIUI after a failed update OTA.
- π You need to unlock the bootloader before installing custom firmware (for example, LineageOS).
- π οΈ System files must be restored after a virus attack or failure.
The main advantage of Fastboot over Recovery is that it can be used to flash a device even when it has a damaged system when there is no access to the recovery menu, but it also has its downsides: it requires a PC connection, drivers, and command line work. This may seem difficult for beginners, but with the right approach, the risks are minimal.
β οΈ Attention: Fastboot resets the settings to factory settings if the device has data encryption enabled (default in the device) MIUI 12+), After the firmware, access to internal memory will be blocked before the first login with the same Mi Account.
Preparation of smartphone and PC
Before you run the firmware, you have to take a few critical steps, and skipping any of them can lead to errors like fastboot: error: can't load or a brick.
- Check the smartphone model. Go to Settings β Phone β Model. For example, the Redmi Note 10 Pro may have the code name sweet, and the Xiaomi 11T Pro may have the code name vili.
- Turn on USB debugging. Go to Settings β About Phone, tap 7 times on the MIUI version to activate Developer Mode. Then to Settings β Additional β For Developers, turn on USB Debugging and OEM Unlock (if any).
Now, prepare the computer:
- π₯οΈ Install Android SDK Platform-Tools (includes fastboot and adb).
- π Download drivers for your Xiaomi model (e.g. Mi). USB Driver).
- π Create a folder for firmware (for example, C:\Xiaomi_Flash) And unpack the archive with firmware.
I got the code name of the model.|I've got the debugging on. USB unlock OEM|Charged the phone. >50%|Download Android SDK and drivers|I got a firmware folder ready.-->
If you are flashing a device with a locked bootloader (for example, a new one out of the box), pre-unlock it through the Mi Unlock Tool.
Mi Flash Tool|Fastboot via command line |TWRP|Other tool-->
Selection of firmware: official vs custom
The type of firmware not only determines the functionality of the device, but also the risk of errors. Official MIUI firmware is divided into three types:
| Type of firmware | Description | For whom? |
|---|---|---|
| Stable | Stable version with minimal bugs, updated every 1-2 months. | For everyday use. |
| Developer | Weekly builds with new features, but errors are possible. | For enthusiasts and testers. |
| Fastboot | Full system image for installation via Fastboot (extension.tgz). | For recovery or forced firmware. |
| Recovery | Update via the Restore Menu (.zip extension). | For upgrades without a PC. |
You only need to download official firmware from the official Xiaomi website. For custom firmware (for example, Pixel Experience or ArrowOS), use proven sources like XDA Developers.
- π Compatible with your model codename (e.g., Raphael for Redmi) K20 Pro).
β οΈ Warning: Installing custom firmware on devices with a locked bootloader will trigger anti-Rollback protection, which can render the phone inoperable without the possibility of recovery via Fastboot.
What is Anti-Rollback?
Unlocking the loader (if necessary)
All new Xiaomi smartphones come with a locked bootloader, a security measure that prevents unofficial software from being installed. To flash the device through Fastboot, the bootloader needs to be unlocked.
- Link your Mi Account to your device in Settings β Xiaomi Account.
- Download the Mi Unlock Tool and install it on PC.
- Launch the utility on behalf of the administrator, log in to your Mi Account.
- Connect your phone in Fastboot mode (turn off the device, then press Volume Down + Power).
- Click Unlock in the program and wait until it is completed (usually takes 3-5 minutes).
Important nuances:
- π Unlocking resets all data on the device.
- β³ After unlocking some models (for example, Redmi Note 9 Pro) you need to wait 72 hours before re-assigning your account.
- π΅ If the utility gives an error Couldnβt unlock, check that the phone is recognized in Device Manager as Android Bootloader Interface.
Once the boot loader is unlocked, a warning will be displayed on the boot screen that the boot loader has not been checked. This is normal and does not affect the operation of the device.
Step-by-step instructions for firmware through Fastboot
When you're done, you can start firmware, and we'll look at two ways: through the Mi Flash Tool (for official firmware) and through the command line (the universal method).
Method 1: Mi Flash Tool (recommended for beginners)
- Download and install the Mi Flash Tool.
- Unpack the firmware archive (.tgz) in a folder without Cyrillic characters (for example, C:\Xiaomi_Flash\proshivka).
- Run MiFlash.exe on behalf of the administrator.
- Connect your phone in Fastboot mode (see above).
- In the program, click Select, specify the folder with the firmware, then Refresh - the device must be determined.
- Select firmware mode: Clean all β clean (recommended); Clean all and lock β clean + lock bootloader (only for official firmware!); Save user data β data storage (not always stable).
Flash
Method 2: Command Prompt (for experienced)
If you prefer manual control or have custom firmware, use fastboot commands:
- Open the command line in the folder with platform-tools (press Shift + PCM β Open the PowerShell window here).
- Check the connection of the device: fastboot devices should display the serial number of the phone.
- Unpack the firmware and find the file flash_all.bat (For official) or follow the instructions for custom firmware.
- For official firmware, run: flash_all.bat For custom, enter manual commands, such as: fastboot flash boot boot.img fastboot flash system system.img fastboot flash vendor vendor.img fastboot reboot
π‘
If the phone doesn't turn on after the firmware is done, don't panic. 90% of the time, the problem is solved by re-routing the firmware with complete data cleaning, and the main thing is not to interrupt the process and use the verified firmware files.
What to do after the firmware
Successful firmware is only half the battle, and after the first download, you need to do several things to keep the device running smoothly:
- First setup: Go through the initial configuration (language selection, Wi-Fi connection, Mi Account login) If the firmware is customized, you may need to install Gapps (Google services).
- Checking the health. Make sure it works: πΆ Mobile network and Wi-Fi. π Sound and microphone. π· Cameras (front and main). π Charging (connect the charger).
Firmware update.
MIUI
Settings β Updating the system
Data recovery.
Mi Cloud
If you have stitched custom firmware, install the Magisk kernel to obtain root rights (if necessary) and check compatibility with Xposed or LSposed modules. Remember that some features (such as Mi Pay or Game Turbo) may not work on informal builds.