Entering the custom TWRP receptacles on Xiaomi smartphones is a key step for those who want to gain full control of the device, a special recovery environment that allows you to install informal firmware, back up Nandroid, recover data and even bypass some system limitations. However, the process requires preliminary preparation: without an unlocked bootloader and properly installed TWRP, all attempts will be useless.
In this article, we will discuss all the steps from unlocking the bootloader to directly entering the Recovery, including the nuances for different Xiaomi, Redmi and POCO models. Particular attention will be paid to the typical errors that lead to a device "brick" and how to avoid them. If you are a beginner, we recommend you to carefully follow the instructions and not miss the steps - each of them is important for a successful result.
What is TWRP and why is it necessary for Xiaomi?
TWRP (Team Win Recovery Project) is an open source custom recovery that replaces the standard MIUI recovery menu.
- π¦ Install unofficial firmware (Custom ROM): LineageOS, Pixel Experience, HavocOS and others.
- π Create and restore complete system backups.
- π§ Removal of system applications, modification of /system section without root rights.
- π οΈ Correcting errors after failed firmware (e.g. bootloop).
- π Unlock additional features hidden in the standard MIUI.
Without TWRP, many Xiaomi operations are simply impossible, such as if you want to put Google Camera (GCam) on a model without official support or remove embedded Chinese services, this recovery will be your main tool, but it is important to understand that installing it will void the warranty and can lead to data loss if security rules are not followed.
β οΈ Warning: On devices with a locked bootloader, logging into TWRP is not possible. Attempts to circumvent this limitation software (e.g., via fastboot boot twrp.img) result in an automatic reboot to the standard backpack MIUI.
Preparation of the device: unlocking the loader
The first and mandatory step is to unlock the bootloader. Xiaomi blocks the bootloader on all devices by default, and without it unlocking, TWRP installation is impossible. The process takes 3 to 30 days (depending on Xiaomi's policy) and requires an association of the Mi Account to the device.
Instructions for unlocking:
- Activate Developer Mode: Go to Settings β About Phone β MIUI Version and tap it 7 times.
- Enable OEM Unlock and USB Debugging in Settings β Additional β For Developers.
- Link your Mi Account to your device in Settings β Xiaomi Account β Mi Cloud.
- Download the Mi Unlock Tool utility from the official website and run it on PC.
- Connect your phone in fastboot mode (turn off the device, then press Volume Down + Power).
- In the Mi Unlock utility, log in under the same Mi Account as on your phone and follow the hints.
You'll have to wait until you send the unlock request, you can check the status on the same utility, and when the bootloader is unlocked, you'll see the Unlocked successfully message.
β οΈ Warning: On some models (Xiaomi 12T, Redmi Note 11 Pro+ and later), unlocking may require additional confirmation via SMS or email.
βοΈ Preparation for unlocking the loader
Installation of TWRP on Xiaomi: version selection and methods
After unlocking the bootloader, you can start installing TWRP. It is important to choose the right version of the backpack for your model - incompatible firmware can lead to hard brick (irreparable damage).
Where to download TWRP:
- π The official website TWRP is a proven build for popular models.
- π Forum XDA Developers are informal ports for new devices (e.g., Xiaomi 13 or POCO F5).
- π Developer Telegram channels (e.g., @xiaomi_twrp) are current versions with support for the latest updates MIUI.
Methods of installation:
| Method | Description | Pluses | Cons |
|---|---|---|---|
| fastboot flash recovery | Firmware through the command line in fastboot mode. | Reliable, works on 90% of models. | It requires PC and ADB/Fastboot drivers. |
| fastboot boot twrp.img | Temporary launch of TWRP without firmware. | It does not affect system sections. | After the reboot, the standard recaveri will return. |
| Through the TWRP Manager app | Installation directly from the phone (requires root). | Convenient for experienced users. | It does not work on new models with Dynamic Partition. |
The recommended method for most users is to run firmware through fastboot.
fastboot flash recovery twrp-3.7.0_12-1-xiaomi-codename.img
fastboot reboot recoveryAfter these commands are executed, the phone should automatically restart to TWRP. If this does not happen, try manually going to the recaveri (see the next section).
π‘
Before you run TWRP, check your model name in Settings β About Phone β Device Model. For example, the Redmi Note 10 Pro may have either sweet or sweetin encoding β this is important for choosing the right version of the recovery.
How to log into TWRP on Xiaomi: ways to log in
Once the TWRP is successfully installed, you just have to go into it, and there are a few ways to do that, depending on the state of the device:
- π Hardware: Turn off the phone, then press Volume up + Power and hold for 5-10 seconds until the TWRP logo appears.
- π₯οΈ Through ADB: If the phone is on, connect it to the PC and execute the command: adb reboot recovery
- π± Through Terminal: On the root-righted phone, type: su -c "reboot recovery"
- π§ Through apps: Apps like Quick Reboot (requires root) can reboot the device directly to the recave.
If after installing TWRP, the phone still loads into a standard MIUI recavator, then:
- You've stitched the wrong version of TWRP (check model compatibility).
- The device activated anti-rollback protection (relevant for Xiaomi on Android 10+).
- You didnβt wait for the full firmware in fastboot (the process should end with OKAY message).
β οΈ Warning: Some models (Xiaomi 11T, POCO F4) may need to enter a password from your Mi Account after you log in to TWRP, even if you have already unlocked the bootloader. If you forget your password, restore it before you start the procedure.
What if TWRP is running but not running?
Common mistakes and their solutions
Even experienced users face problems when working with TWRP on Xiaomi. Letβs consider the most common errors and ways to fix them:
| Mistake. | Reason. | Decision |
|---|---|---|
| Failed to mount /data (Invalid argument) | Encrypted /data (relevant for Android 10+) | Enter your password/pattern lock into TWRP or format /data (data loss!). |
| This package is for "xiaomi,codename" devices; this is a "". | Incompatible version of TWRP or firmware. | Check the model encoding and download the correct version of the Recovery. |
| The phone is loaded into fastboot after TWRP firmware is installed. | Boot partition is damaged or anti-rollback protection is activated. | Sweep the original boot.img from stock firmware through fastboot flash boot.img. |
| TWRP doesn't see internal memory. | F2FS file system or damaged partitions. | Switch to EXT4 in TWRP settings or reflash the Recovery. |
If the phone stops turning on (black screen or bootloop) after installing the TWRP, don't panic. In most cases, the device can be restored:
- Connect your phone to your PC in fastboot mode (clip Volume Down + Power for 10 seconds).
- Sweep through the original firmware via the Mi Flash Tool (select Clean All option).
- If fastboot is not defined, use EDL mode (requires an authorized Xiaomi account).
π‘
The most common mistake when working with TWRP on Xiaomi is ignoring the firmware version. If you upgraded MIUI over OTA after installing the recovery, TWRP may stop working. Always check for version compatibility!
Additional TWRP settings for Xiaomi
After first logging in to TWRP, it is recommended to perform several important settings to avoid problems in the future:
- π Turn off signature verification: Go to Settings β Disable DM-Verity (prevents bootloop after system modifications).
- π Configure backup: In the Backup section, select the Boot, System, Data and EFS partitions (stores IMEI!).
- π Install Magisk for root rights: Download the latest version of Magisk and run it through Install β Select Zip.
- π§ Check the file system: If TWRP doesn't see files, switch to EXT4 in Wipe β Format Data β Change File System.
For devices with Dynamic Partition (e.g. Xiaomi 12, Redmi K50), standard backup methods may not work.
- Use TWRP with dynamic support (e.g., OrangeFox versions).
- Create backups only critical sections: boot, dtbo, vendor.
- For a full backup, use ADB Backup or specialized utilities like DD.
If you plan to install custom firmware, check out the requirements first. Some Custom ROMs (like LineageOS) require additional firmware files, such as vendor.img or firmware.zip.
π‘
To avoid data loss when experimenting with firmware, keep backups on an external memory card or PC. The EFS section (contains IMEI) is especially important - its damage can deprive you of your mobile network!
TWRP Compatibility with New Xiaomi Models (2023β2026)
With the release of Android 13/14 and new devices (Xiaomi 14, Redmi Note 13, POCO X6), installing TWRP has become more difficult due to:
- π Anti-rollback protection that blocks rollbacks on older firmware versions.
- π¦ Dynamic Partition that changes the structure of system partitions.
- π New Signature Verification Mechanisms (AVB 2.0)
Current solutions for new models:
| Model | TWRP status | Recommendations |
|---|---|---|
| Xiaomi 14 / 14 Pro | β No official. TWRP | Use OrangeFox Recovery or wait for ports from the community. |
| Redmi Note 13 Pro+ | β οΈ Partial support | Switch only through fastboot boot, without writing to the recovery section. |
| POCO F5 / F5 Pro | β Full support | Download TWRP with XDA (versions from mauronofrio). |
| Xiaomi 13T / 13T Pro | β οΈ Requires a patch | After the TWRP firmware is installed, you must manually disable the DM-Verity. |
For devices without official TWRP alternatives:
- π§ OrangeFox Recovery is a fork TWRP with advanced features (supports Dynamic Partition).
- π§ PitchBlack Recovery is optimized for the new Qualcomm and Mediatek chipsets.
- π§ Temporary launch via fastboot boot twrp.img (without firmware in partition).
Before experimenting with new models, check the reviews on forums (XDA, 4PDA). Some devices (such as Xiaomi 12S Ultra) have hardware locks that are not yet bypassed even by experienced developers.