How to reflash Xiaomi via Fastboot: a complete guide to unlocking the bootloader

Fastboot flashing is one of the most reliable ways to upgrade or restore a Xiaomi smartphone when standard methods don’t work, and it’s a good way to install official and custom firmware, restore after crashes, or even accelerate performance. However, the process requires care: a bug at any stage can turn a phone into a brick. In this article, we’ll look at all the steps from unlocking the bootloader to final firmware installation, and also show you how to avoid typical problems.

It's important to understand that flashing through Fastboot is different from updating through Recovery, where you're working directly with system partitions on the device, which gives you more control, but also increases risks.+ This can cause a camera module to fail or sensor problems, so check file compatibility before you start and follow the instructions without improvisation.

What is Fastboot and why is it needed?

Fastboot is a low-level tool for interacting with the Android device bootloader. Unlike Recovery Mode, where firmware is installed via a graphical interface, Fastboot allows you to send commands directly through your computer.

  • πŸ“± The smartphone does not turn on or hovers on the Mi logo;
  • πŸ”„ You need to roll back the firmware to an older version;
  • πŸ”“ It is required to unlock the bootloader before installing custom software;
  • πŸ› οΈ You need to restore damaged system files.

The key advantage of Fastboot is that it can flash a device even when it has damaged Recovery or when the screen doesn't respond to touch, but it also has disadvantages: for example, it requires a computer with drivers installed to work. ADB/Fastboot, The process takes longer than air renewal (OTA).

Xiaomi blocks the bootloader on all modern devices (starting with the Mi 5 and later), which means that before you run through Fastboot, you will have to officially unlock it through your Mi Account account. Without this step, the device will simply not accept the new firmware.

πŸ“Š What is your experience with Xiaomi firmware?
Never stitched.
I stitched through Recovery.
I stitched through Fastboot.
I've been installing custom firmware.

Preparation for firmware: what to do before the start

Before you play Xiaomi through Fastboot, follow the mandatory preparatory steps, which can lead to data loss, device locking, or even physical damage to the hardware.

Make a backup copy of data (photos, contacts, messages)|Check the device model and firmware version|Install drivers ADB/Fastboot PC-only|Download the official firmware for your model|Charge your phone at least to 60%|Get permission to unlock the loader (if required)-->

1. Data backup. Fastboot firmware almost always results in a complete device reset. Use Mi Cloud, Google Drive, or local copying to your PC to save:

  • πŸ“Έ Photo and video (folder) DCIM);
  • πŸ“ž Contacts and call log;
  • πŸ’¬ Communications (SMS/MMS) chatrooms;
  • 🎡 Music and downloads.

2. Check the firmware model and version. Install the wrong firmware and risk getting a broken module. NFC You can find out the exact model:

  • In settings: Settings β†’ The phone. β†’ Model;
  • On the device box or under the battery (for older models);
  • Quickboot Getvar Product (after connecting to a PC)

Installation of drivers and tools. The computer must have:

  • πŸ–₯️ Drivers. ADB/Fastboot (Download from the Xiaomi website or through SDK Platform Tools by Google);
  • πŸ”§ Mi Flash Tool (for official firmware) or Fastboot Enhance (for customized software);
  • πŸ“ Firmware in.tgz or.zip format (only for your model!).

⚠️ Warning: If you use a laptop, connect it to the network. interruption of the process due to a discharged PC battery can make the phone unusable for recovery.

Unlocking the Xiaomi bootloader: step-by-step instructions

Without an unlocked bootloader, firmware through Fastboot is impossible. Xiaomi requires official confirmation of this action through a tied Mi Account.The process takes up to 72 hours (sometimes longer), so start in advance.

Step 1. Link your Mi Account to your phone.

  1. Go to Settings. β†’ Mi Account and log in;
  2. Enable data synchronization;
  3. Activate the Device Search option (in the security settings).

Step 2. Request permission to unlock.

  1. Download the official utility Mi Unlock Tool;
  2. Launch it on behalf of the administrator;
  3. Sign in under the same account as on your phone;
  4. Connect your phone in Fastboot mode (clip Volume Down + Power);
  5. Press Unlock and wait. SMS or notification of successful unblocking.
Xiaomi modelWaiting time to unlockFeatures
Redmi Note 10/1172-168 hoursRequires confirmation by SMS
POCO X3/X424-72 hoursRe-linking of the account may be required
Mi 11/12360 hoursFrequent refusals at the first request
Redmi 9A/9CmomentarilyUnlock without waiting (outdated models)

Step 3: Check bootloader status. Once unlocked, restart your phone and make sure that the Fastboot says Unlocked. If not, repeat the process or reach out to Xiaomi for support.

⚠️ Warning: Unlocking the bootloader resets all data on the device, including files in internal memory.Don't rely on backups made after unlocking - they may be corrupted.

πŸ’‘

If the Mi Unlock Tool gives you a "Couldn't unlock" error, try using a different version of the utility (e.g. 5.5.224.24 instead of the last one).

Download and choose the right firmware

Mistakes in firmware selection are the most common reason Xiaomi has β€œbricked”; even if the models look similar (like the Redmi Note 10 and Redmi Note 10 Pro), their firmware is incompatible.

1. Official firmware. download files only from verified sources:

  • 🌍 Xiaomi official website (select Global, China or China region) EEA);
  • πŸ“₯ Xiaomi Firmware Updater (archive of all versions);
  • πŸ€– Forum XDA Developers (for custom builds).

Fastboot is suitable for files with the extension.tgz or.zip, but their content is different:

  • Fastboot ROM β€” Full system image installed via Mi Flash Tool;
  • Recovery ROM β€” Not suitable for Fastboot (Recovery Mode only);
  • Anti-Rollback firmware with rollback protection on older versions (for example, for Mi 9 and newer).

Compatibility check: The name of the firmware file must include:

  • The code name of the model (for example, surya for the model) POCO X3);
  • Android version (for example, 12 or 13)
  • Region (e.g. global or cn)

An example of the correct firmware name for Redmi Note 10 Pro: sweet_global_images_V12.5.3.0.RKFMIXM_20210707.0000.00_11.0_global_1234567890.tgz

What is Anti-Rollback and why is it important?
Anti-Rollback is a security mechanism that blocks the installation of firmware older than a particular version, for example, if your Xiaomi Mi 11 has upgraded to a new version. MIUI 13, you can't roll back on MIUI 12 via Fastboot. Trying to do this will result in an anti-rollback check fail error.> Check the version of Anti-Rollback in the settings: Settings β†’ The phone. β†’ Version. MIUI β†’ Full Firmware Information (Look for the Anti line).

Fastboot Firmware Process: A Step-by-Step Guide

Now, to the most critical phase, the firmware installation, where it's important to follow the instructions without missing the keys, we'll look at two ways: through the Mi Flash Tool (for official firmware) and through the manual Fastboot commands (for power users).

Method 1: Mi Flash Tool (recommended for beginners)

  1. Unpack the downloaded firmware (.tgz) in a folder without Cyrillic characters;
  2. Open the Mi Flash Tool on behalf of the administrator.
  3. Connect the phone in Fastboot mode (the screen should show the hare in the hat-eared);
  4. In the utility, click Select and specify the path to the folder with the firmware;
  5. Select firmware method: Clean all – clean (recommended); Clean all and lock – clean + bootloader lock; Save user data - data storage (risky).

Flash

Method 2: Fastboot manual commands (for advanced ones).

If the Mi Flash Tool doesn’t work or you need flexibility, use manual commands:

fastboot flash boot boot.img


fastboot flash recovery recovery.img




fastboot flash system system.img




fastboot flash vendor vendor.img




fastboot flash dtbo dtbo.img




fastboot flash vbmeta vbmeta.img




fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img




fastboot reboot

Frequent errors and their solution:

  • 🚫 device not found – check the drivers and cable USB;
  • πŸ”„ Flash Not Done – Try another port USB or disable the antivirus;
  • πŸ”’ Anti-rollback check fail – only flash the new version (see spoiler above).

⚠️ Warning: If the process is stuck in the waiting for device stage, do not turn off the cable! Wait 10-15 minutes - sometimes the utility is looking for the device for a long time due to driver conflicts.

πŸ’‘

Always use the original cable. USB Cheap cables may not transmit data in Fastboot mode, which will lead to firmware errors.

What to do after the firmware: the first setup and verification

After successful firmware, the phone will restart and you'll have to set up the initial setup.

1. First run. It can take up to 10 minutes -- don't interrupt. If the screen is long on the Mi logo, reset via Recovery. + Nutrition β†’ Wipe Data).

2. Functional check. Make sure that:

  • πŸ“Ά Mobile network and Wi-Fi;
  • πŸ“· Main and front cameras;
  • πŸ”Š Speakers and microphone;
  • πŸ”‹ Charging (connect the charger).

3. Update to the latest version. If you have stitched the old firmware, update via Settings β†’ Update the system, which will fix any bugs and improve compatibility.

4. Data recovery. Don't rush to restore backups right away! First, make sure the system is stable. Especially when it comes to copies of applications, they may contain viruses or conflict with new firmware.

πŸ’‘

If it's gone after the firmware. IMEI (No network, try to restore it through the engineering menu: dial ##4636## β†’ Phone information β†’ Choose. SIM β†’ Update the data.

Problem Solving: Phone is not turned on or errors have occurred

Even with the right instructions, there are sometimes failures, so let's look at the typical scenarios and how to fix them.

1. the phone is not turned on (black screen).

  • πŸ”‹ Check the battery charge (plug in to charge for 30 minutes);
  • πŸ”„ Try going to Fastboot (Loudness Down). + Nutrition);
  • πŸ› οΈ If it doesn't respond, it may be a damaged bootloader. EDL Mode (for experienced users only!).

2 This package is for "surya" devices; this is a.

So you're trying to run firmware from another model, check the code name of your device through the command:

fastboot getvar product

3. Hanging on the Mi logo.

  • πŸ”„ Perform a reset via Recovery;
  • πŸ“₯ Refuse the device with the option Clean all;
  • πŸ”§ If it doesn’t work, go through boot and dtbo sections separately:
fastboot flash boot boot.img


fastboot flash dtbo dtbo.img




fastboot reboot

4. Loss of network (IMEI).

If you're missing IMEI, try:

  • Restore a backup copy of the nvram partition (if you did a backup);
  • Use tools like Maui META or SN Write Tool (requires a developer account);
  • Contact the service center (if you do not have experience with the EDL).
Symptoms.Possible causeDecision
The phone vibrates, but does not turn onBoot section damagedSweep boot.img separately
Hanging on to Mi LogoThe conflict of vbmeta versionsDisable verification (--disable-verity)
No sound after firmware.The vendor section is damaged.Sweep the original vendor.img
Remote: Partition table doesn't existIncompatible firmwareDownload the correct version for your model

FAQ: Frequent questions about Xiaomi’s firmware through Fastboot

Can I flash Xiaomi through Fastboot without unlocking the bootloader?
All modern Xiaomi devices (beginning with the Mi 5) require official unlocking, except for firmware through an authorized service center using the use of a service center. EDL Mode (but this does not apply to home conditions).
How do I know if my Xiaomi bootloader is unlocked?
Turn off the phone and press the volume down. + Power to log into Fastboot. If you have Unlocked on the bottom of the screen, the bootloader is unlocked. If Locked, you'll need to unlock.
What if the Mi Flash Tool can't see the phone?
Try the following: Reinstall drivers ADB/Fastboot; Use the original cable USB; Run the Mi Flash Tool on behalf of the administrator; disable the antivirus (it can block the utility).
Can I retrace the older version of MIUI via Fastboot?
Only if the new firmware doesn't have Anti-Rollback protection. Check the current version of Anti in the settings and compare it to the firmware version you want to roll back to. If the number in the new firmware is smaller, no rollback is possible.
Will the data be reset by running through Fastboot?
Yes, 99 percent of the time. Even if you select Save user data in the Mi Flash Tool, the risk of data loss remains high. Always back up before you run the firmware.