Xiaomiβs smartphone firmware is a process that can both bring a device back to life and turn it into a βbrickβ if you approach it without preparation. Unlike standard updates through Settings β Device β System Update, manually installing ROM opens up access to custom firmware (LineageOS, Pixel Experience), beta versions of MIUI or restore functionality after a failure. But here lies the pitfalls: from locking the bootloader to incompatibility with the model number of the device.
This article covers all the current ways of firmware, from official MIUI via Fastboot and Recovery to custom builds with unlocked bootloader. We will discuss how to avoid errors like anti-rollback, why Xiaomi Redmi Note 10 Pro is not friendly with firmware from POCO X3 Pro, and what to do if after firmware the phone is stuck on the logo, and for beginners, a checklist with mandatory steps before the process begins.
1. Firmware Preparation: What You Need to Know Before You Start
Before you download the firmware, answer three key questions:
- π What is your model? The firmware for Xiaomi Mi 11 (venus) will not work for Mi 11 Lite (renoir). HW or in Settings β The phone. β Version. MIUI (Click 7 times on the line with the version).
- π Is the bootloader unlocked? Custom firmware requires unlocking through the Mi Unlock Tool. MIUI You can also use a locked boot loader (but not all versions).
- π₯ What type of firmware do you need? Choose between: Fastboot ROM β Complete PC firmware package (extension.tgz or.zip). ROM β archive for installation through stock or custom recovery (.zip). OTA-Update β Incremental patch for the current version (.zip, installed without data reset).
Many users have made a mistake of downloading firmware from unverified sources. The only official sources for MIUI are en.miui.com (global versions) and miui.com (Chinese ones). Look for firmware on XDA Developers or 4PDA, but only in topics that are proven compatible with your model.
β οΈ Note: Fastboot with the bootloader locked will cause Flash is not allowed in locked state. Unlock erases all data on the device - back up via Settings β Additionally. β Backup and reset.
2. Unlock the bootloader on Xiaomi: step-by-step instructions
Without bootloader unlocking, you wonβt be able to install custom recovery or unofficial firmware. Xiaomi allows unlocking, but the process requires a Mi Account and a wait (usually 7 days) hereβs how to do it:
- Link your Mi Account to your device: π± Go to Settings. β Mi Account β Synchronize and enable all options. π B Settings β Additionally. β For developers, activate OEM-unlocking and debugging USB.
Download the Mi Unlock Tool from the official website (Windows only). Install Xiaomi USB Drivers if your PC doesn't recognize your phone.
Launch the Mi Unlock Tool, log in to the same Mi Account as your phone. Connect your smartphone in Fastboot mode (turn off the device, then press Volume Down + Power).
Press Unlock. If you receive a waiting message, wait until the specified time (usually 168 hours) and try again after the deadline.
Once successfully unlocked, the bootloader will remain open even after the firmware is installed, but the binding to the Mi Account will remain, meaning that after the data reset, you will need authorization to unlock the device.
β οΈ Note: On some models (Redmi Note 9 Pro, POCO X3 NFC) Unlocking can lead to Widevine blocking L1 β video from Netflix and Disney+ will be reproduced only in 480p. Check Widevine status after firmware through the app DRM Info.
βοΈ Preparation for unlocking the loader
3. Install official MIUI via Fastboot
Fastboot is suitable for restoring the brick, installing global firmware on the Chinese model or updating to the latest version of MIUI.
- π» Windows PC (for Mi Flash Tool).
- π± Firmware in.tgz format (download from the official website).
- π Cable USB (preferably original).
Instructions:
- Unpack the firmware archive in a folder without Cyrillic characters (for example, C:\MIUI\).
- Install the Mi Flash Tool (you can download it here).
- Turn off your phone and turn it into Fastboot mode (clamb Volume Down + Power).
- In Mi Flash Tool, click Select, specify the firmware folder. Then select firmware mode: Clean all (recommended when changing the firmware region); Clean all and lock (clean + lock the bootloader (only for official firmware!); Save user data (not always stable).
Press Flash and wait until it is completed (the process takes 5-10 minutes).
If the Mi Flash Tool gives you a can't find fastboot error, check the drivers or try running the program on behalf of the administrator. For models on Qualcomm Snapdragon (for example, POCO F3), you may need to manually install the QDLoader HS-USB driver.
What to do if the Mi Flash Tool is 99% deaf?
4. Firmware through Recovery: stock and custom
Installation via Recovery is easier than Fastboot and does not require a PC. Suitable for updating the current version of MIUI or installing custom firmware (if the bootloader is unlocked).
- π Stock Recovery β For Official Recovery MIUI Recovery ROM (file update.zip).
- π οΈ Castomic Recovery (e.g, TWRP) β custom-built.
Instructions for stock recovery:
- Download Recovery ROM for your model (.zip format) and rename the file to update.zip.
- Move the file to the root of the phoneβs internal memory (not to folders!).
- Turn off the device and press Volume Up + Power to enter Recovery.
- Select the language (if available), then Install update.zip to System. Confirm installation.
For custom Recovery (TWRP):
- Install TWRP via Fastboot (TWRP command: fastboot flash recovery twrp.img).
- Boot to TWRP (clip Volume Up + Power after installation).
- Make a backup of the current firmware (Backup) β Select sections β Swipe to Backup).
- Flip the firmware.zip file through Install. Custom ROMs may require pre-cleaning (Wipe β Advanced Wipe β Dalvik, Cache, Data, System).
β οΈ Note: On some models (Xiaomi Mi) A2, Mi A3) Stock Recovery blocks the installation of unofficial firmware, in which case you will have to flash first. TWRP, and then custom ROM.
π‘
If your phone is stuck on boot after running through TWRP, try flashing the kernel (boot.img) separately through Fastboot:
fastboot flash boot boot.img5. Install custom firmware (LineageOS, Pixel Experience, etc.)
Custom firmware gives you a clean Android without a branded MIUI shell, regular security updates and additional features.
- β οΈ No Official Support β Xiaomi does not provide custom support ROM.
- π Battery β Some firmware is less optimized for Xiaomi iron (for example, LineageOS on the Redmi Note 8 Pro can run out faster).
- π± Functions MIUI β The game will be called Second Space or Game Turbo.
Step-by-step:
- Unlock the bootloader (see Section 2).
- Install TWRP for your model (download the.img file from the official website or XDA).
- Download: π Firmware (e.g. LineageOS from lineageos.org). π GApps (Google services if they are not included in firmware) β take the version arm64 modern smartphones. π Magisk (for root rights, if necessary).
In TWRP, run Wipe β Format Data (enter yes for confirmation).
Sweep through the firmware, then GApps and Magisk (order is important!).
Reboot. The first launch can take 10 to 15 minutes.
Popular custom firmware for Xiaomi:
| Firmware | Features | Supported models |
|---|---|---|
| LineageOS | Clean Android, Frequent Security Updates | POCO F1, Redmi Note 7, Mi 9 |
| Pixel Experience | Google Pixel interface, chips like Now Playing | Redmi Note 8 Pro, Mi A2, POCO X3 NFC |
| Havoc-OS | Maximum customization, support for themes | Redmi Note 9 Pro, Mi 10 |
| ArrowOS | Lightweight firmware with an emphasis on productivity | POCO X3 Pro, Redmi K20 Pro |
π‘
Before installing custom firmware, check its compatibility with your model on the XDA forum. For example, the firmware for the Redmi Note 10 Pro (sweet) will not work for the Redmi Note 10 Pro Max (sweetin).
Typical errors and their solutions
Even with the exact following of the instructions, there can be problems.
- π« Anti-rollback error: Trying to flash the old version MIUI The solution is to find firmware with an anti-rollback version that is not lower than the current one (check Settings). β The phone. β Version. MIUI).
- π Hanging on the logo MI Or Fastboot Possible causes: Incompatible firmware (check the model code name) Wrong Wipe before installation (for customized ones) ROM You need to format Data. boot.img (Ask him separately).
β οΈ Note: If after firmware through Fastboot the phone does not turn on and the PC does not see it, try to pinch the Volume up + Loudness down + Power for 10-15 seconds for forced reboot in EDL-In this case, only the firmware through the Mi Flash Tool with the choice of Clean all and lock will help.
7.How to get back the official MIUI after custom firmware
If custom firmware was unstable or you need branded MIUI features, you can return the stock shell in two ways:
Method 1: Fastboot (recommended)
- Download Fastboot ROM for your model from the official website.
- Sweep through the Mi Flash Tool with the Clean All option (see Section 3).
- If the bootloader was unlocked, it can be blocked back by the command: fastboot oem lock But remember: this will again block the possibility of installing custom firmware!
Method 2: Through Stock Recovery
- Download Recovery ROM and rename it to update.zip.
- If it's on the phone. TWRP, First, run stock Recovery through Fastboot: Fastboot Flash Recovery stock_recovery.img
- Download to stock Recovery and install update.zip.
Once you return to MIUI, you may need to re-assign your Mi Account (if the bootloader has been blocked). Also check Widevine status - if it resets to L3, high-resolution video will not be available.