TWRP (Team Win Recovery Project) is an indispensable tool for Xiaomi smartphone owners who want to gain full control of their device, which can install unofficial firmware, backup systems, restore data and even βreanimateβ the phone after unsuccessful experiments. However, the entry into TWRP on Xiaomi devices has its own peculiarities β from the mandatory unlock of the bootloader to specific key combinations for different models.
Many users face problems when you first try to enter a custom recavator: the phone does not respond to buttons, encryption errors occur or the device simply loads into the standard Mi Recovery. In this article, we will analyze all the current ways to log into TWRP on Xiaomi, including the nuances for new models with HyperOS, and give recommendations for eliminating typical errors. Particular attention to security β improper actions can lead to a βbrickβ (complete failure) of the device.
If you're just starting out with the custom firmware world, start with the preparation section. Power users can jump right into how to sign in to TWRP or fix bugs.
What to do before entering TWRP Recovery
Before trying to log into TWRP, make sure your device is ready for it.Missing at least one of the preparation stages can result in your phone being locked or data being lost.
First and most important, bootloader unlocking. Xiaomi blocks custom recavators by default, so without this procedure, TWRP entry will be impossible. Unlocking takes 3 to 360 hours (depending on Xiaomi policy) and requires you to link your Mi Account to the device. Detailed instructions for unlocking can be found on the official website en.miui.com/unlock.
The second is to check the version of TWRP installed on your device. The older version of the recovery may not support current MIUI or HyperOS firmware, which will lead to download errors. Fresh TWRP builds for Xiaomi can be downloaded from the project's official website: twrp.me. Pay attention to the code name of your model (for example, raphael for Redmi K20 Pro or alioth for Poco F3).
- π Unlock the bootloader through the Mi Unlock Tool (required!).
- π± Find out the code name of your Xiaomi model (for example, surya for Poco) X3).
- π Update. TWRP Up to the latest version compatible with your firmware.
- π Charge your phone at least 50% β discharge during manipulation with the recaveri can lead to failure.
β οΈ Note: If you have installed TWRP via fastboot, but the phone still loads into the standard recavery, check if the custom recavery has dropped after the update. MIUI. In that case, it will have to be re-installed.
All ways to log in to TWRP Recovery on Xiaomi
There are three main methods of downloading to TWRP on Xiaomi smartphones, and the choice of method depends on the model of the device, the version of the firmware and the current state of the system (whether it works or the phone is βblockedβ).
1. button combination (hardware method)
The most versatile method, which works on 90% of Xiaomi devices, is suitable for phones with an unlocked bootloader and TWRP installed.
Instructions:
- Turn off the phone (if it freezes, press the power button for 10-15 seconds).
- Click the combination: For most models: Volume up + Power. For older devices (until 2018): Volume up + Volume down + Power. For Poco F1 and some others: Volume down + Power (after vibration, release power by holding volume).
TWRP
(usually 5-10 seconds).
If the phone loads into Mi Recovery after holding the buttons, then the TWRP is not installed or reset after the update. In this case, move to method 2 or 3.
2. Command via ADB (for a running system)
If the phone turns on and you have access to Developer Settings, you can boot into TWRP via the ADB command. This method is useful if the hardware buttons don't work.
Instructions:
- Enable USB Debugging in Settings β About Phone β MIUI version (click 7 times, then go back to Additional Settings β For Developers).
- Connect the phone to the PC and confirm the debugging permission.
- Open the command line (Windows) or terminal (Linux/macOS) and type adb reboot recovery.
If the command doesnβt work, try an alternative:
adb shell reboot recovery3. via Fastboot (if the phone doesn't boot)
If the device doesnβt turn on or is stuck on the logo, but the bootloader is unlocked, you can boot into TWRP via fastboot mode.
Instructions:
- Turn off the phone and press Volume Down + Power to log in to fastboot.
- Connect the device to your PC and type the command: fastboot boot twrp.img (where twrp.img is the recovery image file for your model).
- If you need to load constantly in TWRP, install it in the recovery: fastboot flash recovery section twrp.img
βοΈ Checking before entering TWRP
| Xiaomi model | Code name | Button combination for TWRP | Features |
|---|---|---|---|
| Redmi Note 10 Pro | sweet | Volume up + Nutrition | On HyperOS, you may need to disable AVB. |
| Poco F3 | alioth | Volume up + Nutrition | After the update, MIUI TWRP is reset. |
| Xiaomi Mi 11 | venus | Volume up + Nutrition | Requires deactivation of dm-verity to avoid bootloop. |
| Redmi 9T | lime | Volume up + Nutrition | On some firmware, you need to hold the buttons for up to 15 seconds. |
β οΈ Note: On HyperOS devices (e.g. Xiaomi) 13/14, Redmi Note 13) entrance TWRP This can be blocked due to the new Dynamic Partition protection mechanism, which requires a patched DM-verity Recovery.
Typical TWRP login errors and their solutions
Even with the right TWRP installation, users often face problems, and let's look at the most common errors and how to fix them.
1.The phone is loaded into Mi Recovery instead of TWRP
This happens if:
- π TWRP dropped off after the update MIUI/HyperOS (The system overwrites the recovery section).
- π§ Incorrectly installed Recovery (for example, for another model).
- π The bootloader is locked (even if it was previously unlocked).
Decision:
- Reinstall TWRP via fastboot (see Method 3 in the previous section).
- Check the status of the bootloader by command: fastboot oem device-info (the line Device unlocked: true must be).
- If TWRP resets again after reinstalling, turn off automatic recover updates in MIUI settings.
2. Unable to mount /data error or password request
This problem is related to the encryption of the data partition (/data). Xiaomi by default encrypts user data, and TWRP can not mount it without a key.
Decisions:
- π Enter the password/pattern lock you used in the system (if requested).
- π Format the data in TWRP (All user content will be removed!: TWRP Go to Wipe. β Format Data. Enter yes for confirmation. Reboot to the reclaimers and check the mounting.
TWRP
FBE
What to do if you forget your encryption password?
3. Black screen or hanging on the TWRP logo
This problem most often occurs on new Xiaomi models with HyperOS or firmware based on Android 13/14.
- π§ Incompatible version TWRP core-system.
- π‘οΈ Active protection AVB (Android Verified Boot).
- π Damaged file of Recaveri image.
- Install a survival script TWRP: Some custom firmware (e.g. Pixel Experience or LineageOS) include scripts that protect the user. TWRP You can also manually write a command to init.d: echo "SETTINGS: system_update_recovery=false" >> /data/property/persist.sys.settings_global.xml
- Use Magisk for protection: The TWRP A/B Retainer module for Magisk prevents resetting on A/B-partition devices (e.g. Xiaomi 12/13/14).
β οΈ Please note: If you see this message MIUI version cannot be installed on this device when trying to flash the official firmware through TWRP, This means that the version MIUI Download the correct firmware from the official website, checking the code name of the device.
π‘
If the phone doesnβt boot even to fastboot, donβt try to stitch it through informal tools (like the SP Flash Tool for Mediatek).This can permanently damage the bootloader and make recovery impossible without specialized hardware.
Additional tips and life hacks for working with TWRP
Working with TWRP on Xiaomi has many nuances that can save time and nerves. Here are some useful recommendations:
- π± Create a backup before any manipulations: TWRP Go to Backup and save the Boot, System, Data and Vendor partitions. Store a copy on your PC or cloud β if you crash, this will allow you to quickly restore your phone.
- β‘ Use it. OTG-drive: If internal memory is not mounted, connect the flash drive through OTG-And you can copy the firmware or backup onto it. TWRP The flash drive will be available in the Mount section β USB-OTG.
- π Set up autoload in TWRP: If you often need to download to the recavator, install the Quick Reboot app from the Play Market (root rights required). TWRP single-stack.
- π‘οΈ Disable Forced Encryption: Some Firmware Xiaomi Includes Forced Encryption That Interrupts Operation TWRP. To turn it off, run through the Recovery ZIP-file disable_forceencrypt.zip (available XDA).
If youβre experimenting with firmware often, consider installing MultiROM β this will allow you to have multiple systems on the same device and switch between them via TWRP. However, keep in mind that Xiaomi with Dynamic Partition (such as Xiaomi 13 Ultra) does not support MultiROM without additional manipulation.