Introduction: Why You Need a Firmware and When to Make It
The firmware of Xiaomiβs smartphone is a process that can both save the device from software failures and turn it into a βbrickβ if you approach it without preparation. β The phone. β Update of the system, manual firmware gives access to custom assemblies, new functions MIUI Or even an alternative OS like LineageOS?
Main reasons for firmware: fixing critical bugs (for example, the problem with endless reboot on the Redmi Note 10 after upgrading to a new one) MIUI 14.0.3.0), uninstall pre-installed software, overclock performance or return to a stable version after a failure OTA-However, if your Xiaomi is stable and the only goal is to βtry something newβ, it is better to refrain from this: the risk of losing warranty or data is higher than the potential benefit.
It is important to understand the difference between the types of firmware:
- π Stock-stock MIUI β official firmware from Xiaomi (stable or development version).
- π οΈ Custom firmware β modified builds (e.g. Pixel Experience or crDroid).
- π Global/Chinese β regional versions with different set of functions (e.g. in Chinese) MIUI No Google services).
Preparation of the device: 5 mandatory steps before firmware
Before you start firmware, make sure you meet all the preconditions, and neglecting them is the main reason for the hardware to build, and let's start with the most important thing: unlocking the bootloader.
Xiaomi will block the bootloader on all devices released after 2016, and it will require:
- Link your Mi Account to your device (Settings β Xiaomi Account).
- Enable debugging on USB (Settings β The phone. β Version. MIUI β Tap 7 times, then return to the additional β For developers).
- Apply for unlocking via the official Mi Unlock tool (it may take up to 720 hours to wait!).
Backup of data (via Mi Cloud or TWRP)
Charge your phone at least 60%
Download the correct firmware version (check the model and region!)
Install ADB/Fastboot drivers on PC
Disable the antivirus (it can block firmware files)
-->
Pay special attention to the choice of firmware. For example, for the Redmi Note 11 Pro+ 5G (veux) only a firmware marked will do veux_global β Version installation for Redmi Note 11 Pro (peux) will lead to a broken camera or module NFC. Download files only from official sources:
- π Official website MIUI (stock-fixer).
- π§ XDA Developers (for custom builds).
- π¦ Xiaomi Firmware Updater (Firmware Archive).
β οΈ Note: If your device was purchased in China (suffix version _CN), firmware MIUI It can block the network due to differences in modem files, in which case you will need a separate mod firmware via Fastboot.
Firmware: Fastboot vs Recovery vs. OTA
There are three main methods of Xiaomi firmware, and the choice depends on your purpose and the current state of the device.
| Method | When to use | Pluses | Cons |
|---|---|---|---|
| Fastboot | Complete flashing, resetting locks, recovery after failure | The most reliable, even works on "bricks" | Requires a PC, erases all data, takes the longest time |
| Recovery (TWRP) | Installation of custom firmware, backups, partial updates | Save data (when set up correctly) and flexibility | Not all devices support all devices TWRP, mistake |
| OTA (over the air) | Update the current version of MIUI without losing data | The simplest thing is, it doesn't require a PC. | It will not help in case of serious failures, limited to the choice of versions. |
For most users, Fastboot is the most versatile method, especially if the device doesnβt turn on or gets stuck on the Mi logo. X3 Pro via Fastboot, you will need:
- Download Fastboot firmware (file with.tgz extension).
- Unpack it into a folder with the Mi Flash Tool.
- Connect the phone in Fastboot mode (clamp Volume down + Power).
- In the Mi Flash Tool, select a folder with firmware and press Refresh, then Flash.
What if the Mi Flash Tool canβt see the device?
To install custom firmware (e.g. Pixel Experience on Redmi) K20 Pro will be required TWRP. The algorithm is more complicated:
- π§ Install TWRP Fastboot: Fastboot Flash Recovery twrp.img fastboot boot twrp.img
- π Copy the firmware (.zip file) to your phone.
- π V TWRP choose β Format Data (required!), then Install and specify the firmware file.
β οΈ Note: On devices with dynamic partitions (e.g. Xiaomi) 12 Pro) firmware through TWRP may result in loss IMEI. In this case, additional firmware is required. super.img via Fastboot.
Unlocking the bootloader: how to get around the wait of 720 hours
The official procedure for unlocking the bootloader on Xiaomi includes a mandatory wait of 7 days (168 hours) to 30 days (720 hours), a security measure, but it greatly slows down the process. Are there workarounds?
Technically yes, but they are associated with risks:
- π Account-based method: If you previously unlocked a bootloader on another Xiaomi device, the wait is sometimes reduced to 0 hours. 10S This trick doesn't work).
- β³ Use of old Mi Unlock: Some users claim that Mi Unlock 3.5.503.24 bypasses the wait, but this can lead to account blocking for βunofficial activityΒ».
- π» EDL-Mode: allows you to flash the device without unlocking, but requires an authorized Xiaomi account with rights EDL (Only available to service centers).
π‘
If you donβt want to wait, buy a used device with an already unlocked bootloader (checks by the fastboot oem device-info team β look for the line Device unlocked: true). But remember: the seller may not report hidden problems, such as a broken device. NFC post-fix.
If you still decide to wait, hereβs how to speed up the process:
- Link the device to your Mi Account and enable synchronization.
- Log in to the account on the official website and confirm email/phone.
- Connect your phone to your PC, start Mi Unlock and log in. The timer will only start after the first successful connection.
- Repeat the unlock attempt every 24 hours β sometimes the timer is reset.
On some devices (e.g. Poco) F3) After unlocking the bootloader, Widevine is reset L1 on L3, This makes it impossible to watch high-resolution videos on Netflix or Disney.+. This can only be corrected by flashing vendor and system partitions with saving DRM-key.
Firmware through Fastboot: step-by-step instructions with pictures
Fastboot is the most reliable way to bring your device back to life, but itβs also the most destructive: it completely erases all data, including internal memory. If your Xiaomi doesnβt turn on or is stuck on the boot, this method is your only chance.
What you need:
- π₯οΈ Windows PC 10/11 (MacOS or Linux may have driver problems).
- π Cable USB (It is preferably original, since cheap cables may not transmit data to Fastboot).
- π Firmware in.tgz format (for example, veux_global_images_V14.0.2.0.TKCCNXM_20230310.0000.00_12.0_global_3f7a1d53d4.tgz).
- π οΈ Mi Flash Tool (last version).
Turn off the phone.
Hold the Loud down + Power (hold 10 seconds)
Connect to a PC (should be defined as Fastboot)
Run Mi Flash Tool and select folder with unpacked firmware
Press Refresh β Flash (Select Clean All)
Wait. 5-15 minutes (not to be switched off!)
-->
Letβs look at the process on the example of Xiaomi 11T Pro (vili):
- Unpack the firmware in a folder without Cyrillic characters (for example, C:\MIUI\vili_global).
- Run MiFlash.exe on behalf of the administrator.
- In the Select field, specify the path to the firmware folder.
- Connect the phone in Fastboot mode (the screen should show the hare in the hat-eared).
- In the Mi Flash Tool, press Refresh β the device should appear (for example, COM3 - vili).
- At the bottom, choose Clean all (complete cleaning) or Clean all and lock (if you want to lock the bootloader again).
- Press Flash and wait for the green tick to appear.
If the process is suspended on Waiting for device:
- Check that the Device Manager defines the phone as Android Bootloader Interface.
- Try another one. USB-port.
- Reinstall drivers via Mi Flash Tool β Driver β Install.
π‘
Never interrupt the firmware during the flashing stage... this is guaranteed to turn the device into a brick. If the process is stuck for more than 20 minutes, check the logs in MiFlash.log (the file is in the tool folder).
Installation of custom firmware: TWRP and alternative OS
If the stock MIUI You don't like it, you can install custom firmware, like LineageOS (pure Android) or Pixel Experience (with features from Google Pixel). TWRP.
Preparation:
- π Unlock the bootloader (as described above).
- π± Install. TWRP For your model (download only from the official website!).
- π Make a backup through TWRP (Backup β Select System, Data, Boot).
Instructions for Redmi Note 9 Pro (joyeuse)
- Download the firmware (for example, PixelExperience_joyeuse-13.0-20230512-1200.zip) GApps (if you need Google services).
- Reboot to TWRP: fastboot boot twrp-3.7.0_9-0-joyeuse.img.
- In TWRP, select Wipe β Format Data (enter yes).
- Return to the main menu, click Install and select the firmware file.
- After installing the firmware, repeat the step for GApps (if necessary).
- Reboot to the system (Reboot β System).
β οΈ Note: On some devices (for example, Xiaomi Mi 11) custom firmware breaks the main camera due to closed libarcore drivers. XDA.
Popular custom firmware for Xiaomi:
| Firmware | Features | Xiaomi support |
|---|---|---|
| Pixel Experience | Google Pixel interface, regular updates | Redmi Note 10 Pro, Poco X3, Mi 11 |
| LineageOS | Clean Android without unnecessary apps | Xiaomi Mi A2, Mi 9, Redmi 4X |
| crDroid | Maximum customization, support for themes | Poco F1, Redmi K20, Mi 9T |
Frequent mistakes and how to fix them
Even with the right instructions, something can go wrong. Here are the most common mistakes and their solutions:
1. "Couldn't unlock" error in Mi Unlock
- πΉ Make sure you are logged in to the same Mi Account on your phone and tool.
- πΉ Check that the phone is debugging on USB and OEM-unlock (Settings) is allowed β For developers).
- πΉ Try another version of Mi Unlock (e.g. 5.5.224.24).
2.The phone is not identified in Fastboot
- πΉ Install drivers manually through Device Manager (select Android Bootloader Interface).
- πΉ Try another one. USB-port USB 2.0).
- πΉ On some motherboards Asus/MSI You need to turn off the Fast Charge in BIOS.
3. After firmware no network (IMEI invalid)
- πΉ Sweep modem and nvdata files separately through Fastboot.
- πΉ Restore. IMEI via Maui META (for MediaTek or QCN (for Snapdragon).
- πΉ If nothing helps, contact the service center - sometimes you need to solder the module.
4.Hanging on the Mi logo after firmware
- πΉ Try to go to Recovery (Loudness Up). + Powering) and making Wipe Data.
- πΉ Fastboot with Clean All and Lock selection.
- πΉ Check that the firmware is suitable for your model (e.g., alioth for Poco). F3, Not aliothin for the Indian version).