How to Sweat Xiaomi through Fastboot with MiFlash: The Complete Guide

Fastboot is one of the most reliable ways to restore the device, update software or install custom firmware. This method is suitable for cases where the phone does not turn on, hovers on the logo or requires a complete reinstallation of the system. Unlike Recovery firmware, MiFlash works directly with memory partitions, which avoids many errors.

But the process has its nuances, from unlocking the bootloader to choosing the right firmware version. Errors at any stage can lead to a device β€œbrick” (complete failure), and in this article we will look at all the steps from preparation to final validation, and also look at typical problems and their solutions.

If you have never flashed Xiaomi through Fastboot before, we recommend you to carefully study each section. For experienced users, the FAQ block with answers to frequent questions and a firmware compatibility table will be useful.

1. Firmware Preparation: What to Do Before Starting

Before you start firmware, make sure all the prerequisites are met, which will save time and prevent critical errors.

Basic requirements:

  • πŸ”‹ Battery charge of at least 50% (at low charge, the process can be interrupted).
  • πŸ’» Computer on Windows 7/10/11 (MiFlash is required.NET Framework 4.5+).
  • πŸ”Œ Original. USB-cable (cheap cables may not transmit data to Fastboot).
  • πŸ“₯ Firmware is exactly for your model (an error in the choice will lead to a brick!).

Pay special attention to unlocking the bootloader. Xiaomi locks the bootloader on all devices by default, and without unlocking, you can't flash your phone through Fastboot. If you haven't done this before, move on to the next section.

πŸ“Š You have already unlocked the bootloader on your Xiaomi?
Yeah, long ago.
Yeah, but I don't remember how.
No, just planning.
I don't know what it is.

2 Unlocking the bootloader: a mandatory step before the firmware

Unlocking the bootloader is an official procedure that must be performed through the Mi Account, without which MiFlash will not be able to write firmware to the device memory.

How to unlock the bootloader:

  1. Connect the device to Mi Account in settings (Settings β†’ Xiaomi Account).
  2. Go to en.miui.com/unlock and download the Mi Unlock Tool.
  3. Launch the utility, log in to your account and connect your phone in Fastboot mode (clip Volume Down + Power).
  4. Follow the instructions of the program. Usually, it takes 72-168 hours to unlock (depending on the model).

Important: Once unlocked, all data on the phone will be erased! Backup via Mi Cloud or manually.

What if the Mi Unlock Tool can’t see the device?
1. Make sure the drivers are installed (see Section 3.2). USB-port (preferably) USB 2.0). 3. Disable the antivirus - it can block the utility. 4. Reinstall the Mi Unlock Tool from the official website (do not use third-party sources!).

3. Installation of drivers and setting up MiFlash

Fastboot requires drivers, without which the computer will not recognize the phone in firmware mode.

Instructions for installing drivers:

  1. Download MiFlash (the latest version).
  2. Install the program by following the installation wizard.
  3. Connect the phone in Fastboot mode (clip Volume down + Power before the hare appears in the hat-eared).
  4. Open Device Manager on your PC and find a device with an exclamation point (usually Android Bootloader Interface).
  5. Update the driver manually by specifying the path to the folder with MiFlash (for example, C:\Xiaomi\MiPhone\Qualcomm\Driver).

After installing the drivers, check the connection with the device via the command line:

fastboot devices

If you see the serial number of the phone in response, the drivers are installed correctly.

β˜‘οΈ Preparing MiFlash for work

Done: 0 / 5

4. Selection and download of firmware for Xiaomi

Mistakes in firmware are the most common reason for a blink. Xiaomi releases different versions of software for the same model, and they are not always compatible.

Firmware types:

  • πŸ“¦ Stable - official firmware with minimal bugs, recommended for everyday use.
  • πŸ§ͺ Developer – Test version with new features, but errors are possible.
  • πŸ”§ Fastboot firmware – an archive with the extension.tgz or.zip, containing files for firmware through MiFlash.
  • πŸ› οΈ Custom (e.g. LineageOS, Pixel Experience) – unofficial firmware, require unlocked bootloader and additional knowledge.

Download the firmware only from official sources:

  • 🌍 Xiaomi official website (select the Global Region, EEA China, depending on the model).
  • πŸ“Ž Xiaomi Firmware Updater (alternative source with current versions).
Type of firmwareFile extensionFor what cases is suitableRisks.
Stable Fastboot.tgzRecovery of serviceability, renewalMinimum (official firmware)
Developer Fastboot.tgzTesting of new functionsPossible bugs, unstable work
Castomic (AOSP).zipInstallation of alternative software (for example, without MIUI)High (brick risk, loss of warranty)
Anti-Rollback.tgz (special)Downgrade of the software version on models with protectionCritical (can lock the device permanently!)

⚠️ Note: On Xiaomi models with Anti-Rollback (e.g. Redmi Note) 7/8/9, Mi 9/10) You can't install firmware older than the current version. It'll lead to an irreversible blink.

5. Step-by-step instruction: Xiaomi firmware via MiFlash

Now, to the firmware process itself, follow the instructions strictly by step.

Step 1: Preparation of firmware files

  1. Unpack the downloaded.tgz archive into a folder (e.g., C:\Xiaomi\ROM).
  2. Inside should be a folder with images files and script flash_all.bat.

Step 2: Launching MiFlash

  1. Open MiFlash on behalf of the administrator.
  2. Click Select and point the way to the folder with unpacked firmware.
  3. Connect the phone in Fastboot mode (screen with a hare).
  4. MiFlash should have a device (serial number).

Step 3: Selecting a firmware mode

At the bottom of the MiFlash window, select one of the following options:

  • πŸ”„ clean all – complete cleaning (recommended when changing the software version or brik).
  • πŸ—ƒοΈ Clean all and lock - cleaning + Loader lock (only for official firmware!).
  • πŸ”§ Save user data – saving user data (not always working correctly).

Step 4: Starting the firmware

Press Flash and wait until the process is complete. It usually takes 5-15 minutes. Don't turn off your phone or interrupt the process!

⚠️ Warning: If MiFlash gives an error "cannot receive hello packet", try it USB-Change port to cable. USB 2.0 (some models do not work with the USB Reinstall drivers manually through Device Manager.

πŸ’‘

If the firmware is 99% frozen longer than 10 minutes, don’t panic – this is normal for some models: wait for the automatic reboot or turn off the phone manually (press the power for 15 seconds).

Typical errors and their solutions

Even if you follow the instructions accurately, you can get errors, and let's look at the most common ones and how to fix them.

Mistake.Reason.Decision
cannot receive hello packetProblems with drivers or USB-connectionReinstall drivers, change cable/port
flash not doneIncompatible firmware or corrupted filesDownload the firmware again, check the model
anti-rollback check failTrying to downgrade the software version on an Anti-Rollback deviceInstall a new firmware or official
The phone does not turn on after the firmwareIncorrect firmware mode (clean all and lock on custom software)Repeat the firmware in clean all mode

Additional advice:

  • πŸ”„ If after firmware the phone is stuck on the logo, try resetting the settings through Recovery (Loudness up). + Nutrition).
  • πŸ“‘ If there is no network after firmware, check the settings IMEI (It may be necessary to restore QCN-file).
  • πŸ”‹ If your phone is dead during firmware, charge it to at least 30% and repeat the process.

πŸ’‘

If MiFlash gives you an error that mentions anti, do not attempt to bypass the protection through third-party utilities, this will lead to a complete lockdown of the device.

7. Check the result and the first actions after firmware

After successful firmware, the phone should automatically restart. If this does not happen, perform a forced reboot (press the Power for 10-15 seconds).

What to do after the firmware:

  1. Go through the initial setting (select language, connect to Wi-Fi).
  2. Check the performance of the main functions: πŸ“ž Calls and mobile network. πŸ“Ά Wi-Fi and Bluetooth. πŸ”Š Sound and microphone. πŸ“Έ Camera.

Settings β†’ About the phone β†’ System update

Restore the data from the backup (if you did a backup).

If you have been using custom software, you may need additional configuration:

  • Install GApps (Google Services)
  • Set up root rights (if necessary).
  • Check the compatibility of Magisk modules.

⚠️ Note: After firmware is installed, the device originally designed for the China market may not work: πŸ“‘ Frequency 4G/LTE operator. 🎡 Pre-installed services (e.g. Mi Video, Mi Music). πŸ“± Gestures and functions, sharpened for the Chinese market. EEA (Europe or Global version with support for your region.

8. FAQ: Answers to Frequent Questions

Can I use Xiaomi without unlocking the bootloader?
No. Without unlocking, MiFlash won't be able to write firmware to the device's memory, except for official updates via Recovery (but they don't solve problems with a bang or serious crashes).
How do I know which firmware is suitable for my model?
See the full model name in Settings β†’ About Phone β†’ Model (e.g. Redmi Note 10 Pro is sweet or sweetin). Then download the firmware from the official website, selecting the exact name.
What if MiFlash can’t see the phone?
Check: Are drivers installed (Device Manager should not have exclamation points); are you using the original cable (cheap cables often don't transmit data to Fastboot); is the phone connected to a USB 2.0 port (some models don't work with USB 3.0); is MiFlash running on behalf of the administrator.
Can I return the official firmware after the custom?
Yes, but there are nuances: If you installed custom software without locking the bootloader, you can flash the official firmware through MiFlash in clean all mode. If the bootloader was blocked after custom firmware, you will need to re-unlock through the Mi Unlock Tool. Some models (for example, Poco F1) may require an additional procedure for returning to the drain boot.img.
How to flash Xiaomi if it does not turn on and does not go to Fastboot?
If the phone is completely dead (no response to buttons, no computer detection), options are limited: πŸ”Œ Try charging your device for 30 to 60 minutes (sometimes a battery that is dead blocks access to the Fastboot). πŸ”§ Use Test Point (Point for Forced Entry) EDL-This requires disassembling the phone and connecting to special contacts on the board. πŸ› οΈ Contact the service center – a programmer may be required to recover (e.g. UFi Box or EasyJTAG).