Installing custom TWRP on Xiaomi smartphones gives you access to advanced features from system backup to unofficial ROM firmware. However, the process requires accuracy - an error at any stage can turn a device into a "brick." In this article, we will discuss legal ways to download TWRP, check compatibility with your Xiaomi model, as well as the nuances of unlocking the bootloader, without which installation is impossible.
Xiaomi devices feature a closed bootloader by default, which makes it difficult to work with custom firmware. We will explain in detail how to circumvent this restriction without violating the warranty (if it is still valid), and where to download official TWRP builds, not fake files with viruses. You will also learn how to check the integrity of the downloaded image and avoid common errors like Invalid image format or hanging on the Mi logo.
Why TWRP and not standard Recovery?
Stock recovery on Xiaomi limits the user to basic functions: reset to factory settings, clear cache and update via update.zip. TWRP (Team Win Recovery Project) offers:
- π¦ Full backup of all partitions, including data, boot and system.
- π§ Installation of custom firmware (LineageOS, Pixel Experience, MIUI Pro and others.).
- π The possibility of βrollbackβ to the previous version of the firmware, if the new one is unstable.
- π οΈ Access to the file system through ADB or MTP straight out of the river.
- π Bypassing lockdown FRP (If you forget your Mi Account).
Important: TWRP doesn't automatically give root rights -- it's a separate procedure (Magisk installation), but without custom recavers, it's almost impossible to get a root on modern Xiaomi.
Preparation: unlocking the bootloader on Xiaomi
Without an unlocked bootloader, installing TWRP is impossible, which is Xiaomiβs main difference from most Android devices, which takes up to 72 hours and requires a Mi Account to be linked to the device.
Steps to unlock:
- Link your Mi Account to your phone in Settings β Xiaomi account.
- Activate Developer Options: Go to Settings β About Phone and click on MIUI 7 times.
- In Developer Options, enable OEM Unlock and USB Debugging.
- Download the Mi Unlock Tool (only official website!).
- Connect your phone to your PC in Fastboot mode (clip Volume Down + Power when the device is off).
- Launch the Mi Unlock Tool and follow the instructions. The waiting time depends on Xiaomiβs policy (usually 3-5 days).
β οΈ If you see a "Couldn't unlock" or "Device not bound" error, check it out:
- π Mi Account is tied to phone for at least 30 days (new rule from 2023).
- π± The device is not linked to another account (for example, after purchasing a used account).
- π₯οΈ You're using the original. USB-cable (cheap cables often donβt transmit data to Fastboot).
βοΈ Checking before unlocking
Where to download the official TWRP for Xiaomi?
The only reliable source is the official TWRP website. Avoid third-party resources: even on popular forums (4PDA, XDA) there are modified builds with backdoors.
How to find the correct version:
- Go to the device page and type in the Xiaomi model (like the Redmi Note 10 Pro or Poco X3 Pro).
- Download a file with the.img extension (for example, twrp-3.7.0_12-0-joyeuse.img).
- Check the hash amount of the file (usually listed on the download page) through the sha256sum utility:
sha256sum twrp-3.7.0_12-0-joyeuse.img| Xiaomi model | Code name | The latest version of TWRP | Download link |
|---|---|---|---|
| Redmi Note 11 Pro+ 5G | peux | 3.7.0_12-0 | Download |
| Poco F4 | munch | 3.7.0_11-0 | Download |
| Xiaomi 12T Pro | diting | 3.6.2_11-0 | Download |
| Redmi 10 | selene | 3.6.1_11-0 | Download |
If your model is not on the TWRP site, check out the informal builds on XDA Developers, but only in themes marked [OFFICIAL] or [UNOFFICIAL] [STABLE].
π‘
Use the ADB Fastboot Tools utility to automatically check for TWRP compatibility with your Xiaomi model.
Install TWRP via Fastboot: step-by-step instructions
Before installation, it is necessary to:
- π Charge your phone to at least 70%.
- π Create a backup of important data (installation) TWRP Erase data on some models).
- π₯οΈ Install. ADB and Fastboot on PC.
Instructions:
- Move the downloaded twrp-*.img file to the folder with the platform-tools.
- Open the command line in this folder (Shift + PCM β Open in the terminal).
- Transfer your phone to Fastboot mode:
adb reboot bootloader- Check the connection of the device:
fastboot devices(The serial number of the phone must be displayed.)
- Install TWRP temporarily (for the test):
fastboot boot twrp-3.7.0_12-0-joyeuse.imgIf the recavΓ©ry is started, you can install constantly:
fastboot flash recovery twrp-3.7.0_12-0-joyeuse.imgβ οΈ Note: On some Xiaomi models (e.g. Redmi Note 12), stock recaps overwrite TWRP When you first restart, to avoid this, go to the TWRP β Advanced β Flash Current TWRP.
What happens if TWRP doesnβt start?
Typical errors and their solutions
Even with the exact following of the instructions, there are possible failures.
| Mistake. | Reason. | Decision |
|---|---|---|
| FAILED (remote: 'Not allowed in Locked State') | The bootloader is not unlocked | Repeat the unlocking procedure with the Mi Unlock Tool |
| Invalid sparse file format at header | TWRP file damaged | Download the image again, check the hash sum |
| The phone is stuck on Mi Logo after installation | Incompatible version of TWRP | Hold Power + Volume Up for 10 Seconds for Forced Reboot |
| E: Unable to mount /data | FBE (File-Based Encryption) | Enter the screen lock password in TWRP or format data |
If the phone does not boot into the system after installing TWRP, try:
- π Refuse the stock Recovery through Fastboot, then repeat the installation TWRP.
- π± Restore stock firmware through Mi Flash Tool (instructions on the official website).
- π¬ Contact the forum XDA model and precise error.
π‘
If TWRP doesnβt see internal memory, the reason is most often FBE encryption. Solution: enter the screen lock password in the Mount menu or format the data partition (data will be lost!).
How to upgrade TWRP to Xiaomi?
Recavery update is recommended when:
- π Emergence of bugs (for example, data is not mounted).
- π Install a new custom firmware that requires a fresh version TWRP.
- π‘οΈ Removing vulnerabilities (rarely, but sometimes).
Refreshment methods:
- Through TWRP itself: Download a new.img file to your phone. Download to TWRP, select Install β Install Image. Specify the path to the file and select Recovery. Confirm the firmware and restart.
- Through Fastboot: Repeat the steps from the Installation section, but with a new file.
After the update, check whether the backup and partition mounting work. If the new version is unstable, roll back to the previous one.