How to flash Xiaomi phone through Fastboot: a detailed guide to unlock the bootloader

Introduction: Why you need firmware through Fastboot and when to use it

Fastboot is one of the most reliable ways to update or restore a Xiaomi smartphone when standard methods (via Settings โ†’ Software Update) donโ€™t work, and itโ€™s a good way to solve critical problems such as endless boot, crashes after a failed โ€œover the airโ€ update, and custom firmware installations or a return to the stock version of MIUI.

Unlike firmware via Recovery, Fastboot allows you to work with memory partitions directly, which minimizes the risk of โ€œbrickingโ€ the device when you execute instructions correctly. However, the process requires unlocking the bootloader, which is officially supported by Xiaomi, but has its own nuances โ€“ from waiting for permission to unlock to potential data loss.

This article is relevant for all modern Xiaomi, Redmi and POCO models (including the Mi 11/12/13 series, Redmi Note 10/11/12, POCO F/X/M), but before you start, make sure that your model supports unlocking the bootloader - some regional versions (for example, for China) may have limitations.

๐Ÿ“Š What Xiaomi model are you looking for firmware for?
Redmi Note 10/11/12
POCO F3/F4/F5
Mi 11/12/13
Another model
I don't know.

What you need to do for Fastboot

Before you start, prepare everything you need, and without the right tools, the process can end up in error or damage the device.

  • ๐Ÿ“ฑ Xiaomi smartphone with a battery charge of at least 60% (preferably 80.
  • ๐Ÿ’ป Computer on Windows 10/11 or Linux/macOS (Mac will require additional drivers).
  • ๐Ÿ”Œ Original. USB-cable (preferably from the kit) cheap cables may not transmit data in Fastboot mode.
  • ๐Ÿ”ง Tools: Mi Unlock Tool (official utility for unlocking the bootloader), Mi Flash Tool (for firmware in Fastboot mode). ADB and Fastboot (part of Android) SDK Platform-Tools).
  • ๐Ÿ“ Firmware in.tgz or.zip format for your model (download only from official sources).

โš ๏ธ Note: Use of firmware from third-party developers (unofficial) ROM) It can cause loss of warranty, unstable sensors or problems with Widevine. L1 (Downgrading streaming quality at Netflix, Disney+).

For models with Qualcomm processors (most Xiaomi), standard Fastboot firmware will be suitable. Devices on Mediatek (for example, Redmi 10A or POCO C-series) require the use of the SP Flash Tool - this process is described in a separate manual.

โ˜‘๏ธ Firmware preparation

Done: 0 / 5

Step 1: Unlock the bootloader on Xiaomi

Unlocking the bootloader is a must before you run through Fastboot. Xiaomi officially allows this, but the process requires you to link your Mi Account and wait (usually 7 days for new accounts).

Instructions:

  1. Turn on the phone Developer Mode: go to Settings โ†’ About Phone โ†’ MIUI version and tap it 7 times.
  2. Return to Settings โ†’ Additional โ†’ For developers and activate: Debugging over USB Unlock OEM (may be called Factory Unlock).

Mi Unlock Tool

Mi

"Couldnโ€™t unlock, try again after XX hours"

โš ๏ธ Warning: Once unlocked, all data on your phone will be erased, including photos, messages and apps. Backup in advance through Settings โ†’ Google โ†’ Backup or Mi Cloud Backup.

If the Mi Unlock Tool is not bound to this device, check:

  • ๐Ÿ”น Phone connected to the Internet via mobile data (not Wi-Fi).
  • ๐Ÿ”น Mi Account is linked to the device in Settings โ†’ Xiaomi account.
  • ๐Ÿ”น The phone's off. VPN proxies.
What if the Mi Unlock Tool canโ€™t see the device?
1.Make sure drivers are installed ADB (Download them via Android SDK). 2. Try another one. USB-port (preferably) USB 2.0 on the back of your PC). 3. Run the Mi Unlock Tool on behalf of the administrator. 4. In Device Manager, check that the phone is defined as Android Bootloader Interface. 5. If you are using Windows 11, disable driver signature verification (Perform the Device Manager. โ†’ gpedit.msc โ†’ User configuration โ†’ Administrative templates โ†’ System system โ†’ Installation of the driver โ†’ Disable the check).

Step 2: Install ADB and Fastboot drivers

Without properly installed drivers, your computer will not be able to โ€œseeโ€ your Xiaomi in Fastboot mode. For Windows, the easiest way to use the Android SDK Platform-Tools package is to use the following:

  1. Download Platform-Tools and unpack to the root of the C:\platform-tools drive.
  2. Connect your phone to your PC in Fastboot mode (turn off the device, then press Volume Down + Power before the Fastboot logo appears).
  3. Open Command Prompt (Win + R โ†’ cmd) and execute: cd C:\platform-tools fastboot devices If the device is displayed (for example, 1234abcd fastboot) - the drivers are installed correctly.

If the fastboot device team returns an empty list:

  • ๐Ÿ”น Install drivers manually through Device Manager (select Update Driver) โ†’ Perform a search on this computer โ†’ Indicate a folder with Platform-Tools).
  • ๐Ÿ”น For Windows. 7/8 may be required USB-Google driver.
  • ๐Ÿ”น Nana Linux/macOS Check the port access rights USB (sudo chmod 777 /dev/ttyUSB*).

๐Ÿ’ก

If fastboot doesn't recognize the device, try another cable or USB port, and often the problem is a faulty cable, even if it's charging the phone.

Step 3: Selecting and Downloading the Right Firmware

Firmware error is the most common reason for Xiaomi to โ€œbrickโ€: you can only flash the version of MIUI that is designed for your model and region (Global, China, EEA, India). For example, the firmware for the Redmi Note 11 Global will not work for the Redmi Note 11 China โ€“ this will lead to an โ€œanti-rollbackโ€ error.

Where to download the official firmware:

SourceType of firmwareFeatures
Official MIUI websiteStock (Global/China)The most stable versions, but updated less often.
Xiaomi Firmware UpdaterStock and betaQuick updates, but possible bugs.
XDA DevelopersLineageOS (Pixel Experience)It requires an unlocked bootloader and work experience.

How to determine your version of MIUI:

  1. Go to Settings โ†’ About Phone โ†’ MIUI version.
  2. Remember the version code (e.g. V14.0.3.0.TKCCNXM).
  3. Compare it to the firmware available on the site. The new version should be at least the current version (otherwise anti-rollback protection will work).

โš ๏ธ Note: Firmware version of China on the global model (and vice versa) will lead to network loss, camera errors and other problems, ingres_global For the Redmi Note 12 Global).

Step 4: Xiaomiโ€™s firmware is running through the Mi Flash Tool

When you're done, we move on to the firmware itself, and we use the official Mi Flash Tool, which supports all Xiaomi models.

Step-by-step:

  1. Unpack the downloaded firmware (.tgz or.zip) into a folder without Cyrillic characters (for example, C:\MIUI\ingres_global).
  2. Run the Mi Flash Tool on behalf of the administrator.
  3. Click Select and point the way to the folder with unpacked firmware.
  4. Connect your phone in Fastboot mode (clip Volume Down + Power when the device is off).
  5. In the Mi Flash Tool, your device will appear. Select the firmware method: Clean all - complete cleaning (recommended when changing the MIUI version); Clean all and lock - cleaning + locking the bootloader (only for official firmware!); Save user data - saving data (not always stable).

Flash

5-10 minutes

If the process is stuck on "Waiting for device":

  • ๐Ÿ”น Check the cable connection and port USB.
  • ๐Ÿ”น Reboot the Mi Flash Tool and PC.
  • ๐Ÿ”น Try a different version of the utility (for example, Mi Flash 2018 instead of the latest one).

๐Ÿ’ก

Always choose Clean all when running another version of MIUI (e.g. 13 to 14).Save user data can cause system failures.

Step 5: Solving Common Firmware Errors

Even with the correct following of the instructions, errors can occur.

Mistake.Reason.Decision
Anti-rollback check failTrying to sew an older version of MIUI.Download the firmware with a newer build date.
Flash not done. Unknown errorProblems with drivers or cable.Check the connection, try another USB port.
This package is for "ingres" devices; this is a "munch".The firmware is not suitable for your model.Download the firmware for the exact code of the device (you can find out in Fastboot command fastboot getvar product).
Device is lockedThe bootloader is not unlocked.Return to Step 1 and complete the unlock.

If the phone does not turn on or hangs on the MI logo after firmware:

  1. Wait 10-15 minutes โ€“ the first download can be long.
  2. If the screen is black: Press Volume up + Power for 10 seconds for forced reboot.
  3. If the device does not respond: repeat the firmware with the choice of Clean all.
What if the Mi Flash Tool canโ€™t see the device?
1. Make sure the phone is in Fastboot mode (a screen with a rabbit and a Fastboot inscription). 2. In Device Manager, check that the phone is defined as Android Bootloader Interface. 3. Disable the antivirus (it can block the Mi Flash Tool). 4. Try running the utility in Windows 7. 5 compatibility mode. If Windows 11 is used, disable Secure Boot in the BIOS.

Step 6: Checking the system after firmware

After a successful firmware, you need to make sure that the system is working correctly.

  • ๐Ÿ“ถ Network: calls, mobile Internet, Wi-Fi.
  • ๐Ÿ“ท Camera: Launch the app and take a test shot.
  • ๐Ÿ”‹ Charging: Connect the charger and make sure that charging is underway.
  • ๐ŸŽต Sound: Check the speakers and microphone.
  • ๐Ÿ”’ Widevine: Open Netflix โ€“ if the video is played in the video HD, It's Widevine. L1 active.

If something's not working:

  • ๐Ÿ”น No network: firmware is not suitable for your region. Install the correct version (e.g. Global instead of China).
  • ๐Ÿ”น Camera not working: Update Google Camera Mod or swipe vendor section separately.
  • ๐Ÿ”น Widevine L3: It means that the firmware is unofficial or corrupt. Try flashing the stock version with the choice of Clean all and lock.

To check Widevine status, use the DRM Info app. If L3 is displayed and you need L1 (for Full HD in streaming services), repeat the firmware with the official stock version.

๐Ÿ’ก

After firmware is done, it is recommended to reset (Settings โ†’ Additional โ†’ Restore and Reset), even if you choose Clean all.

FAQ: Frequent questions about Xiaomiโ€™s firmware through Fastboot

Can I use Xiaomi without unlocking the bootloader?
No, Fastboot requires an unlocked bootloader.The exception is official updates through Recovery (but they don't solve critical crashes).
How do I know if my Xiaomi bootloader is unlocked?
Turn off the phone, then press Volume Down + Power. If Unlocked appears under the Fastboot logo, the bootloader is unlocked. If Locked, unlock is required.
Can I flash custom firmware (like LineageOS) through Fastboot?
Yes, but only after unlocking the bootloader and installing custom Recovery (like TWRP).The custom ROM firmware itself usually happens through Recovery, not Fastboot.
Why does the phone not turn on after the firmware?
Possible causes: Inappropriate firmware (e.g. China instead of Global); interrupted firmware (e.g., cable or PC disabled); damaged firmware (e.g., download again); try repeating firmware with Clean all selection.
How to return the official firmware after custom?
Download the stock firmware for your model with the Xiaomi Firmware Updater, then swipe through the Mi Flash Tool with the Clean all and lock option. This will lock the bootloader and return the Widevine L1.