Xiaomiβs smartphone firmware is a process that can bring a device back to life or turn it into a brick if you approach it without preparation. Unlike standard βover the airβ updates, manually installing firmware requires an understanding of nuances: From choosing the right version of the software to unlocking the bootloader, this guide covers all current methods of downloading firmware on Xiaomi, including official ones. MIUI-Updates, custom builds like LineageOS or Pixel Experience, and recovery via Fastboot and Recovery.
Importantly, the firmware procedure is different for devices with locked and unlocked bootloader. For example, new models Xiaomi 13/14 series or Redmi Note 12 require mandatory unlocking through Mi Unlock Tool, whereas on older devices (until 2020) sometimes enough Recovery mode. We will analyze both scenarios, and also tell you how to avoid typical errors like Error: Critical Partition or hanging on the Mi logo.
If youβve never flashed a smartphone before, start with the official methods β theyβre as safe as possible and they donβt take away warranties. For enthusiasts who want to install custom software, weβll give you step-by-step instructions tailored to Xiaomiβs features, including working with ADB, Fastboot, and alternative TWRP-type recoveries.
1. Firmware Preparation: What to Do Before Starting
Before you download the firmware, make sure your device is ready for the procedure. Neglect of preparation is the main reason for "bricking" smartphones. Start by checking the current version of MIUI:
- π± Device Model: Find out the exact model in Settings β The phone. β A model, for example, Redmi Note 11 Pro 5G Redmi Note 11 Pro (4G) require different firmware!
- π’ Version. MIUI: Write down the current version (for example, MIUI 14.0.5 Global β This will help you choose the right file to update.
- π bootloader status: Check if it is unlocked by the fastboot oem device-info team. If the answer is Device unlocked: false, you will need to unlock it.
- π Battery charge: At least 60% - if the power fails during firmware, the device can fail.
Also prepare:
- π» Windows PC 10/11 (for the Mi Flash Tool or ADB). Nana Mac/Linux Some of the tools work with limitations.
- π Cable USB Type-C (original or certified) β Cheap cables often cause data transmission errors.
- βοΈ Xiaomi drivers USB Drivers and ADB/Fastboot (Download from the official Xiaomi website or through SDK Platform Tools by Google).
β οΈ Attention: Fastboot firmware erases all data on the device, including photos and apps. backup through Settings β Additionally. β Backup and reset or use Mi Cloud (unless it is blocked).
2. Official ways of firmware: update via Recovery and Fastboot
If you need to upgrade to the latest version of MIUI without losing warranty, use official methods. These are divided into two types: through Recovery (saves data) and through Fastboot (complete flashing with cleaning).
Firmware through Recovery (without loss of data)
This method is suitable for upgrading the current version of MIUI to a new one if:
- π² The device is switched on and operating stably.
- π You are updated within a single branch (e.g., with a MIUI 13 on MIUI 14).
- π The bootloader can be blocked (no unlock required).
Instructions:
- Download the.zip firmware file from MIUI Downloads. Choose the Recovery ROM (not Fastboot!) version.
- Rename the file to update.zip and move it to the root folder of the smartphoneβs internal memory (not to folders!).
- Go to Settings β About Phone β System Update, click on the three dots in the upper right corner and select Select a firmware file.
- Specify the path to update.zip and confirm the installation. The smartphone will reboot to Recovery and start firmware.
β οΈ Warning: If after flashing through Recovery, the device got stuck on the Mi logo, try resetting through Recovery (press Power). + Volume Up when turned on. This often solves the problem without completely flashing it.
Firmware via Fastboot (full reinstallation)
The Fastboot method is used to:
- π Installation of the new version MIUI from scratch (for example, when moving from China) ROM Globally ROM).
- π§ Restore the device after a crash (if the smartphone is not turned on or loaded into Fastboot).
- π Unlock the loader (if it is blocked).
To run through Fastboot, you will need:
- π₯οΈ Mi Flash Tool (download from official website).
- π Firmware file with.tgz or.zip extension (select Fastboot) ROM).
- π Connecting your smartphone to your PC in Fastboot mode (press Power) + Volume Down when enabled).
Step-by-step:
- Unpack the archive with firmware in a folder without Cyrillic characters (for example, C:\MIUI\fastboot_rom).
- Install the Mi Flash Tool and run it on behalf of the administrator.
- Connect the smartphone in Fastboot mode (the screen should display the hare in the hat-eared).
- In the Mi Flash Tool, click Select and specify the path to the firmware folder.
- Select firmware mode: Clean all - complete cleaning (recommended when changing the region or version of MIUI); Clean all and lock - cleaning + lock bootloader (only for official firmware!); Save user data - data storage (not always stable).
Flash
Download the official Fastboot ROM for your model |
Installed drivers Xiaomi and ADB|
The smartphone is defined in Device Manager as "Android Bootloader Interface" |
Battery charge of at least 60% |
Backup of important data is made-->
| Firmware method | Data retention | Unlocking required | Suitable for |
|---|---|---|---|
| Recovery | β Yes. | β No. | Update within one branch of MIUI |
| Fastboot (Clean all) | β No. | β Yes, for new models) | Change of region, recovery after failure |
| Fastboot (Save user data) | β οΈ Partially. | β Yes. | Update with saving applications (error risk) |
| EDL (9008) | β No. | β Yes (special equipment) | Restoration of bricks (only in service centers) |
3. Unlocking the bootloader: a mandatory step for new models
Since 2018, Xiaomi has been blocking the bootloader on all new devices, which means that it will require official unlocking to firmware via Fastboot or install custom software, except for an update via Recovery (see section 2.1).
The unlocking process includes:
- Linking the Mi Account to the device (required! without this, unlocking is impossible).
- Waiting 168 hours (7 days) after a tether is Xiaomiβs rule for theft protection.
- Mi Unlock Tool is the official utility from Xiaomi.
Step-by-step:
- Download and install Mi Unlock Tool from the official website.
- Log in to your Mi Account on your smartphone and enable sync in Settings β Mi Account.
- Go to Settings β Additional β For developers and activate OEM Unlocking.
- Connect your smartphone to your PC in Fastboot mode and launch the Mi Unlock Tool.
- Sign in to the same Mi Account as your smartphone, and if you see a 168-hour wait, wait until it's over.
- After the expiration of the deadline, try again - the bootloader will be unlocked.
To install custom firmware will require:
- Unlocked boot loader (see Section 3).
- Installed custom Recovery TWRP (or OrangeFox).
- The firmware file is in.zip format and, if necessary, Gapps (Google services).
Instructions for installation via TWRP:
- Download TWRP for your model from the official website twrp.me.
- Fastboot flash recovery twrp.img fastboot boot twrp.img
- In TWRP, back up your current firmware (Backup β select System, Data, Boot).
- Click Wipe β Advanced Wipe and mark Dalvik, Cache, System, Data (full reset).
- Install the firmware: Install β select the.zip file β confirm.
- If you need Gapps, install them immediately after you have firmware (no reboot!).
- Reboot β System: The first boot can take 10-15 minutes.
π‘
Before installing custom firmware, check its compatibility with your model on the XDA Developers forum. Some firmware requires additional patches (for example, to operate an NFC module or camera).
5. Typical firmware errors and their solutions
Even if you follow the instructions strictly, you can get errors.
| Mistake. | Reason. | Decision |
|---|---|---|
| Error: Critical Partition | Damage to the system partition or incompatible firmware. | Sweep the official Fastboot firmware through the Mi Flash Tool in Clean All mode. |
| Hanging on the Mi logo | Core conflict or incorrect installation. | Fastboot or reset to Recovery (Wipe Data). |
| This package is for "xxx" devices; this is a "yyy" | The firmware is not suitable for your model. | Download the correct version from the official website (check the model code in Fastboot by the fastboot getvar product command). |
| Mi Flash Tool doesn't see the device | There are no drivers or incorrect connection mode. | Install Xiaomi USB Drivers, check the connection in Fastboot (fastboot devices). |
| Mistake 7 in TWRP | Incompatibility of firmware with the device or a corrupted file. | Check the hash amount of the firmware file and download it again. Try another version. |
If the device stopped turning on after a failed firmware, try:
- Download to Fastboot (Power + Volume Down) and flash the official version through the Mi Flash Tool.
- EDL (9008) mode β this will require a special cable or testpoints (only for power users!).
- Contact the Xiaomi service center (if the warranty is valid, do not talk about firmware attempts!).
π‘
If your smartphone doesn't respond to any combination of buttons, it's not always a brick. Try holding the Power button for 30-60 seconds, sometimes the device falls asleep after a failed firmware.
Firmware through EDL (9008): the last method for "bricks"
EDL (Emergency Download Mode, 9008) is the last chance to restore a device if it does not respond to Fastboot or Recovery.
Please note:
- β οΈ The method requires an authorized account (for new models) or special equipment (EDL cable or testpoint).
- β οΈ Wrong actions can finally bring the device down.
- β οΈ On some models (e.g. Xiaomi) 12/13 series) EDL blocked at the program level.
Instructions (for experienced users!):
- Download firmware in.mbn or.elf format (for example, with Xiaomi Firmware Updater).
- Connect your smartphone to your PC in EDL mode: Use EDL cable (closes contacts on the board). or find test points for your model (requires disassembly of the device!).
Mi Flash Tool
Flash
Wait until the process is completed (it can take up to 20 minutes).
β οΈ Attention: Firmware through EDL Without authorization (for new models) it will cause an error. SLA Auth Fail.In this case, you will need an official authorized Xiaomi account or the help of a service center.
7.How to check firmware success and avoid problems in the future
After the firmware, you need to make sure that the device is working correctly.
- πΆ Network and Communication: Check the Work SIM-maps, Wi-Fi, Bluetooth and GPS. Custom firmware may not have drivers for some modules.
- π Charging and battery: Make sure the smartphone is charging and displays the correct percentage of charge.
- π΅ Sound and speakers: Test volume, microphone and 3.5mm connector (if available).
- π· Camera: Take a photo on the main and front cameras - on some custom firmware, the camera may not work.
- π Security: Check fingerprint and facial recognition (if supported).
To avoid problems in the future:
- π Regularly update the firmware (especially custom) through Settings β Updating the system or TWRP.
- π₯ Download firmware only from trusted sources (official Xiaomi website, XDA, Xiaomi Firmware Updater).
- π§ Do not install Magisk or Xposed modules on unstable firmware β this can cause freezes.
- π‘ Before firmware, check other users' reviews about a particular build (for example, on the 4PDA).
π‘
If after firmware the smartphone began to discharge quickly, perform battery calibration: completely discharge the device before turning off, then charge to 100% without interruptions. Repeat the procedure 2-3 times.