Xiaomi smartphone firmware via Mi Flash Pro: a complete guide from preparation to installation

While firmware on Xiaomi’s official Mi Flash Pro is one of the most reliable ways to bring a device back to life after a crash, update it to the latest version, or install custom firmware, it requires care: a mistake at any stage can turn a phone into a brick. In this article, we’ll look at all the steps of firmware, from unlocking the bootloader to choosing the right version of software to solving typical problems.

It is important to understand that Mi Flash Pro works only with devices based on Qualcomm processors (for example, Redmi Note 10 Pro, POCO X3 Pro, Mi 11). For models on MediaTek (for example, Redmi 9A), another tool will be required - SP Flash Tool. Also note that the firmware through fastboot erases all data on the phone, so be sure to back up important files before starting the procedure.

1. Firmware Preparation: What to Do Before Starting

Before you start firmware, make sure that all the prerequisites are met, which will help you avoid errors like Invalid image format or Device not found, which often arise from improper preparation.

First, check your device’s model and code name (e.g., surya for POCO X3 or alioth for POCO F3), and you can find it in settings (Settings β†’ Phone β†’ MIUI version) or through the fastboot getvar product command in the terminal. Model firmware mismatch is one of the main reasons for the phone to β€œbrick”.

  • πŸ”‹ Battery charge at least 50%. The firmware can take up to 30 minutes, and the discharge in the process will cause a failure.
  • πŸ–₯️ Computer on Windows 10/11 (32- or 64-Mi Flash Pro does not support macOS or Linux.
  • πŸ”Œ Original. USB-Cheap cables often don't transmit data in fastboot mode.
  • πŸ“₯ Qualcomm and Mi drivers USB Driver. Without them, the computer won't recognize the phone in firmware mode.

Also download the latest version of the Mi Flash Pro from Xiaomi’s official website (link: miuidownload.com). Avoid third-party sources – they may contain viruses or outdated versions of the tool.

πŸ“Š What Xiaomi model are you using?
Redmi Note Series Series Series
POCO F/POCO X
Mi 11/12/13
Another model

2 Unlocking the bootloader: a mandatory step before the firmware

Without an unlocked bootloader, it is impossible to flash the phone through the Mi Flash Pro. Xiaomi locks the bootloader on all devices to protect against unauthorized access. The unlock process takes 7 to 360 hours (depending on Xiaomi's policy) and requires a Mi Account to be linked.

To unlock the loader:

  1. Link your Mi Account to your phone (Settings β†’ Xiaomi Account).
  2. Activate debugging via USB (Settings β†’ About Phone β†’ MIUI Version (click 7 times) β†’ Additional β†’ For developers β†’ Debugging by USB).
  3. Connect the phone to the PC and confirm the debugging permission.
  4. Download the Mi Unlock Tool from the official website and launch it on behalf of the administrator.
  5. Log in to Mi and follow the instructions of the program. The phone will reboot to fastboot mode.

⚠️ Note: If you haven't previously linked your Mi Account to your phone, it can take up to 15 days to unlock. Xiaomi has this limit to protect you from theft. You can't speed it up, you'll have to wait.

Once successfully unlocked, the phone will display Unlocked in fastboot mode, and you can start running the firmware.

πŸ’‘

If the Mi Unlock Tool gives you a "Couldn't verify device" error, try using a different version of the program (e.g. 5.5.224.30 instead of the last one).

3. Selection of firmware: official vs custom

The type of firmware depends on the stability of the phone and the availability of features. Xiaomi offers several types of official firmware:

  • πŸ“± Stable (Stable) - Verified version MIUI with minimal bugs, suitable for daily use.
  • πŸ§ͺ Developer – weekly builds with new features, but errors are possible.
  • 🌍 Global/China/EU β€” For example, Global supports Google services, while China does not.
  • πŸ”§ Fastboot firmware – a complete system image for installation via Mi Flash Pro (extension.tgz or.zip).

For firmware through Mi Flash Pro suitable only fastboot firmware (not to be confused with recovery firmware, which are installed through TWRP).

  • Official MIUI website (select the Fastboot version).
  • Xiaomi Firmware Updater (alternative source with firmware archive).

If you plan to install custom firmware (like LineageOS or Pixel Experience), first run the official fastboot firmware, and then install the castome through TWRP.

Type of firmwareAdvantagesDeficienciesIs it good for Mi Flash Pro?
Official StableStable work, support OTA-updateLong wait for new functionsYes.
Official DeveloperNew features, weekly updatesPossible bugs, unstable workYes.
Castomic (LineageOS, etc.)Pure Android, no BloatwareNo guarantee of stability, camera/NFC issuesNo (TWRP needed)
Ported firmware (for example, for another region)Access to other regional version functionsRisk of non-functioning modules (LTE, Wi-Fi)Yes (with caution)

4. Step-by-step instructions for firmware through Mi Flash Pro

Now, to the firmware process itself, follow the instructions in strict order to avoid errors.

β˜‘οΈ Firmware preparation

Done: 0 / 5

Step 1: Installation of drivers

If the drivers are not installed, the Mi Flash Pro won't see the phone.

  • Qualcomm drivers (for fastboot mode)
  • Mi USB Driver (official driver from Xiaomi)

After installation, restart the computer.

Step 2: Launching the Mi Flash Pro

  1. Unpack the archive from Mi Flash Pro and run the XiaoMiFlash.exe file on behalf of the administrator.
  2. In the program, click Select and specify the path to the unpacked firmware (the folder must contain files with the.img extension).
  3. Connect the phone off to your PC by pressing the Volume Down + Power buttons to enter fastboot mode.

Step 3: Selecting a firmware mode

The Mi Flash Pro has three firmware modes:

  • Clean all – complete cleaning (recommended for changing regional firmware).
  • Clean all and lock – clean + lock the bootloader (use if you want to return the warranty).
  • Save user data – saving user data (not always working correctly)

For most cases, clean all is appropriate.

Step 4: Starting the firmware

Press Refresh in the program β€” your phone should appear in the list of devices (for example, COM3 - Qualcomm HS-USB QDLoader 9008). Then press Flash. The process will take 5-15 minutes. Upon completion, the phone will automatically restart.

⚠️ Note: If the firmware is stuck in the Waiting for device step, check the cable connection and drivers. If Flash is not done, try another one. USB-port (preferably) USB 2.0 on the back of the PC).

What to do if the Mi Flash Pro can’t see your phone?
1. Check that the phone is in fastboot mode (a screen with a rabbit and the inscription Fastboot). 2. Install the drivers manually through Device Manager (select "Qualcomm HS-USB QDLoader 9008"). 3. Try another cable or USB port. 4. Disable the antivirus - it can block the program.

5. 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
Invalid image formatA damaged firmware archive or an incorrect modelDownload the firmware again and check the code name of the device
Device not foundDrivers not installed or phone not in fastboot modeReinstall drivers, check connection
Flash is not doneDevice communication failureTry another one. USB-port or cable, disable the antivirus
Anti-rollback check failTrying to stream an older version of MIUIUse firmware no older than the current or new version

If the phone does not turn on after firmware or hung on the MI logo, try:

  1. Press Volume up + Power to enter recovery and make Wipe Data.
  2. Repeat the firmware with the choice of Clean all mode.
  3. Check if the firmware is suitable for your model (for example, Redmi Note 10 Pro has sweet and sweetin options for different regions).

If nothing helps, there may have been an error when unlocking the bootloader, in which case you will have to contact the service center.

πŸ’‘

90% of firmware errors through Mi Flash Pro are due to incorrect firmware, no drivers, or an interrupted process. Always check firmware compatibility with the device's code name!

6. Custom Recovery firmware (TWRP) after Mi Flash Pro

If you plan to install custom firmware or modified software, after the official firmware through the Mi Flash Pro, you will need to install TWRP (Team Win Recovery Project), an alternative recovery that allows you to flash.zip files.

Instructions for installing TWRP:

  1. Download the TWRP image for your model from the official website (twrp.me).
  2. Rename the file to twrp.img and place it in the folder with Mi Flash Pro.
  3. Open the command line in this folder and execute the command: fastboot flash recovery twrp.img
  4. Then, run: fastboot boot twrp.img to boot immediately into TWRP.

In TWRP, you can:

  • Make a backup of the current firmware (Backup).
  • Switch custom software (for example, LineageOS or HavocOS).
  • Install Magisk to obtain root rights.

⚠️ Attention: Installation TWRP On new Xiaomi models (released after 2021) can lead to problems with data encryption, in which case, before firmware custom software need to format the data section in the data section of the company. TWRP (Format Data option).

7.Recovery after failed firmware

If the phone stops turning on, don't panic. In most cases, it can be restored. Here's the algorithm for doing this:

Case 1: The phone vibrates but does not turn on

This is a sign of a soft-brick.

  • Press Volume up + Power to enter recovery and make Wipe Data.
  • Repeat the firmware through Mi Flash Pro with Clean All mode.

Case 2: The phone doesn't respond to the buttons

This is hard-brick -- the phone is not computer-defined, even in fastboot mode.

  • Use it. EDL-Emergency Download Mode with Qualcomm 9008 box or Mi Flash Pro manually.
  • Contact the service center - soldering equipment will be required for recovery.

For the entrance EDL-regime:

  1. Turn off the phone.
  2. Press Volume up + Volume down and connect the USB cable.
  3. Device Manager should appear Qualcomm HS-USB QDLoader 9008.

Then, in Mi Flash Pro, select the firmware and press Flash, which works even on dead phones, but requires the right drivers.

πŸ’‘

If Mi Flash Pro is in the EDL-The mode gives the error "Sahara error", try using the QFil program (Qualcomm Flash Image Loader) with the file. prog_emmc_firehose.mbn firmware.

FAQ: Answers to Frequent Questions

Can I use Xiaomi without unlocking the bootloader?
No, the Mi Flash Pro requires an unlocked bootloader. The only exception is the firmware through recovery, but it's not a complete firmware reflash, it's just an upgrade on top of the existing system.
Why does Mi Flash Pro write "Flash Done" but the phone doesn't turn on?
This may be due to: Incorrect firmware (for example, stitched Global on the Chinese model); a failure when writing the boot or system partition; the absence of the persist.img file in the firmware (you need to add manually); Solution: repeat the firmware with the choice of Clean all mode or run through EDL.
How to return the warranty after the firmware?
To hide the traces of unlocking the bootloader: Sweep through the official firmware through Mi Flash Pro in Clean all and lock mode. Restore the original Recovery by command: fastboot flash recovery recovery.img (recovery.img file can be extracted from the official firmware). Make a reset to factory settings in the standard recovery. However, some service centers may detect traces of unlocking from the EFS logs. The guarantee for hardware malfunctions (for example, a broken screen) is maintained.
Can I use Xiaomi on Mac or Linux?
Officially, Mi Flash Pro only works on Windows. However, there are alternatives: For Mac: use Fastboot Tools or a Windows VM. For Linux: stitch through fastboot commands in the terminal (for example, fastboot flash boot.img). But keep in mind that without Mi Flash Pro, you can't flash the full image of fastboot firmware - only individual partitions.
What if the network or camera doesn’t work after the firmware?
This is a typical problem when firmware ported (e.g., the European version on a Chinese phone) Solutions: Sweep the original firmware for your region. Install a patch for the module through TWRP (for example, fix_network.zip). Check it out. IMEI team *#06# β€” If he has fallen, restore him through QCN-file (requires a backup copy).