Installing firmware on Xiaomi smartphones is a process that can both bring the device back to life and turn it into a brick if you approach it without preparation. β About the phone, hand firmware opens access to custom assemblies, global versions MIUI But here lies the main trap: 90% of βbrickβ Xiaomi devices become so because of trying to flash a locked bootloader or use firmware for other models.
This article will not just list the ways to install firmware, but will explain why you need to take each step, what pitfalls await along the way, and how to avoid typical errors. OTA, Firmware through Recovery (including TWRP), And the riskiest, but most flexible way is Fastboot, and we'll focus on unlocking the bootloader, without which most firmware manipulations are simply impossible.
1. Firmware Preparation: What to Do Before Starting
Before you download the firmware, answer three key questions:
- π What is your device? The firmware for the Redmi Note 10 Pro (sweet) won't work for the Redmi Note 10 (mojito) -- even if the names are similar. Check the code name in the Device Info app or on the Xiaomi Flash website.
- π If not, Fastboot or custom Recovery is not possible. Check status with fastboot oem device-info (must be Device unlocked: true).
- π₯ Which firmware do you choose? MIUI (Stable/developer, custom (LineageOS, Pixel Experience) or ported global version for a Chinese device.
Now on to hardware and software:
- π₯οΈ Windows computer 10/11 (for Fastboot. Mac/Linux Possible problems with Qualcomm drivers.
- π Original. USB-Cheap cables often don't transmit data in Fastboot mode.
- π Battery charge β₯ 60%. When discharged during firmware, the device may stop turning on.
- π Backup data. Fastboot firmware or reset before custom firmware installs erases all files.
I've specified the code name of the model.|Checked the loader's status.|I downloaded the correct version of the firmware|Prepared cable and PC|Backup of important data.|Charged the phone at least 60%
-->
Special attention to firmware selection. Official builds MIUI divide:
| Type of firmware | Designation | For whom? | Features |
|---|---|---|---|
| A stable global | miui_ONE YEAR-MODE global | Users outside of China | Fewer bugs, updates less often |
| Stable Chinese | miui_ANY-YEAR-MODE CN | Devices for the Chinese market | Without Google Services, More Functions |
| Developer (Weekly) | microassembly | Testers of new functions | Weekly updates, possible bugs |
| EEA (Europe) | miui_Year-old model eea | EU countries | Observes. GDPR, without Chinese services |
| Castomium (TWRP) | Lineage-20.0-model | Advanced users | It requires unlocking and TWRP |
β οΈ Note: Firmware of the Chinese version MIUI on a global device (and vice versa) without first cleaning the persist partition can lead to problems with the IMEI Use the XiaomiTool tool and mobile network. V2 safe-cross.
2. Method 1: Air Update (OTA) - the safest method
If your goal is to update the current version MIUI last-minute, OTA (Over-The-Air is the best choice. It doesn't require unlocking the bootloader, doesn't erase data, and works even on devices with a locked bootloader.
How to check for updates:
- Open Settings β About the phone β System update.
- Click on the three dots in the top right corner and select Download the latest version.
- If you have an update, download it (preferably via Wi-Fi).
- After downloading, click Reboot and Update.
What to do if OTA-update doesn't come?
- π Reset the update cache: Go to Settings β Annexes β Application management β Updating the system β Warehouse β Clear the cache.
- π Change the region: Insert SIM-the card of the operator of another country or use VPN Change the region in your Mi Account.
- π² Install manually: Download the full package OTA From Xiaomi Download and select it from the update menu (three dots) β Select the update file).
π‘
If so, OTA-update phone began to slow down, perform a cache reset in Recovery: turn off the device, press the Power + Volume Up, select Wipe Cache and reboot.
Advantages of OTA:
- β Does not require unlocking the loader.
- β Stores all data and settings.
- β Minimum risk of βbrickingΒ».
Disadvantages:
- β Updates are delayed (especially for global versions).
- β You can't go to another branch. MIUI (For example, with a stable developer).
- β Not suitable for installing custom firmware.
Only through OTA|Through Recovery every six months|I regularly stream through Fastboot.|I use custom firmware.|Never update.
-->
3. Method 2: Firmware through Recovery (including TWRP)
Installing firmware through Recovery is the gold standard for anyone who wants to upgrade without a computer or install custom firmware. There are two scenarios here: using a standard MI-Recovery or customized one. TWRP.
Important: Xiaomiβs standard Recovery allows you to flash only official packages MIUI For custom firmware (LineageOS, Pixel Experience) or modified versions MIUI need TWRP.
Instructions for MI-Recovery:
- Download the firmware in.zip format from the official website (choose the version of Recovery). ROM).
- Rename the file to update.zip and place it in the root of internal memory.
- Turn off your phone and press Power + Volume Up to log in to Recovery.
- Select the language (if available), then Install update.zip to System.
- Confirm the installation and wait until the completion (usually 5-10 minutes).
- Select Reboot to System.
Instructions for TWRP:
- Install. TWRP via Fastboot (instructions in the next section).
- Download firmware (.zip) and, if necessary, GApps (for custom firmware without Google services).
- Download to TWRP (Power + Volume Up)
- Click Wipe β Advanced Wipe and tick Dalvik, Cache, System, Data (for clean installation).
- Return to the main menu, select Install and specify the path to the firmware.
- After installing the firmware, repeat the step for GApps (if necessary).
- Reboot to the system (Reboot β System).
What to do if TWRP Asks for a password when mounting Data?
Common errors when running through Recovery:
- π« Error 7: This occurs when you try to flash a firmware not for your model!
- π« Mounting error /system: Make sure you download Recovery. ROM, Not Fastboot. ROM.
- π« Hanging on the logo MI: Make a Wipe. Cache/Dalvik into TWRP and reboot.
β οΈ Note: Dynamic Partitions (e.g. Redmi Note 11 and later) are firmware through TWRP may result in loss IMEI. Use special versions TWRP with lbpayload support or flash through Fastboot.
4. Method 3: Fastboot Firmware for Power Users
Fastboot is the most versatile, but also the most risky, and it allows you to:
- π Install any official firmware (including switching from Chinese to global version).
- π§ Restore the device after a failure (for example, if it does not turn on).
- π¦ Scroll down custom Recovery (TWRP, OrangeFox).
But there's a downside: one wrong step, and the device can turn into a brick.
- π Make sure the bootloader is unlocked (see Section 5).
- π₯οΈ Install Platform Tools (includes fastboot and adb).
- π Connect your phone to your PC in Fastboot mode (press Power) + Volume Down with the device switched off).
Step-by-step:
- Download Fastboot ROM for your model from the official website (file.tgz or.zip).
- Unpack the archive in a folder from fastboot.exe (for example, C:\platform-tools\).
- Open the command line in this folder (Shift + PCM β Open in the terminal).
- Check the connection of the device command: fastboot devices should display the serial number of the phone.
- For the official firmware MIUI Do: fastboot flash all Or for devices with a super partition (for example, Xiaomi) 12): fastboot update rom_file.zip
- Wait until the process is completed (it can take 5-15 minutes).
- Reboot the device: fastboot reboot
If you are a custom Recovery (for example, TWRP), use the command:
fastboot flash recovery twrp.img
fastboot boot twrp.imgWhat do I do if the firmware is frozen?
- π If the process does not move for more than 10 minutes during the sending 'super' stage, check the cable and port. USB (better USB 2.0).
- π If there's a mistake FAILED (remote: 'Partition not found' - your firmware is incompatible with the device!
- π If the phone doesnβt turn on after firmware, try booting into Fastboot and repeat the cleanup process: fastboot erase userdata fastboot flash all
π‘
Fastboot firmware erases all data on the device. If you need to save files, pre-backup through TWRP or MIUI Backup.
5. Unlock the bootloader: without it anywhere
The bootloader on Xiaomi devices is blocked by default, which means that:
- β It is impossible to sew custom Recovery (TWRP).
- β It is impossible to install unofficial firmware.
- β It is impossible to revert to an older version. MIUI.
The unlocking process is officially supported by Xiaomi, but has limitations:
- β³ Requires waiting (usually 7-15 days after the account is linked to the device).
- π± It only works on official firmware (not on customized ones).
- π Links the device to the Mi Account (after unlocking the reset to the factory settings will require entering the login / password).
Instructions for unlocking:
- Link the device to your Mi Account in Settings β Xiaomi Account.
- Activate USB debugging and OEM unlocking in Settings β About Phone β MIUI version (click 7 times, then go back to Additional Settings β For Developers).
- Download Mi Unlock Tool and log in to the program.
- Connect your phone to Fastboot (Power + Volume Down)
- Press Unlock in the program. If you receive a waiting message, wait for the specified time (usually 168 hours) and try again.
β οΈ Note: On new devices (e.g. Xiaomi 13, Redmi Note 12), Xiaomi has tightened the unlock rules. SIM-card to device for 7 days, confirmation through SMS. Use the original cable from the kit. If unlocking doesn't go through, try using Mi Flash Unlock (Alternative) from the community. XDA Developers.
After successful unblocking, check the status:
fastboot oem device-infoMust be:
Device unlocked: true6. Solving typical firmware errors
Even with the correct following of the instructions, errors can occur, and here are the most common ways to solve them:
| Mistake. | Reason. | Decision |
|---|---|---|
| This package is for "sweet" devices; this is a "mojito". | The firmware is not for your model. | Download the correct version (check the code name in fastboot getvar product). |
| FAILED (remote: 'Flashing is not allowed in Lock State') | The bootloader is locked. | Unlock the bootloader (Section 5). |
| Hanging on the MI logo after firmware | Incompatibility of firmware or crude cache. | Download to Recovery and run Wipe Cache. |
| E: Unknown command [log] in TWRP | Damaged or obsolete TWRP. | Please submit the current version TWRP for your model. |
| Loss of IMEI after firmware | The nvram or persist partition is damaged. | Restore. IMEI through SN Write Tool or Maui META (requires authorization). |
What if the device does not turn on after the firmware?
- Try to download to Fastboot (Power) + Volume Down or Recovery (Power) + Volume Up).
- If it is downloaded to Fastboot, repeat the firmware with the cleanup: fastboot erase userdata fastboot flash all
- If you donβt respond to the buttons, plug in the charging for 30 minutes, then try the button combinations again.
- If nothing helps, contact the service center (possibly damaged eMMC chip).
Data loss after firmware: If you havenβt done a backup, try recovering files with:
- DiskDigger (for photos and documents)
- Dr.Fone (paid but supports deep scanning)
- TWRP (If installed, you can connect the phone to the PC in mode MTP copy).
7.How to return the official firmware after custom
If you have experimented with custom firmware (LineageOS, Pixel Experience) and want to return to the official MIUI, follow this algorithm:
- Download Fastboot ROM for your model from the official website.
- Unpack the archive in a folder with fastboot.
- Download to Fastboot (Power) + Volume Down).
- Connect your phone to your PC and do: fastboot flash all or for new devices: fastboot update rom_file.zip
- If the firmware is not installed due to an anti-rollback error, download the newer version. MIUI (Reverse to the old version is blocked).
After returning to the official firmware:
- π The bootloader will remain unlocked (unless it is manually blocked).
- π± Reference to the Mi Account will remain (you will need to enter a login / password after resetting).
- π For complete "purity" perform reset to factory settings in MIUI (Settings β Additionally. β Recovery and discharge).
β οΈ Note: On some devices (e.g. Poco) F3/Redmi K40) After returning to the official firmware may disappear TWRP. To save custom Recovery, after the firmware immediately flash it again: fastboot flash recovery twrp.img fastboot boot twrp.img