How to go to the custom TWRP recavator on Xiaomi: a complete guide with unlocking the bootloader

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.

πŸ“Š What are you setting up for? TWRP Xiaomi?
Installation of custom firmware
Backup of data
Removal of system applications
Correction of errors after firmware
Other

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:

  1. Activate Developer Mode: Go to Settings β†’ About Phone β†’ MIUI Version and tap it 7 times.
  2. Enable OEM Unlock and USB Debugging in Settings β†’ Additional β†’ For Developers.
  3. Link your Mi Account to your device in Settings β†’ Xiaomi Account β†’ Mi Cloud.
  4. Download the Mi Unlock Tool utility from the official website and run it on PC.
  5. Connect your phone in fastboot mode (turn off the device, then press Volume Down + Power).
  6. 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

Done: 0 / 5

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:

MethodDescriptionPlusesCons
fastboot flash recoveryFirmware through the command line in fastboot mode.Reliable, works on 90% of models.It requires PC and ADB/Fastboot drivers.
fastboot boot twrp.imgTemporary launch of TWRP without firmware.It does not affect system sections.After the reboot, the standard recaveri will return.
Through the TWRP Manager appInstallation 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 recovery

After 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:

  1. You've stitched the wrong version of TWRP (check model compatibility).
  2. The device activated anti-rollback protection (relevant for Xiaomi on Android 10+).
  3. 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?
If the fastboot flash recovery command does not boot into TWRP, try: 1. Swipe the receivers into both slots (A and B) for Dynamic Partition devices: fastboot flash recovery twrp.img fastboot flash recovery_b twrp.img 2. Disable signature verification in TWRP (if there is a Disable DM-Verity option). 3 Install Magisk to bypass the constraints MIUI on new firmwarewarewareware.

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:

  1. Connect your phone to your PC in fastboot mode (clip Volume Down + Power for 10 seconds).
  2. Sweep through the original firmware via the Mi Flash Tool (select Clean All option).
  3. 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.

  1. Use TWRP with dynamic support (e.g., OrangeFox versions).
  2. Create backups only critical sections: boot, dtbo, vendor.
  3. 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:

ModelTWRP statusRecommendations
Xiaomi 14 / 14 Pro❌ No official. TWRPUse OrangeFox Recovery or wait for ports from the community.
Redmi Note 13 Pro+⚠️ Partial supportSwitch only through fastboot boot, without writing to the recovery section.
POCO F5 / F5 Proβœ… Full supportDownload TWRP with XDA (versions from mauronofrio).
Xiaomi 13T / 13T Pro⚠️ Requires a patchAfter 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.

FAQ: Frequent questions about TWRP on Xiaomi

Can I install TWRP without unlocking the bootloader?
No, on all modern Xiaomi devices (after 2016), the bootloader is locked. Any attempts to flash TWRP without unlocking will automatically reboot to the standard recave. The only exception is a temporary launch via fastboot boot twrp.img, but after the restart, the changes will not persist.
Why does the TWRP phone not boot after installation?
Most likely reasons: You've stitched an incompatible version of TWRP (check model encoding). Boot section is damaged - run the original boot.img from stock firmware. Anti-rollback protection is activated - you need to roll back to an older version of MIUI. Conflict with Magisk or other modifications - try flashing a clean TWRP without additional modules. Use Mi Flash Tool in Clean All mode to restore.
How to backup TWRP if you can’t see the internal memory?
If TWRP doesn't see files in internal memory, the cause is usually: Encrypted partition /data (enter password to TWRP); damaged file system (switch to EXT4 in settings); no drivers for F2FS in your version of the recovery; Solutions: Connect an external memory card and save a backup to it. Use ADB Pull to copy data to PC: adb /sdcard/TWRP/BACKUPS Prosheet [PH0007 pull] with support for F2FS version of Orange.
Can I upgrade MIUI with OTA with TWRP installed?
Technically yes, but highly discouraged.Update MIUI through OTA Rewrite the recovery section, and TWRP It's going to be lost, and new versions are going to be lost. MIUI They may contain patches that block custom Recovery (e.g. anti-rollback). If you need to upgrade: Download the full firmware package (.tgz) from Xiaomi. TWRP (Remove the lines from recovery in updater-script. TWRP.
How to remove TWRP and return standard recap?
To return the original MIUI reclaim: Download the stock firmware for your model from Xiaomi. Unpack the archive and find the recovery.img file.Sweat it through fastboot: fastboot flash recovery recovery.img Reboot the phone to standard reclaimer (Loudness up + Power).If you want to return the phone to a full stock state (for example, for warranty repair), use the Mi Flash Tool with the Clean All option.