Reflashing Xiaomiโs smartphone is a process that can bring the device back to life and turn it into a โbrickโ if you approach it without preparation. Unlike standard โover the airโ updates, hand firmware gives you access to the latest versions of MIUI, custom builds like LineageOS or Pixel Experience, and eliminates critical bugs that the manufacturer is in no hurry to fix. However, every step here is important: from unlocking the bootloader to choosing the right firmware version for your model.
In this article, we will look at all the stages of firmware, from tool preparation to the final configuration of the system, and pay special attention to the risks of blocking your Mi Account if you unblock the bootloader correctly, as well as the nuances of working with devices based on Qualcomm Snapdragon and MediaTek. If you have never done firmware before, start with official methods โ they are safer, but they must be executed strictly according to instructions.
Preparation for firmware: what to do before the start
Before you start firmware, make sure your device is ready for the procedure. First and most important, save all data. The firmware, especially through Fastboot, completely erases internal memory. Use Mi Cloud, Google Drive or local copying on your PC for backup:
- ๐ฑ Contacts, SMS and call log (export through Settings) โ Google โ Backup)
- ๐ธ Photos and videos (transfer to memory card or cloud)
- ๐ฎ Game savers (use Helium or manual folder copying) /Android/obb/ and /Android/data/)
- ๐ Passwords and application data (synchronize via Google Smart Lock or Bitwarden)
The second is to check the device model and the current firmware version, which is critical, as the firmware from the Redmi Note 10 Pro (sweet) will not work for the POCO X3 Pro (vayu), even if they look similar.
- ๐ In settings: Settings โ The phone. โ Version. MIUI (Click 7 times on โKere Versionโ to activate the developer mode)
- ๐ป Through ADB: Connect your phone to your PC and type in the command adb shell getprop ro.product.device
โ ๏ธ Note: If your device was purchased in China (C-suffix version in the model, for example Mi 11 Lite) 5G C), the firmware of the global version can block the network. XDA Developers or 4PDA.
Unlocking the bootloader: why it is necessary and how to do it
The bootloader on all Xiaomi smartphones is locked by default. This is a security measure that prevents the installation of unofficial software. To flash the device manually, unlocking is mandatory - otherwise you will get an Anti-Rollback error or simply will not be able to boot into Fastboot mode.
The unlocking process involves several steps:
- Linking the Mi Account to the device (required! without this, unlocking is impossible).
- Submit an application via the official Mi Unlock Tool app.
- Waiting (usually 7-15 days, but can take up to 30 days for new accounts)
- Confirmation of unlocking via PC.
Important: Xiaomi has tightened its unlocking rules in 2023, and new accounts are required to:
- ๐ฑ Tie it down. SIM-card to device (minimum 30 days of active use).
- ๐ Confirm email and phone in Mi Account.
- ๐ก๏ธ Enable two-factor authentication.
โ ๏ธ Note: If you bought the phone with your hands and the previous owner did not untie his Mi Account, unlocking may not be possible.In this case, contact Xiaomi support with proof of purchase.
After successful unlocking, the bootloader will remain unlocked even after resetting, but the binding to the Mi Account is maintained, which means that after firmware, you may need to re-enter the login / password.
What happens if you flash a phone with a locked bootloader?
Firmware selection: official MIUI vs custom builds
Before you run the firmware, decide which version of the software you want to install. Each version has pros and cons:
| Type of firmware | Advantages | Deficiencies | Who's right for? |
|---|---|---|---|
| Official MIUI (Fastboot/Recovery) | Stability, support OTA-Updates, Warranty Retainment (if you flash through Mi Flash) | Many pre-installed applications, restrictions by region | For beginners who want to upgrade without risks |
| MIUI without Bloatware (e.g. MIUI EU) | Removed Chinese services, more settings, weekly updates | No official support, camera or NFC bugs are possible | For those who want a clean MIUI |
| Castom firmware (LineageOS, Pixel Experience, crDroid) | Maximum customization, close to Android stock, long-term support | Camera may not work, Widevine L1 (no Netflix in HD) no OTA | Enthusiasts willing to sacrifice stability for function |
For official firmware, use MIUI Downloads. Choose the version that corresponds to your region:
- ๐ Global - for international devices (Global suffix in the model).
- ๐ท๐บ Russia โ localized version with pre-installed Russian services.
For custom firmware, we recommend XDA Developers or 4PDA forums, but beware: some builds may contain spyware or be assembled based on leaked sources.
๐ก
Before downloading the firmware, check its hash amount (MD5 or SHA-256) using the HashMyFiles utility.
Firmware: Fastboot vs Recovery
There are two main methods of firmware Xiaomi: through Fastboot and through Recovery. the choice depends on the type of firmware and your goals:
1. Firmware via Fastboot (recommended for official builds)
This method involves a complete rewriting of all parts of the device, including boot, system and vendor.
- ๐ Brick recovery (if the phone is not turned on).
- ๐ฅ Installation of official firmware from scratch.
- ๐ Reset Anti-Rollback (if you have been sifting through a newer version) MIUI, more current).
To run through Fastboot, you will need:
- ๐ฅ๏ธ PC with installed drivers ADB/Fastboot and Mi Flash Tool.
- ๐ฆ Firmware in.tgz or.zip format (unpacked in a folder).
- ๐ Cable USB (preferably original to avoid breakages of the connection).
2. Firmware through Recovery (for updates and custom firmware)
This method is softer, and it doesn't affect user data (unless you choose Wipe Data).
- ๐ Updates to the current version MIUI.
- ๐ฒ Installation of custom firmware (required) TWRP Or OrangeFox Recovery).
- ๐ง Patch installations (e.g. Magisk for root rights).
Important: for firmware through Recovery, custom recovery is needed, as Xiaomi stock recovery blocks the installation of unsigned recoveries ZIP-file.
โ๏ธ Preparation for firmware through Fastboot
Step-by-step: how to flash Xiaomi through Fastboot
This method is suitable for installing official firmware or restoring the device.
- Install drivers and tools: Download Mi Flash Tool. Install ADB and Fastboot (or use Minimal ADB and Fastboot). Disable driver signatures in Windows (if you use unofficial drivers).
Connect your phone in Fastboot mode:
Turn off the device. Press Volume down + Power until the Fastboot logo appears. Connect to the PC.
Start the Mi Flash Tool:
Unpack the downloaded firmware in a folder without spaces and Cyrillic (for example, C:\MIUI\sweet_global_images_...). In Mi Flash, click Select and specify the path to the folder.
Select firmware mode:
There are three options at the bottom of the Mi Flash window:
- Clean all โ complete cleaning (recommended when changing the MIUI version).
- Clean all and lock โ Clean + lock the bootloader (dangerous if not sure!).
- Save user data โ data retention (not always stable)
- Start the firmware: Press Flash. It takes 5-15 minutes. Don't turn off the cable or interrupt the process!
- First run: After successful firmware, the phone will restart. The first run can take up to 10 minutes - don't panic.
Important: some custom firmware requires additional patches, such as the GCam Fix for Google Camera to run on POCO F3, and the DRM Fix patch for Widevine L1 (for Netflix to run in HD).
๐ก
If the mobile network does not work after installing custom firmware, check the APN settings or run the modem from stock firmware through TWRP.
Frequent mistakes and their solutions
Even with strict adherence to the instructions, errors can occur, and here are the most common ways to correct them:
| Mistake. | Reason. | Decision |
|---|---|---|
| This device is locked in Fastboot | The bootloader is not unlocked | Unlock the bootloader through the Mi Unlock Tool |
| Anti-Rollback | Trying to flash the old version of MIUI | Look for firmware with the Anti-Rollback patch or flash only newer versions |
| The phone does not turn on after the firmware | Incompatible firmware or interrupted process | Repeat the firmware through Fastboot with a full clean (Clean all) |
| E: Footer is wrong in TWRP | Damaged. ZIP-firmware | Download the firmware and check the hash amount |
| No network after firmware | No modem or incorrect APN settings | Scroll down vendor and firmware from stock firmware |
If your device has turned into a โbrickโ (no button response, no PC detection), try:
- ๐ Hard reset: press the Volume up + Power for 20-30 seconds.
- ๐ฅ๏ธ Firmware in EDL-Requires an authorized Xiaomi account and a special cable.
- ๐ ๏ธ If nothing helps, the eMMC chip may be damaged.