Xiaomi's Chinese smartphones often come with localized firmware that contains unnecessary apps, ads or restrictions by region. MIUI It eliminates these problems, it gets security updates, it gets more functionality, but it takes care, because doing the wrong thing can turn a phone into a brickΒ».
In this article, we will discuss all the stages of firmware, from preparing and unlocking the bootloader to choosing the right software and installing it.+, POCO X5 Pro, Xiaomi 13T etc.), which often have a closed bootloader and specific versions MIUI If you've never done firmware, don't worry: the manual is adapted for beginners, but with all the technical details in mind.
β οΈ Important: Firmware voids warranty and may result in data loss.If your Xiaomi was purchased less than 30 days ago, consider returning through official channels instead of manipulating the software yourself.
The firmware process of Chinaβs Xiaomi is different from global models, for example, to unlock the bootloader may require linking the Mi Account to the device and waiting for confirmation from Xiaomi servers (sometimes up to 720 hours!). K60 Ultra, Xiaomi 14 require special versions of MiFlash or Fastboot tools.
If you're willing to take a chance, you'll get started, but first, check if you really need a flashing.
1. Firmware Preparation: What to Do Before Starting
Before you start unlocking or installing new software, follow the necessary preparatory steps to minimize risks and simplify the process.
First, back up all the data. The firmware erases the device's internal memory, so copy photos, contacts and files to your computer or cloud, and this will be done with the standard Mi Mover app or third-party utilities like Titanium Backup (require root rights).
Second, check your device model and current version. MIUI. This is critical: firmware from another model or region can bring the phone down. β The phone. Pay attention to the phone:
- π± Name of the model, for example, 2210132G For the Redmi Note 12 Pro+ 5G).
- π Firmware Region (China, Global, EEA, India.).
- π’ Version MIUI (for example, MIUI 14.0.3.0.TLMCNXM).
Also prepare:
- π» Windows PC 7/10/11 (for MiFlash and ADB).
- π Cable USB Type-C (preferably original).
- π Battery charge of at least 60%.
- π Mi Account tied to phone (to unlock the bootloader).
2 Unlocking the bootloader: the most difficult stage
The bootloader on Xiaomi is locked by default, and unlocking it is a prerequisite for installing any unofficial firmware, which takes from a few minutes to 30 days (depending on Xiaomiβs policy).
To unlock, follow the instructions:
- Download and install Mi Unlock Tool (the official utility from Xiaomi).
- Turn on the developer mode on the phone: go to Settings β About phone and 7 times click on the MIUI version.
- Back to Settings β Additionally. β For developers and activate: π Unlocking OEM (may require PIN-code). π Debugging by USB.
Mi Unlock Tool
Mi Account
Follow the instructions. If you hear a message saying you need to wait, wait. SMS or notifications in your account (usually 168-720 hours).
β οΈ If you see a "Couldn't unlock" or "Device not supported" error, check it out:
- πΉ Is your Mi Account linked to your phone (in Settings) β Xiaomi account).
- πΉ Are you using it? VPN or proxy (Xiaomi servers block such connections).
- πΉ Is your Xiaomi model βanlock-unfriendlyβ (e.g. some versions of Redmi)? K50 They require additional manipulations).
What if the Mi Unlock Tool can't see the phone?
3. Selection of firmware: official vs custom
Once you unlock the bootloader, you need to decide on the type of firmware.
1. Official global MIUI (Global/EEA)
- β Full compatibility with the device.
- β Regular updates from Xiaomi.
- β No advertising or Chinese services.
- β Some functions may not be supported (for example, IR-blaster).
2. Official Chinese MIUI (China Stable)
- β Maximum stability (updates are tested longer).
- β Full support for all functions of the device.
- β Lots of advertising and unnecessary Chinese apps.
- β No Google Services (you will need to install manually).
3. Custom firmware (LineageOS, Pixel Experience, crDroid)
- β Pure Android without shell MIUI.
- β More opportunities for customization.
- β There may be bugs (e.g., a broken camera or NFC).
- β No official support from Xiaomi.
For most users, the best choice is the official global firmware, which can be downloaded from the sites:
- π Official portal MIUI (Choose the Global version or EEA).
- π Xiaomi Firmware Updater (Firmware Archive with Version History).
π‘
If you choose custom firmware, check its support on the forum XDA Developers. Look for tagged themes "[ROM]" for your model.
4. Ways to install firmware: Fastboot vs Recovery
There are two main methods of Xiaomi firmware: through Fastboot (complete system rewriting) and through Recovery (update without erasing data).
Method 1: Installation via Fastboot (recommended for region change)
- π§ Completely rewrites all sections of the phone.
- π Requires an unlocked bootloader.
- β οΈ Erase all data (including internal memory!).
Tools: MiFlash (official utility) or fastboot manually.
Method 2: Recovery Installation (for upgrades within a single branch) MIUI)
- π Save user data (but itβs better to make a backup!).
- π§ It only works for firmware in the same region (e.g. China Stable on China Stable).
- β Not suitable for changing the type of firmware (from Chinese to global).
Tools: TWRP (Custom recovery or standard MI-Recovery.
Comparison of methods:
| Criteria | Fastboot | Recovery (TWRP) | Recovery (MI-Recovery) |
|---|---|---|---|
| Erasure of data | β Yes. | β No (optional) | β No. |
| Change of the firmware region | β Yes. | β Yes. | β No. |
| Unlocking required | β Yes. | β Yes. | β No (for official updates only) |
| Support for custom firmware | β Yes. | β Yes. | β No. |
5. Step-by-step instruction: firmware via Fastboot
This method is suitable for a complete firmware change (for example, from Chinese to global). Follow the instructions carefully - errors at this stage can lead to a brick (inoperability) of the device.
βοΈ Preparation for firmware through Fastboot
Firmware steps:
- Download the firmware for your model from the official website (for example, fw_redwood_miui_GLOBAL_14.0.3.0.TMOMIXM_... For the Redmi Note 12). Unpack the archive in a folder on the disk C:\ (pathless!).
- Turn off your phone and put it in Fastboot mode: press Volume down + Power for 10 seconds. Connect to the PC.
- Open the command line in the firmware folder (Shift) + right-button β "Open the PowerShell window here") and execute the command to check the connection: fastboot devices If the device is displayed (for example, 1234abcd fastboot - can continue.
- For firmware via MiFlash: Open the MiFlash.exe utility. Press Select and select the folder with the unpacked firmware. Select Clean all mode (full cleaning) or Clean all and lock mode (cleaning). + Lock the bootloader after firmware. Press Flash and wait for completion (5-10 minutes).
- For manual firmware via fastboot: In the command line, execute (for Windows): fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot flash system system.img fastboot flash vendor vendor.img fastboot flash dtbo dtbo.img fastboot flash vbmeta vbmeta.img fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img fastboot reboot
β οΈ Note: If after firmware the phone is stuck on the logo MI 15 minutes:
- πΉ Try to go to Recovery (Loudness Up). + Powering) and making Wipe Data.
- πΉ If it doesnβt work, repeat the firmware by selecting a different mode in MiFlash (e.g. Clean all and lock instead of Clean all).
π‘
Fastboot firmware is the most reliable way to change region, but requires strict compliance with instructions, and errors in commands or incorrect firmware will lead to the device failure.
6. Firmware through TWRP: custom-made ROM
If you install custom firmware (like LineageOS or Pixel Experience), custom recovery is required β TWRP. Its installation requires an unlocked bootloader.
Instructions:
- Download. TWRP for your model from twrp.me (for example, twrp-3.7.0_12-0-redwood.img For the Redmi Note 12).
- Transfer your phone to Fastboot and execute the command: fastboot flash recovery twrp-3.7.0_12-0-redwood.img
- Immediately after that, go to TWRP, clamping up + Food (otherwise, the standard firmware will overwrite) TWRP).
- In TWRP, make a backup of the current firmware (Backup β Select Storage β Swipe to Backup).
- Sweep through the custom firmware: πΉ Copy. ZIP-phone-file. πΉ V TWRP Choose Install β Choose. ZIP β Swipe to Confirm Flash. πΉ After installation, run the Wipe β Format Data (required for first installation!).
β οΈ Note: Some custom firmware requires additional actions:
- πΉ Installations of GApps (Google services) separate ZIP-file.
- πΉ Patching vbmeta to bypass bootloader check: fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
7. Common mistakes and their solutions
Even with the correct following of the instructions, there can be problems, and here are the most common mistakes and ways to correct them:
1. "Anti Rollback" error
- πΉ Reason: Trying to re-wind the old version MIUI on a device with a new firmware that has rollback protection.
- πΉ Solution: Scroll down a newer version MIUI (If it is Chinese, then try again.
2. the phone does not turn on after firmware (black screen)
- πΉ Cause: Incompatible firmware or interrupted process.
- πΉ Solution: Try going to Fastboot and repeating the firmware. If it doesn't work, run the official Chinese firmware through MiFlash in Clean all and lock mode.
3. Error "This package is for 'redwood' devices; this is a'
- πΉ Reason: Firmware is not suitable for your model.
- πΉ Solution: Check the model name in Fastboot with the command: fastboot getvar product and download the firmware for that code (e.g., redwood for Redmi Note 12).
4.Hanging on the MI logo after firmware
- πΉ Reason: Partition conflict or incomplete firmware.
- πΉ Solution: Go to Recovery and run Wipe Data. If it doesn't work, re-sweeten with the Clean all mark in MiFlash.
π‘
If it's gone after the firmware. IMEI If the network is not working, restore it with the tool. QCN Rebuilder. That's gonna need a backup section. modemst1/modemst2 (dot TWRP).
8.What to do after firmware: setup and optimization
After successful firmware, there are several important steps:
1.Initial setting
- πΉ When first enabled, select a language and region (e.g., Russia or Europe).
- πΉ Skip Mi Account binding if you donβt plan to use Xiaomi services.
- πΉ Restore data from the backup (if you did it through Mi Mover or TWRP).
2. Checking of performance
- πΆ Network: Make sure there is a mobile network signal and Wi-Fi is running.
- πΈ Camera: Test all modules (main, wide-angle, macro).
- π Charging: Check if the charger is determined.
- π΅ Sound: Turn on music through speakers and headphones.
3. System optimization
- πΉ Disable unnecessary system applications (e.g. Mi Video, Mi Music) via Settings β Annexes.
- πΉ Activate CPU Overclocking (if supported) in Settings β Battery and productivity.
- πΉ Install Magisk to get root rights (optional, but useful for fine-tuning).
4. Firmware update
After firmware, check for updates in Settings β Update system: If you use custom firmware, follow the updates in the developer forum (for example, on the website). XDA).
π‘
After the firmware, take your time to install the applications. Let the system run for 1-2 days to make sure that it is stable. If there are lags or overheating, the firmware may not be correctly selected.