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.
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:
- Link your Mi Account to your phone (Settings β Xiaomi Account).
- Activate debugging via USB (Settings β About Phone β MIUI Version (click 7 times) β Additional β For developers β Debugging by USB).
- Connect the phone to the PC and confirm the debugging permission.
- Download the Mi Unlock Tool from the official website and launch it on behalf of the administrator.
- 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 firmware | Advantages | Deficiencies | Is it good for Mi Flash Pro? |
|---|---|---|---|
| Official Stable | Stable work, support OTA-update | Long wait for new functions | Yes. |
| Official Developer | New features, weekly updates | Possible bugs, unstable work | Yes. |
| Castomic (LineageOS, etc.) | Pure Android, no Bloatware | No guarantee of stability, camera/NFC issues | No (TWRP needed) |
| Ported firmware (for example, for another region) | Access to other regional version functions | Risk 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
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
- Unpack the archive from Mi Flash Pro and run the XiaoMiFlash.exe file on behalf of the administrator.
- In the program, click Select and specify the path to the unpacked firmware (the folder must contain files with the.img extension).
- 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?
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 format | A damaged firmware archive or an incorrect model | Download the firmware again and check the code name of the device |
| Device not found | Drivers not installed or phone not in fastboot mode | Reinstall drivers, check connection |
| Flash is not done | Device communication failure | Try another one. USB-port or cable, disable the antivirus |
| Anti-rollback check fail | Trying to stream an older version of MIUI | Use 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:
- Press Volume up + Power to enter recovery and make Wipe Data.
- Repeat the firmware with the choice of Clean all mode.
- 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:
- Download the TWRP image for your model from the official website (twrp.me).
- Rename the file to twrp.img and place it in the folder with Mi Flash Pro.
- Open the command line in this folder and execute the command: fastboot flash recovery twrp.img
- 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:
- Turn off the phone.
- Press Volume up + Volume down and connect the USB cable.
- 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.