Reflashing Xiaomiβs smartphone is a process that can both bring a locked device back to life and make it a brick if you approach it without preparation. Unlike standard βover the airβ updates, hand firmware gives you access to custom MIUI builds, pure Android (like Pixel Experience or LineageOS), and also allows you to roll back the device to the previous version of the software. However, every step here is critical: from choosing the right version of the firmware to unlocking the bootloader, which Xiaomi protects more strictly than many other brands.
In this article, we will discuss three official ways of flashing (via Fastboot, Recovery and Fastboot). MI Flash Tool, and touch on custom firmware β but with a focus on the risks they carry, you will learn how to get around common errors (for example, anti-rollback or blocking a Mi Account), what tools you will need, and why firmware through the help of a user. EDL-It is important that the instructions are adapted to the current Xiaomi models (2022-2026), but the principles apply to older devices as well - adjusted for the bootloader version.
The warning is, if your phone is warranty, the flashing will cancel it, and if you've never worked with an ADB or a Fastboot, you better practice on an old device. Ready? Then we start with the preparation.
1. Preparation for flashing: what to do before the beginning
First rule: never stitch a phone with a battery running low. The optimal charge level is 60-80%. If the device turns off during the firmware installation process, the consequences can range from soft brick (the phone turns on but doesn't boot) to complete loss of memory access.
- π Cable USB Type-C (original or certified β cheap cables often cause data transmission errors).
- π» Computer on Windows 10/11 (for Mac/Linux Additional drivers will be required).
- π Backup data (firmware erases internal memory!) Use Mi Mover or Google Drive.
- π Mi Account tied to the phone (unblocking the bootloader is impossible without it).
Pay special attention to the firmware versions. Xiaomi has two branches of software:
- Global (MIUI Global) β for the international market, with support for Google Services.
- China (MIUI China) β no Google services, but with more frequent updates.
Installing the China version on a global device (and vice versa) can cause network, camera, or sensor issues. Check the current version in Settings β About Phone β MIUI version.
β οΈ Note: If your Xiaomi is bought in China, but stitched on Global, trying to return to China-based firmware may block the purchase of the company. IMEI. This is impossible without contacting the service center.
2. Unlock the bootloader: why it is necessary and how to do it correctly
Xiaomi blocks the bootloader on all its devices to prevent unofficial software from being installed. Without unlocking, you canβt flash the phone through either Fastboot or Recovery. The process takes 3 to 15 days (depending on Xiaomiβs policy) and requires:
- Linking your phone to your Mi Account (require to confirm your email and phone number!).
- Activate the OEM Unlock option in Settings β For developers.
- Request permission via Mi Unlock Tool (download on the official website).
Instructions for unlocking:
- Download and install Mi Unlock Tool on PC.
- Start the phone in Fastboot mode (turn off the device, then press Volume Down + Power).
- Connect your phone to your PC and launch the Mi Unlock Tool. Sign in with the same account you have on your phone.
- Press Unlock. If you have a message to wait, wait for an SMS or an email from Xiaomi.
Once successfully unlocked, the phone will automatically reset to factory settings. All data will be deleted!
β οΈ Note: If you bought the phone with your hands, the previous owner could not untie his Mi Account. In this case, unlocking is impossible without his participation. β Xiaomi account.
Linked to Mi Account|OEM Unlock enabled in developer settings |Skashchan Mi Unlock Tool from official website |Phone charged at 60% or more |Data backup made-->
3.Flashing methods: Fastboot vs Recovery vs EDL
The choice of method depends on the purpose of the firmware and the condition of the phone. Let's consider three main options:
| Method | When to use | Pluses | Cons |
|---|---|---|---|
| Fastboot | Installation of official firmware, region change (Global/China), recovery after failure | Reliable, supported by Xiaomi, minimal error risk | Requires unlocked bootloader, erases data |
| Recovery | Update without data loss, install patches | Does not erase user files, easier to execute | Not all firmware supports, the risk of errors when incompatible |
| EDL (Emergency Download Mode) | Restore the βbrickβ if the phone is not turned on | It works even with a locked bootloader (on some models) | Complicated process, requires an authorized Xiaomi account or boxing |
For most users, Fastboot is optimal - it's versatile and well documented. Recovery is suitable for minor updates, and EDL is a last resort if other methods have failed.
Example of a command to firmware via Fastboot (after unlocking):
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot rebootπ‘
If after firmware through Fastboot the phone is getting stuck on the MI logo, try resetting through Recovery (click Volume up + Power).
4. Step-by-step instruction: firmware via Fastboot
This method is suitable for installing official MIUI firmware (for example, when switching from China to Global or vice versa).
- π± Phone with unlocked loader.
- π₯οΈ Computer with drivers installed ADB/Fastboot (You can download it on Android. SDK or through Minimal ADB and Fastboot).
- π¦ Firmware in.tgz or.zip format (download only from the official website!).
Step 1. Download the firmware
On Xiaomi, select the phone model (e.g. Redmi Note 12 Pro+) and the MIUI version.
- π’ Assembly number (e.g, V14.0.3.0.TLCCNXM β This is China Stable).
- π Release date (old firmware may not stand on new iron).
- π Region (Incompatible with China and Global without additional manipulation).
Step 2: Preparation of firmware
Unpack the downloaded archive into a folder with Fastboot tools. flash_all.bat (for Windows or flash_all.sh (for Mac/Linux).
Step 3. Firmware
- Turn off the phone and turn it into Fastboot mode (Loud down + Power).
- Connect to the PC and launch it. flash_all.bat.
- Wait until it is completed (the process will take 5-10 minutes).
β οΈ Note: If you have an anti-rollback error in the process, it means you are trying to install an older firmware than the one before. EDL service-seeking.
What to do if the firmware is 99% frozen?
5. Custom firmware: risks and opportunities
Installing custom firmware (like Pixel Experience or LineageOS) gives you a clean Android without MIUI, but takes away:
- πΈ Full camera support (48 MP or night mode may not work).
- π Battery optimization (Castom cores often consume charge faster).
- π‘ Network Stability (Problems with VoLTE or 5G).
If you do, follow this algorithm:
- Unlock the bootloader (as described above).
- Install custom Recovery (such as TWRP).
- Download the firmware from a trusted source (e.g. XDA Developers).
- Fly through TWRP, pre-made Wipe partitions System, Data, Cache.
Popular custom firmware for Xiaomi:
| Firmware | Features | Xiaomi support |
|---|---|---|
| Pixel Experience | Pure Android with chips from Google Pixel | Good (many Redmi/POCO models) |
| LineageOS | Minimalistic Android without unnecessary applications | Limited (mostly older models) |
| Havoc-OS | Maximum customization (themes, gestures) | Medium (depending on the community) |
β οΈ Caution: Castom firmware often contains vulnerabilities, especially if the build is unofficial. Do not install them on a phone you use to work with banking applications or corporate mail.
π‘
Custom firmware deprives you of official security updates from Xiaomi. If you care about privacy, stay on MIUI or choose firmware with regular patches (like LineageOS).
6. Common mistakes and how to avoid them
Even experienced users have trouble with firmware, and here are the most common ones:
- π« Mistake "This" MIUI version cannot be downgraded (anti-rollback): occurs when you try to roll back to an old version. EDL.
- π Phone is not defined in Fastboot: check drivers, cable and port USB. Sometimes it helps to disable the driver signature in Windows.
- π Bootloop: usually involves incompatible firmware or incomplete partition cleaning. The solution is to repeat the firmware with full Wipe.
- π Blocked Mi Account after firmware: if the phone required an account to be linked, it can request an old account after a reset. Solution - enter the data of the previous owner or contact Xiaomi support.
If your phone has turned into a brick (it doesnβt turn on, doesnβt respond to buttons), try:
- Press Volume up + Power for 20-30 seconds (sometimes helps with soft brick).
- Connect via EDL (you will need an authorized Xiaomi account or a Deep Flash Cable box).
- Contact the service center (if the warranty is still valid, do not say that you tried to sew yourself!).
π‘
If you have lost your IMEI after the firmware, try to restore it through Engineering Mode. Type in dial ##4636##, then select Phone Information and update the IMEI data (if stored in NVRAM).
7.Firmware through EDL: Last Chance for a "Brick"
EDL (Emergency Download Mode) is an emergency mode that allows you to flash your phone even if it doesn't turn on.
- π Authorization is required through Xiaomi account (for new models).
- π° Special tools (Mi Flash Pro, Deep Flash Cable or boxing).
- β οΈ The risk of losing data permanently (including: IMEI).
How to log into EDL:
- Turn off the phone.
- Close the Test Point contacts on the motherboard (they are different for each model, look for schemes in XDA or 4PDA).
- Connect. USB-The phone will be called Qualcomm. HS-USB QDLoader 9008.
For firmware, use the Mi Flash Tool in Clean All mode. Importantly, the firmware files should be in.mbn or.elf format.
β οΈ Note: On models with a MediaTek processor (e.g. Redmi) 10A) regime EDL name BROM It requires other tools (for example, SP Flash Tool. Don't confuse!