Xiaomiβs smartphone firmware is a process that can solve performance problems, add new features, or even resurrect a device after a software failure. However, the wrong actions often result in a blip (complete failure) or data loss. In this guide, weβll take a look at three proven firmware methods: through Fastboot, Recovery, and the official Mi Flash Tool, and explain how to avoid typical bugs.
Itβs important to understand that the firmware will void the warranty if the device is not officially unlocked. Xiaomi allows unlocking the bootloader, but the process requires waiting (usually 72β168 hours after youβve tied an account). If youβve never worked with an ADB or Fastboot, start by learning the basic commands β this will save time and nerves.
This article is relevant for Redmi, POCO, Mi and Black Shark models based on Qualcomm Snapdragon or MediaTek. For MTK devices (for example, Redmi 9A or POCO C31), a separate tool is required - SP Flash Tool, but we will consider it in the next article.
1. Firmware Preparation: What to Do Before Starting
The first step is to save data. The firmware erases internal memory, so copy photos, contacts and files to your PC or cloud. Use Mi Cloud or Google Drive, but remember: some data (like WhatsApp messages) is not automatically synced.
Next, check the device model and the current version of MIUI. To do this, go to Settings β About the phone.
- π± Model name (e.g. Redmi Note 11 Pro) 5G or POCO X3 NFC).
- π’ Assembly number (format: V13.0.5.0.SKCMIXM).
- π bootloader status: blocked or unlocked (checked by the fastboot oem device-info command).
If the bootloader is locked, it will have to be unlocked through the Mi Unlock Tool, which takes up to 7 days (from the moment the Mi Account is linked to the device), without unlocking the firmware through Fastboot, it is impossible.
Backup data | Check the model and version of MIUI| Make sure you charge the battery (>50%) | Download the correct firmware |Install ADB/Fastboot-->
β οΈ Note: Firmware of unofficial (custom) builds on devices with a blocked bootloader will lead to hard-brick β recovery is possible only through the Xiaomi service center using an authorized account.
2. Selection of firmware: official vs custom
Xiaomi offers several types of firmware:
- π¦ Stable - official version with a minimum number of bugs, updated every 1-2 months.
- π§ͺ Beta β Test builds for enthusiasts, updated weekly but may contain critical errors.
- π Global/EEA β Adapted for Europe without Chinese services.
- π¨π³ China (Chinese) β only for the Chinese market, requires manual installation of Google Services.
For most users, Stable Global is the best choice. Castom firmware (such as LineageOS or Pixel Experience) gives more freedom, but lacks warranty and can work poorly with the camera or NFC module.
| Type of firmware | Advantages | Deficiencies | Suitable for |
|---|---|---|---|
| Stable Global | Maximum stability, support OTA-update | Fewer features compared to the Chinese version | Ordinary users |
| China Stable | More MIUI features, frequent updates | No Google Services, Chinese Apps | Advanced users |
| Custom ROM (LineageOS) | Pure Android, no Bloatware | No guarantee, possible bugs with iron | Enthusiasts and developers |
Download the firmware only from official sources:
- π Official website MIUI (for stable and beta versions).
- π Xiaomi Firmware Updater (archive of all versions).
Official Stable|Official Beta|LineageOS (Pixel Experience)|I didn't stitch)-->
3. Method 1: Fastboot firmware (for unlocked bootloader)
Fastboot is the most reliable method, but it requires an unlocked bootloader and PC, suitable for restoring the device after a failure or installing the official firmware from scratch.
Steps:
- Download the Mi Flash Tool from the official website and install it.
- Unpack the downloaded firmware (.tgz format) in a folder without Cyrillic characters.
- Turn off the phone and press Volume Down + Power to enter the Fastboot (a hare in a hat-eared hat will appear on the screen).
- Connect the device to the PC through USB-cable (preferably original).
- Launch the Mi Flash Tool, press Select and specify the path to the firmware folder.
- Select Clean All mode (complete clean) or Save user data (save data, but not recommended).
- Press Flash and wait until it is completed (5-10 minutes).
What if the Mi Flash Tool canβt see the device?
β οΈ Note: If the Mi Flash Tool is in error 0x80070002, Check the integrity of the archive with firmware (unpack it again) or try a different version of the tool (for example, Mi Flash 2018 instead of 2021).
Method 2: Firmware through Recovery (without PC)
Recovery is suitable for installing official updates or flashing on the same version of MIUI. It does not require unlocking the bootloader, but only works with.zip files.
Instructions:
- Download the firmware in.zip format (for example, miui_BLOCKNAME_Global_V13.0.5.0.SKCMIXM_1234567890_12.0.zip).
- Rename the file to update.zip and place it in the root of internal memory.
- Turn off the phone and press Volume Up + Power to enter Recovery.
- Select the language (if you have a choice), then go to Install update.zip to System.
- Confirm the installation and wait until the process is completed (donβt interrupt!).
- After restarting, reset your settings (Wipe Data) if required.
If Recovery does not see the update.zip file, check:
- π The file must be at the root of the memory (not in folders).
- π The name of the file should be exactly update.zip (register!).
- π The device must be charged at least 30 times%.
π‘
If you've stuck to the MI logo after you've run through Recovery, press Volume Up + Power for 10 to 15 seconds to force you to restart. If it doesn't work, repeat the firmware through Fastboot.
5. Method 3: Firmware through ADB Sideload (for experienced)
ADB Sideload is used when standard Recovery doesn't work or you need to install custom firmware, requires a PC and USB debugging enabled.
Step-by-step:
- Install Platform Tools (ADB and Fastboot) on PC.
- Download the firmware in.zip format and place it in the folder with the platform-tools.
- Enable USB Debugging in the Developer Settings β About Phone β MIUI Version β Press 7 times, then go back to Additional Settings β For Developers.
- Connect your phone to your PC and execute the command: Adb devices Make sure the device is identified.
- Recovery: Adb Reboot Recovery
- In Recovery, select Apply update from ADB.
- On PC, type the command: adb sideload name file.zip
If you have an adb: failed to read command: no error error, check the cable or USB port.
π‘
ADB Sideload is the only way to install custom firmware on devices with a locked bootloader (if Recovery is modified, for example, TWRP).
Typical errors and their solutions
Even if you follow the instructions, you can have problems.
| Mistake. | Reason. | Decision |
|---|---|---|
| This package is for "xxx" devices; this is a "yyy" | The firmware is not suitable for your model. | Download the correct firmware version (check the model code in Settings β About phone) |
| E: Footer is wrong (in Recovery) | The file update.zip is damaged | Pump the firmware, check the MD5 checksum |
| The device is not defined in Fastboot | No drivers or USB issues | Install drivers manually through Device Manager, try another cable |
| Located on the MI logo | Incompatible firmware or incomplete installation | Run Wipe Data in Recovery or scroll back through Fastboot |
If the IMEI is missing after the firmware or the network is not working, restore it through the engineering menu:
- Dial ##4636###.
- Go to Phone Information and check for IMEI status.
- If you donβt have an IMEI, use the SN Write Tool (requires an authorized Xiaomi account).
β οΈ Attention: Recovery IMEI on devices with MediaTek (e.g. Redmi) 9C) This can block the communication module. For these models, use only official firmware from Xiaomi.
7. How to check the success of the firmware
After restarting, perform several checks:
- π± Make sure the version MIUI Updated (Settings) β The phone).
- πΆ Check the network (calls, mobile Internet, Wi-Fi).
- π Run a battery stress test (for example, via AccuBattery).
- πΈ Test the camera, NFC, printer.
If problems are found:
- π Try resetting the settings (Settings) β Additionally. β Recovery and discharge).
- π§ Reflash the device in a different way (for example, if you used Recovery, try Fastboot).
- π‘ Update. MIUI through settings β System update (sometimes patches need to be installed).
To check the integrity of the system, use the command:
adb shell getprop ro.boot.flash.lockedIf the result is 1 β the loader is locked, 0 β unlocked.