Installing firmware through Fastboot is one of the most reliable ways to bring back to life the โbrickโ Xiaomi smartphone, upgrade to the latest version of MIUI or upgrade to custom firmware like LineageOS. Unlike the recovery method, Fastboot works at a low level, which allows you to restore the device even when the boot partition is damaged. However, the process requires accuracy: an error at any stage can turn the gadget into a โbrickโ.
In this guide, we will look at all the steps from unlocking the bootloader to the final restart, taking into account the nuances for different models (Redmi Note 12, POCO F5, Mi 11, etc.). Particular attention will be paid to the problem of authorization of the Mi Account after the firmware, which blocks access to the device for 30% of users, and you will find a table of firmware and tools compatibility, relevant for 2026.
What is Fastboot and When to Use It
Fastboot is an Android bootloader interface protocol that allows you to install firmware, unlock the bootloader, and even repair damaged partitions. Unlike Recovery Mode, where firmware is installed via a GUI, Fastboot runs through the command line, which gives you more control but also requires technical training.
This method should be used in the following cases:
- ๐ Downgraid version MIUI (For example, 14 to 13 due to bugs).
- ๐ ๏ธ Recovery after failed "over-the-air" updateยป (OTA).
- ๐ Installation of custom firmware (Pixel Experience, ArrowOS).
- ๐ Unlocking the bootloader for rooting or modifications.
- ๐ ยซDisticking" device that does not turn on or hung on the Mi logo.
It is important to understand that the Fastboot erases all data on the device, including internal memory (/data).So make sure to back up important files before starting the procedure. Also note that some models (Redmi K50, Xiaomi 13) have Anti-Rollback protection, which blocks the installation of older versions of firmware.
โ ๏ธ Note: If your device was purchased in China (C-suffix version in the model, for example Redmi Note 12 Pro)+C), global firmware version MIUI Fastboot will block the network (it wonโt work) SIM-For such cases, you need a persist patch or firmware through EDL.
Preparation for firmware: tools and drivers
Before you start your firmware, gather everything you need, and without the right tools, you can end up with fastboot: error: cannot load, or more serious problems.
You'll need:
- ๐ฅ๏ธ Computer on Windows 10/11 (for Mac/Linux Additional drivers will be required).
- ๐ Original. USB-cable (cheap cables often donโt transmit data to Fastboot).
- ๐ฑ Battery charge at least 50% (when discharged during firmware, the device may turn off).
- ๐ Mi Account with a linked phone number (required to unlock the bootloader).
Download and install:
- Mi Unlock Tool (official utility for unlocking the bootloader) โ link.
- Platform Tools (includes fastboot and adb) โ download from Google.
- Xiaomi drivers for Fastboot (if Windows does not recognize the device) โ an archive with drivers.
- Firmware in.tgz or.zip format (official or custom).
For official firmware use the site MIUI Downloads. Choose the version of Fastboot (not Recovery!). For example, for Redmi Note. 11 It's gonna be a file of sorts. spes_global_images_V14.0.4.0.TGCMIXM_20231012.0000.00_12.0_global_1234567890.tgz.
| Tool. | Appointment | Download link | Notes |
|---|---|---|---|
| Mi Unlock Tool | Unlocking the loader | Official website | Requires authorization in Mi Account |
| Platform Tools | Teams fastboot and adb | Google Developers | Unpack to the root of the disc C:\ |
| Xiaomi Flash Tool | Graphical interface for firmware | XiaomiFlash website | Supports only official firmware |
| Qualcomm drivers | To recognize the device in EDL | XDA Developers | Needed for โbricksโ with damaged Fastboot |
Unlocking the bootloader (Bootloader)
Without an unlocked bootloader, it is impossible to flash Xiaomi through Fastboot - the system simply will not accept commands for installation. The unlock process takes from 3 to 7 days due to Xiaomi restrictions (you need to wait for an SMS with confirmation).
Step-by-step:
- Turn on the smartphone Developer Mode: go to Settings โ About Phone โ MIUI version and tap 7 times on the build number.
- Back to Settings โ Additionally. โ For developers and activate: ๐ Unlocking OEM (OEM Unlocking). ๐ Debugging by USB (USB Debugging).
Mi Unlock Tool
Mi Account
Fastboot
Fastboot
Wait. SMS with confirmation (usually in 72 to 168 hours), and then unlocking will take 1-2 minutes.
If the Mi Unlock Tool is a Cann't unlock error or Current account is different from the account info on the device, check:
- ๐ฑ One account is used on the phone and in the tool.
- ๐ The account region is the same as the firmware region (e.g., a global account for a global account). MIUI).
- โณ Enough time has passed since the account was linked to the device (at least 3 days).
โ ๏ธ Note: On some models (POCO X3 Pro, Redmi K40) When you unlock the bootloader, you get a risk warning every time you turn it on, and you can only remove it by locking the bootloader again, but it erases all the data.
โ๏ธ Preparation for unlocking the loader
Installation of firmware through Fastboot: a step-by-step process
When the bootloader is unlocked, you can start firmware. We'll look at two ways: through the command line (universal method) and through the Xiaomi Flash Tool (graphic interface).
Method 1: Through the command line (recommended)
This method gives full control over the process and works even with custom firmware.
- Unpack the archive with the firmware in the folder platform-tools (where fastboot.exe and adb.exe are located).
- Open the Command Prompt in this folder (Shift + right mouse button โ Open the command window).
- Turn your phone into Fastboot mode: Turn off the device. Press Volume down + Power before the Fastboot logo appears.
fastboot devicesThe serial number of the device must be displayed.
- For official firmware (file) flash_all.bat): flash_all.bat
- For custom firmware (alternate partition firmware): fastboot flash boot.img fastboot flash system.img fastboot flash vendor.img fastboot flash vendor.img fastboot flash dtbo dtbo.img fastboot reboot
- Press Flash and wait until it is completed.
If the program gives you a flash not done error, check:
- ๐ Cable and port USB (Try the port USB 2.0 on the back of the PC).
- ๐ The path to firmware does not contain gaps or Cyrillic.
- ๐ Xiaomi Flash Tool (new models require version 2023)+).
๐ก
If the firmware is interrupted during the sending 'system' phase, try disabling the signature check in the Fastboot settings with the fastboot oem disable-verity command (does not work on all models).
Solving common errors in firmware
Even with the right instructions, there can be errors, and we've collected the most common problems and ways to solve them.
| Mistake. | Reason. | Decision |
|---|---|---|
| fastboot: error: cannot load 'system.img' | Damaged firmware file or not enough space on the PC | Download the firmware again, unpack it to the root of the C:\ disk. |
| device not found | No drivers or cable problem installed | Install Mi Flash drivers, try another cable/port |
| This package is for "spes" devices; this is a "" | The firmware is not suitable for your model. | Check the code name of the device with the command fastboot getvar product |
| Anti Rollback | Trying to install an old version of MIUI | Sweep through the intermediate version first (see Anti-Rollback table) |
| Up to 40% Freezing in Mi Flash Tool | Conflict with antivirus or drivers | Disable the antivirus, install drivers manually through Device Manager |
If the phone does not turn on after firmware or hung on the Mi logo, try:
- Remove and reset the battery (if removable).
- Press Volume up + Power for 20 seconds for forced reboot.
- Repeat the firmware with full cleaning (fastboot erase userdata).
What to do if you need a Mi Account password after the firmware?
Firmware custom ROM (LineageOS, Pixel Experience)
Installing custom firmware opens up new possibilities: clean Android without MIUI, regular updates and no advertising, but the process is more complicated than with official firmware and requires additional steps.
What you need:
- ๐ Unlocked loader.
- ๐ Custom firmware (e.g. LineageOS).
- ๐ก๏ธ Custom Recovery (TWRP Or OrangeFox).
- ๐ Magisk (optional, for root rights).
Instructions:
- Please. TWRP Fastboot: Fastboot Flash Recovery twrp-3.7.0_12-0-spes.img fastboot reboot recovery
- In TWRP, make a backup of the current firmware (optional).
- Sweep through custom firmware: Click Install โ select a firmware file. Sweep through GApps (if you need Google services).
Wipe โ Format Data
Reboot to the system.
After installing custom firmware:
- โ ๏ธ Do not upgrade "over the airยป (OTA) โ This can lead to bootloop.
- ๐ For updates, download the full packages and stitch through TWRP.
- ๐ Turn off Battery Optimization for Magisk if you use the root.
โ ๏ธ Note: On some models (Xiaomi 12, Redmi) K50) Custom firmware may not support cameras due to the closed source driver code. Before installing, check the list of supported features on the forum XDA Developers.
What to do after firmware: setup and optimization
Once the firmware is successful, it will be like new, with all the pros and cons. Here's what you should do first:
- Check out MIUI version: Go to Settings โ About phone. Compare to the expected version (e.g. V14.0.4.0.TGCMIXM).
- Set up accounts: Add Google Account to sync contacts and apps. Link Mi Account (if you have stitched through the official MIUI).
Check the operation of key functions
- ๐ถ Mobile network and calls.
- ๐ท Camera (especially on custom firmware).
- ๐ Fast charging.
- ๐ Speakers and microphone.
If you have a custom firmware, install:
- ๐ฎ GCam for improved shooting (if the camera is not working properly).
For official MIUI, it is useful:
- Disable Advertising: Settings โ Memory โ Clean โ Advertising (or via ADB by adb shell pm uninstall --user 0 com.miui.analytics command).
- Install Xiaomi.eu instead of the global MIUI for advanced settings.
๐ก
After you have firmware through Fastboot, always check the sensors (gyroscope, compass, proximity sensor) using the Sensor Test app from the Play Market. Faults may indicate improperly stitched partitions persist or vendor.