Reflashing Xiaomiโs smartphone to pure Android or custom firmware is a challenge that scares many users. Meanwhile, itโs the only way to get rid of the obsessive shell of MIUI, get up-to-date security updates or resurrect an old device. In this article, weโll take a look at the whole process from A to Z: from unlocking the bootloader to installing an alternative firmware via Fastboot or TWRP.
It is important to understand that the procedure requires care and preparation. Errors at any stage can lead to a "brick" (inoperability) of the device, loss of warranty or problems with the operation of modules (for example, a camera or NFC on some firmware). However, with the right approach, even a beginner will cope with the task. We will consider official and informal methods, as well as give recommendations for choosing firmware for specific models of Redmi, POCO and Mi.
Why users want to reflash Xiaomi on pure Android
The main reason is dissatisfaction with the MIUI branded shell, which, despite regular updates, sins:
- ๐ฑ Aggressive advertising in system applications (even in settings)
- ๐ข Slowdowns due to excessive background processes
- ๐ Restrictions on the removal of pre-installed applications
- ๐ Android update delays (sometimes years)
Pure Android (or firmware based on it, like LineageOS, Pixel Experience) solves these problems. In addition, custom firmware often supports devices longer than Xiaomi itself. For example, Redmi Note 7 (2019) officially received its last update in 2022, but LineageOS 20 runs Android 13.
Other reasons for reflashing:
- ๐ง Recovery of the brick after a failed update
- ๐ฑ Testing new features (e.g. Android 14 on non-upported devices)
- ๐ Removal of Chinese services and spyware (relevant to global firmware)
- ๐ฎ Optimization for gaming (firmware with Kirin Gaming core)
โ ๏ธ Note: Firmware reflashing on unofficial firmware will void the Xiaomi warranty. In some cases (for example, when using Google Camera on custom cores), the quality of photos / videos may deteriorate.
Preparation for Flashing: What to Do Before Starting
Before starting the procedure, follow the mandatory steps:
Create a backup copy of data (photos, contacts, SMS)
Check the device model in Settings โ About the phone
Download the necessary firmware (official or custom)
Install ADB/Fastboot drivers on PC
Charge your phone at least 60%
Prepare. USB-cable (preferably original)
-->
Pay special attention to backup. Flashing erases all data from internal memory.
- ๐ฑ Mi Cloud for Contacts and Notes
- ๐ฅ๏ธ Google Photos for Media Files
- ๐พ Titanium Backup (requires root) for applications
- ๐ ADB Backup for system settings (command: adb backup) -all -f backup.ab)
To determine the exact model of the device, go to Settings โ About Phone โ Model. For example, the Redmi Note 10 Pro can have indexes sweet (global version) or sweetin (Indian).
โ ๏ธ Note: If your device is blocked by an operator (e.g. MegaFon or Beeline), unlocking the bootloader may cause communication to be lost.
Unlocking the Xiaomi bootloader: step-by-step instructions
Without an unlocked bootloader, custom firmware cannot be installed. Xiaomi officially lets you unlock it, but the process requires waiting and linking an account.
Steps to unlock:
- Link your Mi Account to your device: Go to Settings โ Xiaomi Account Sign in or sign up (be sure to link your phone number!) Enable sync
- Activate debugging on USB: Enable Developer Mode (7 taps according to Version) MIUI In About Phones In Settings โ Additionally. โ For developers, turn on: ๐ง Debugging by USB ๐ Unlocking OEM (point-of-point!)
Connect to the PC.
adb devicesYour device should display a series of numbers.
Launch the unlock utility
- Download Mi Unlock Tool (official website)
- Log in to the same Mi Account as on your phone
- Follow the instructions of the program (it may take 7-30 days to wait!)
| Xiaomi model | Waiting period for unlocking | Features |
|---|---|---|
| Redmi Note 10/11 | 7 days | Requires a tie-up. SIM-map |
| POCO F3/F4 | 14 days | You may need to disable the antivirus on the PC |
| Mi 11/12 | 30 days | 86006/86012 - Requires repeated attempts |
| Redmi 9/9A | 3-5 days | Sometimes unlocked without waiting. |
Once the bootloader is unlocked, the device will reset to factory settings! All data will be deleted.
1. Disable VPN/proxy on PC
2. Use another USB-cable (preferably original)
3. Run the program on behalf of the administrator
4.Reboot the phone and PC-->
Selection of firmware: official vs custom
Once you unlock the bootloader, you need to decide on the type of firmware. Each option has pros and cons:
Official firmware Xiaomi
- โ Stability: tested by the manufacturer
- โ Compatibility: all modules (camera, NFC, IR-blaster working
- โ OTA-Updates: Automatic updates
- โ MIUI: Advertising, restrictions, delays of Android updates
Castom firmware (LineageOS, Pixel Experience, etc.)
- โ Clean Android: No Advertising and No Extra Apps
- โ Up-to-date versions: Android support 13/14 old-device
- โ Customization: deep customization of the interface
- โ Bugs: possible problems with the camera, sensors, wireless charging
- โ No OTA: Updates are installed manually
Where to download firmware:
- ๐ Official: en.miui.com (choose Fastboot or Recovery)
- ๐ LineageOS: download.lineageos.org
- ๐ Pixel Experience: download.pixelexperience.org
- ๐ XDA Developers: a forum with firmware for specific models
โ ๏ธ Attention: Firmware from sites such as 4PDA Torrent trackers may contain viruses or spyware. Download only from official sources or verified topics on the Internet. XDA.
How to check firmware for viruses?
Install firmware via Fastboot (official method)
Fastboot is suitable for installing official firmware Xiaomi or some custom (for example, Xiaomi.eu).It does not require custom recovery, but erases all data.
Tools required:
- ๐ฅ๏ธ PC Windows/Linux/macOS
- ๐ Cable USB (preferably original)
- ๐ฆ Firmware in.tgz or.zip format (for Fastboot)
- ๐ ๏ธ Utilities. ADB and Fastboot (download)
Step-by-step:
- Unpack the firmware in the folder with fastboot (must be files) images/ and flash_all.bat)
- Turn your phone into Fastboot: adb reboot bootloader or turn off the device and press Power + Volโ
- Connect your phone to your PC and check for detection: fastboot devices
- Start the firmware: For Windows: Launch flash_all.bat For Linux/macOS: launch./flash_all.sh
Wait for completion
If the process is interrupted with a FAILED error (remote: 'Flashing is not allowed') it means:
- ๐ The bootloader is not unlocked (repeat the unlock procedure)
- ๐ The cable is faulty (try another one)
- ๐ฅ๏ธ Drivers not installed (check in Device Manager)
๐ก
Fastboot is suitable for building blocks recovery and installation of official firmware. LineageOS (Pixel Experience) custom firmware usually requires TWRP.
Installation of custom firmware through TWRP
For most custom firmware, custom recavery will be required โ TWRP (Team Win Recovery Project. ZIP-Firmware files, make backups and restore them.
Installation steps:
- Download TWRP for your model: Official website: twrp.me For new devices (Redmi Note 12, POCO F5) look for unofficial builds on XDA
- Install. TWRP Fastboot: Fastboot Flash Recovery twrp-3.7.0_12-1-sweet.img Fastboot Reboot Recovery (replace sweet with your model code)
- Make a backup in TWRP: Select Backup Tags Boot, System, Data Save to SD-card or PC (via ADB Pull)
Install the firmware
- Move it. ZIP-phone-file
- V TWRP Choose Install โ Select a file โ Swipe to Confirm Flash
- Clear the cache: Wipe โ Format Data (enter "yes") Wipe โ Advanced Wipe โ Dalvik/ART Cache, Cache
- Reboot to the system (Reboot โ System)
In some cases, it may be necessary to re-unblock the bootloader (waiting 7-30 days).