Introduction: why do you need to reflash through the Recovery
Reflashing Xiaomiโs smartphone through recovery mode is one of the most reliable ways to update or restore a system when standard methods donโt work. Unlike upgrading through Settings โ About Phone โ System Update, this method gives you complete control over the process, allows you to install custom firmware and fix critical errors.
The main reasons why users resort to flashing through the recavator: exiting the โbrickโ (inoperable state), removing the bloatware (pre-installed applications), switching to the global version of MIUI from Chinese, or installing alternative firmware like LineageOS or Pixel Experience. However, the process requires accuracy - an error at any stage can lead to data loss or device failure.
In this article, we will discuss two scenarios: firmware through stock Mi Recovery (official recovery mode) and TWRP (castomy recovery with advanced features). Both methods have their own characteristics, and the choice depends on your Xiaomi model and firmware goals.
Preparation of the device: what to do before the firmware
Before you start flashing, you need to follow a few critical steps, neglecting them can lead to the inability to recover data after a reset or even to software damage to the device.
First, back up all your important data. Recovery firmware requires, in most cases, a wipe of /data, which means loss of photos, contacts, messages, and installed applications. Use Mi Cloud, Google Drive, or local copying on your PC.
- ๐ฑ Contact (export to) VCF-file via the Contacts app)
- ๐ธ Photo and video (copy folder) DCIM computer)
- ๐ Passwords and tokens (save data from accounts, two-factor authentication)
- ๐ฎ Save games (use cloud services like Google Play Games)
The second is to check the firmware compatibility with your model. Installing an inappropriate MIUI or custom firmware version can result in bootloop or sensor failure. The model name can be found in Settings โ Phone โ Model or on a sticker under the lid (for removable battery devices). For example, the Redmi Note 10 Pro has the code name sweet, and the POCO X3 Pro is vayu.
โ ๏ธ Note: If your device is locked through Mi Account (Xiaomi account), unlock it before firmware.In some cases, after installing a new firmware, you may need to re-authorize, and without access to the account, the phone will become a brickยป.
Three, charge the battery at least 60 percent, and it can take 10 to 40 minutes to run the firmware, and it's almost guaranteed that the battery will fail.
- ๐ Original. USB-cable (cheap cables can interrupt data transmission)
- ๐ป Computer with Windows/Linux (unlocking the loader or installation TWRP)
- ๐ Firmware file in.zip format (for TWRP) or.tgz (for Mi Recovery)
โ๏ธ Checklist before firmware
Firmware selection: official MIUI vs custom builds
The type of firmware that determines not only the functionality of the device, but also the method of installation.
| Type of firmware | Advantages | Deficiencies | Recavery required |
|---|---|---|---|
| Official MIUI (Global/Chinese) | Stability, support OTA-Updates, all functions are working | Bloatware, Restrictions on Regional Functions | Mi Recovery or TWRP |
| MIUI EU (unofficial) | Advertising-free, advanced settings, weekly updates | No official support, possible bugs | TWRP |
| Castomium (LineageOS, Pixel Experience) | Pure Android, long-term support, no MIUI | The camera, NFC, Widevine L1 may not work | TWRP |
| Port from another device | Unique features (e.g. MIUI 14 on older models) | High risk of incapacity, iron bugs | TWRP |
For most users, the best choice will be the official global firmware (for example, the most popular, miui_SWEETGlobal_V14.0.2.0.TKFMIXM_... For the Redmi Note 10 It can be downloaded from the official Xiaomi website or through tools like Xiaomi Firmware Updater. If you need custom firmware, we recommend you to consult trusted sources:
- ๐ MIUI EU โ xiaomi.eu
- ๐ค LineageOS โ lineageos.org
- ๐ฑ Pixel Experience โ pixelexperience.org
Note the firmware version of Android. For example, if your device originally ran on Android 11 and youโre trying to install firmware on Android 13, you may need to upgrade pre-update via fastboot or a special anti-rollback patch.
๐ก
If you are installing custom firmware for the first time, select an assembly marked "Stable" or "Official." Experimental versions ("Beta", "Nightly") may contain critical bugs.
Installation TWRP: when without custom recavery can not do
Stock Mi Recovery is very limited: it does not allow you to install informal firmware, make full backups or modify system partitions. TWRP (Team Win Recovery Project โ custom recovery with advanced features.
The TWRP installation process depends on the device model and bootloader status:
- Unlock the bootloader through the Mi Unlock Tool (requires a tied Mi Account and wait 7-30 days for new accounts).
- Download the TWRP image for your model from the official website twrp.me.
- Install. TWRP Fastboot: Fastboot Flash Recovery twrp-3.7.0_12-0-sweet.img fastboot boot twrp-3.7.0_12-0-sweet.img
Once installed, immediately back up the current firmware in TWRP (Backup section) by selecting Boot, System, Data, and Vendor partitions to help restore the device in case of an error.
โ ๏ธ Note: Some Xiaomi models (e.g. Redmi Note 11 or X-ray) POCO F4) The scaling machine automatically replaces TWRP To avoid this, after installation, TWRP Go to it immediately and turn off the firmware signature check (in the settings) TWRP Find Disable DM-Verity or Force Encryption).
If you plan to install custom firmware, you may need to flash Disable Force Encrypt (to disable forced encryption) or Magisk (to obtain root rights), which usually come as separate.zip archives and are installed via TWRP after the main firmware.
What happens if TWRP doesnโt start?
Firmware through Mi Recovery: step-by-step instructions
If you're installing official MIUI firmware and you're not planning customizations, you can do with stock recavers, which are simpler and safer, but have limitations:
- โ Suitable only for official firmware in.tgz or.zip format.
- โ Does not allow custom kernels or modifications to be installed.
- โ There is no way to make a full backup system.
Steps of firmware through Mi Recovery:
- Download the firmware from the official Xiaomi website and rename the file to update.zip (for convenience).
- Transfer the file to the root of the internal memory or to the SD-map.
- Load into the receptacle: Turn off the device. Press Volume up + Power and hold for 5-10 seconds.
Choose a language
Install update.zip
Wait for completion
Reboot to System
If the firmware requires a Wipe, Recovery will prompt it to do so automatically. In most cases, a Cache and Dalvik Cache reset is enough, but switching to another version of Android (for example, 11 to 12) may require a full Wipe Data reset.
โ ๏ธ Note: On some devices (e.g. Xiaomi) 12T or POCO F5) Stock recavators block installation of firmware with Downgrade status. If you're trying to roll back to an older version. MIUI, Use fastboot or TWRP.
After successful firmware, it can take up to 10 to 15 minutes to turn on, which is normal. If the device has been stuck on the logo for longer than 20 minutes, try rebooting the recavator and making a Wipe Cache.
๐ก
Stock Mi Recovery is only suitable for official firmware. For custom solutions or backups, be sure to install TWRP.
Firmware through TWRP: advanced features
Installing firmware through TWRP gives you more control, but it takes care. Here's a step-by-step process:
File preparation:
- Download the firmware in.zip format (for example, miui_SWEETEEAGlobal_V14.0.1.0.TKFEUXM_...).
- If you are installing custom firmware, check for GApps (Google services) and Magisk (root).
- Transfer all files to SD-card or internal memory (Download folder).
2. Download to TWRP:
- Turn off the device.
- Press Volume Up + Nutrition (on some models โ Volume Up + Volume Down + Nutrition).
- If the device is loaded into a stock Recovery, use the command: fastboot boot twrp.img
Installation of firmware:
- In TWRP, click Install and select the firmware file.
- Add GApps and Magisk (if needed) through Add more Zips.
- Swipe to confirm Flash (Swipe to confirm Flash).
Clearing the cache:
- After installation, press Wipe cache/Dalvik.
- If the firmware requires a complete reset, select Format Data (Warning: This will delete all user data!).
5. Reboot:
- Press Reboot System.
- If TWRP offers to install the TWRP App, refuse (it is not necessary).
The first run after firmware through TWRP can take up to 20 minutes. If the device is getting stuck on the screensaver, try:
- ๐ Reboot to Recavator and Repeat Wipe Cache.
- ๐ง Check firmware compatibility with the device model.
- ๐ฅ Refuse to use fastboot (if you have a fastboot) TWRP wrong).
๐ก
If your mobile network is not working after you have firmware customized, check your APN settings or install a patch for your modem (see 4PDA or XDA forums).
Common mistakes and their solutions
Even with the correct following of the instructions, there can be problems, and letโs consider the most common errors and ways to correct them:
| Mistake. | Reason. | Decision |
|---|---|---|
| Error 7 in TWRP | Incompatibility of the firmware with the device | Check the code name of the model and download the correct version of the firmware |
| Failed to mount /data | Encryption of the data section | In TWRP: Wipe โ Format Data โ Enter โyesโ |
| Hanging on the MI logo | Incomplete cache cleaning or firmware error | Download to the Recavator and make Wipe Cache + Wipe Dalvik |
| Mi Account locked | The device is tied to the Xiaomi account | Unblock your account before firmware or use an official deletion tool |
| DM-Verity corruption | Violation of system integrity | Disable DM-Verity via TWRP |
If the device doesnโt turn on after a failed firmware (brick), try the following steps:
- Check the battery charge โ plug the charger in for 30 minutes.
- Try booting up to fastboot (click Volume Down + Power).
- Flush stock firmware through Mi Flash Tool: miflash.exe refresh miflash.exe flash_all_lock.bat
For complex cases (for example, if the device is not determined by the computer), testpoint (closing contacts on the board for forced transition to the computer) may be required. EDL-This procedure is risky and requires experience - it is better to contact the service center.