Installing firmware on Xiaomi smartphones 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 the usual update through Settings โ About Phone โ System Update, manual firmware requires unlocking the bootloader, choosing the right version of software and carefully executing instructions. This article will help you understand all the nuances from official MIUI to custom firmware like LineageOS or Pixel Experience.
Itโs important to understand that the procedure is different for different Xiaomi, Redmi and POCO models. For example, the flagship Xiaomi 13 Ultra or Redmi Note 12 Pro+ have stricter restrictions on unlocking the bootloader than the budget POCO M5. Weโll look at the universal steps, but also point out the key differences for popular devices. If youโve never flashed a smartphone before, donโt worry: with the right approach, the risks are minimal.
Before you start, answer two questions: why you need a new firmware (speed up, new features, remove bloatware) and which version you want to install (official global, Chinese, custom), which determines the choice of tools and the sequence of actions.
1. Firmware Preparation: What to Do Before Starting
The first and most important step is data backup. The full-reset firmware will delete all files, including photos, messages and installed apps. Use Mi Cloud, Google Drive or local copying on your PC.
- ๐ฑ Contact and SMS โ Export through Contacts โ Contact management โ Exports.
- ๐ธ Photo/video โ copy the folder DCIM computer.
- ๐ Passwords and tokens โ save backup codes for two-factor authentication (Google Authenticator, Telegram).
- ๐ฎ Game Save โ Use built-in reservation features in games or Helium.
Next, check the device model and the current firmware version. This is critical, as the firmware from Redmi Note 11 (spes) will not work for the Redmi Note 11 Pro (veux).
- ๐ In settings: Settings โ The phone. โ Version. MIUI โ Press 5 times on "Kerole" (Hardware info will appear).
- ๐ป Through ADB: Connect your phone to your PC and type in the command adb shell getprop ro.product.device
Also make sure that:
- ๐ Battery charge of at least 60% (when discharged during firmware, the device may turn off).
- ๐ Used by the original USB-cable (cheap cables can interrupt data transmission).
- ๐ฅ๏ธ The PC has Mi Flash Tool drivers installed or ADB/Fastboot (Download from the official Xiaomi website).
๐ก
If you are flashing the POCO F5 or the new Xiaomi 14 model, check if it supports bootloader unlocking.Some devices (for example, for the Chinese market) may require additional steps, such as linking a Mi Account to a device.
2 Unlocking the bootloader: without this firmware is impossible
The bootloader on all Xiaomi smartphones is locked by default, a security measure that makes it harder to install unofficial firmware, and it takes between 3 and 360 hours (depending on Xiaomiโs policy) to unlock and requires:
- Link your Mi Account to your device (be sure to use the same account as your phone!).
- Request permission via Mi Unlock Tool (download here).
- Expectations of confirmation from Xiaomi servers (times vary).
Step-by-step:
- Enable Developer Options: Go to Settings โ About Phone โ MIUI version and press 7 times.
- Activate OEM Unlock and USB Debugging in Settings โ Additional โ For Developers.
- Connect your phone to your PC, launch the Mi Unlock Tool and log in.
- If you see a message that says "Couldn't unlock", wait until the time is specified (usually 168 hours for new accounts).
โ ๏ธ Attention: Unlocking the bootloader resets all data on the device, even if you do not install a new firmware. Also, some banking applications (for example, Sberbank Online) may stop working due to the SafetyNet trigger.
What if the Mi Unlock Tool canโt see the device?
3. firmware selection: official MIUI vs custom builds
Decide which firmware to install, will help the comparative table:
| Criteria | Official MIUI (Global/EEA) | Official MIUI (China) | Castomic (AOSP) |
|---|---|---|---|
| Stability | โญโญโญโญโญ | โญโญโญโญ | โญโญโญ (build-dependent) |
| Updates | Regular but delayed | Frequent, but without Google Services | Depends on the developer. |
| Advertising/bloatware | Minimum (in EEA) | Lots of ads. | Absent. |
| Google services | Pre-installed | You need to set it up separately. | Pre-installed (in most cases) |
| Unlocking the loader | Required. | Required. | Required. |
Where to download firmware:
- ๐ Officially MIUI: Global/EEA: Chinese: Chinese portal (needed) VPN).
- ๐ ๏ธ Custom: LineageOS: lineageos.org. Pixel Experience: pixelexperience.org. Xiaomi.eu (optimized) MIUI): xiaomi.eu.
For custom firmware, additionally you will need:
- ๐ง Install TWRP ornamental.
- ๐ฆ Download GApps (Google Services) if they are not included in the build.
- โ ๏ธ Check compatibility with your model in forums XDA Developers or 4PDA.
๐ก
Xiaomi.eu firmware is a modified version of MIUI with remote bloatware, weekly updates and support for all languages, and is suitable for those who want an official interface without Chinese restrictions.
4. Install official firmware via Mi Flash Tool
This is the most reliable way to return the device to the factory state or upgrade to the latest version.
- ๐ฅ๏ธ Windows PC (Mac/Linux unsupported).
- ๐ Cable USB (preferably original).
- ๐ Firmware in.tgz or.zip format (unpack it into a folder without Cyrillic!).
- ๐ ๏ธ Mi Flash Tool (download from the official website).
Step-by-step:
- Turn off the phone and put it in Fastboot mode: pinch Power + Volโ until the hare appears in the hat-eared.
- Connect the device to a PC. Android Bootloader Interface should appear in Device Manager.
- Launch the Mi Flash Tool, press Select and specify the folder with the unpacked firmware.
- At the bottom, select firmware mode: Clean all โ full reset (recommended when changing the version of MIUI); Clean all and lock โ reset + lock the bootloader (only for official firmware!); Save user data โ data storage (not always stable).
Flash
โ ๏ธ Note: If the process is stuck on "waiting for device", check:
- Connecting the cable (try another port).
- Drivers (install them through Mi Flash Tool โ Driver)
- bootloader mode (should be Fastboot, not Recovery).
โ๏ธ Preparation for firmware through Mi Flash Tool
5. Install custom firmware through TWRP
Custom firmware (LineageOS, Pixel Experience, etc.) will require custom recoveries - usually TWRP. The process is more complicated, but gives more options:
Step 1: Installation of TWRP
- Download the image TWRP for your model from the official website (for example, twrp-3.7.0_9-0-veux.img For the Redmi Note 11 Pro).
- Transfer your phone to Fastboot (Power + Volโ).
- Open the command line in the folder with ADB and type: fastboot flash recovery twrp.img fastboot boot twrp.img
Step 2: Firmware through TWRP
- In TWRP, make a backup of the current firmware (Backup โ Select partitions โ Swipe to Backup).
- Transfer firmware and GApps files (if needed) to your phone via MTP or OTG-cable.
- Click on Wipe โ Advanced Wipe and mark Dalvik / ART Cache System Data Cache
Install โ Choose. ZIP โ Swipe to Confirm Flash
GApps
Reboot โ System
โ ๏ธ Warning: The first download after installing custom firmware can take up to 15 minutes. Don't interrupt the process! If the device has been hanging on the logo for longer than 20 minutes, repeat the firmware with full wipe.
How to check the compatibility of custom firmware?
6. Decision errors in firmware
Even with the exact following of the instructions, there can be problems.
| Mistake. | Reason. | Decision |
|---|---|---|
| Couldn't unlock the Mi Unlock Tool | It has not been 168 hours since the account was linked. | Wait for the specified time or use another Mi Account (risky) |
| The device is not defined in Fastboot | There is no driver or faulty cable | Install drivers manually through Device Manager, try another cable/port |
| Error: 7 in TWRP | Incompatible firmware or an outdated version of TWRP | Check the firmware model, update the TWRP |
| Hanging on the MI logo | Incorrect wipe or damaged firmware files | Repeat the firmware with a full reset (Format Data in TWRP) |
| There is no network after the firmware | No modems installed or IMEI dropped | Install firmware with modem or restore IMEI through Maui META |
If IMEI is missing after the firmware:
- Make sure the firmware supports your modem model.
- Try to restore the IMEI through the engineering menu: ##4636## โ Phone Information โ Select SIM
- Use the Maui META or SN Write Tool (requires an IMEI backup!).