How to go to TWRP on Xiaomi: a complete guide to unlock the bootloader

Xiaomi smartphone owners often face the need to install custom TWRP recavator β€” a powerful tool for backing up, firmware modified OS or restore the system after failures. However, logging into TWRP on Xiaomi devices requires preliminary preparation: unlocking the bootloader, installing the recavator itself, and using button combinations correctly. Without these steps, trying to log into TWRP leads to standard Mi Recovery or even loading errors.

In this article, we will look at the whole process from A to Z, from checking the status of the bootloader to alternative ways to log into TWRP on models with a locked bootloader, and focus on typical errors (for example, Fastboot mode instead of a recovery) and how to fix them, if you plan to flash LineageOS, do a NANDroid backup or just experiment with the system, this guide will become your navigation map.

Preparation of the device: check of loader and model

Before you try to get into TWRP, make sure your Xiaomi smartphone supports custom recavator installation. Not all models are officially TWRP compatible, and some (such as the POCO F5 or Redmi Note 12 Pro+) require special versions of the recavator.

First thing you do is check the status of the bootloader.

  1. Turn off your smartphone.
  2. Press Volume Down + Power before the Fastboot logo appears.
  3. Connect the device to the PC and type the command: fastboot oem device-info

In conclusion, note the line Device unlocked: true/false. If false - the bootloader is locked and it needs to be unlocked through the Mi Unlock Tool. On models from 2023-2026 (for example, Xiaomi 14 or Redmi K70), unlocking can take up to 720 hours of waiting due to Xiaomi's policy.

πŸ“Š What Xiaomi model do you use?
Redmi Note Series Series Series
POCO F/POCO X
Xiaomi 11/12/13/14
Redmi K Series Series
Another model

2 Unlock the bootloader through the Mi Unlock Tool

Without the unlocked bootloader, you can't log in to TWRP -- it just ignores the custom Recovery and loads the standard one.

  1. Linking the Mi Account: πŸ“± Go to Settings. β†’ Xiaomi account β†’ Mi Cloud and log in. πŸ”— Turn on synchronization and find the item Device Status (on some firmware - Additional) β†’ Unlocking OEM).
  2. Installation of Mi Unlock Tool: πŸ’» Download the official tool from the site en.miui.com/unlock (Windows version). πŸ› οΈ Launch it. miflash_unlock.exe on behalf of the administrator.

Connecting the device

  • πŸ”Œ Transfer the smartphone to Fastboot mode (Loudness down) + Nutrition).
  • πŸ–±οΈ In Mi Unlock Tool, press Unlock and confirm the action.

On the new models (Xiaomi 13T, Redmi Note 12 Pro) after the first request to unlock, a waiting timer (from 168 to 720 hours) will appear.

  • ⏳ Do not turn off the device for a long time (once every 2-3 days, turn it on for 10-15 minutes).
  • πŸ”„ Do not update the firmware through MIUI Updater - this will reset the timer.

πŸ’‘

If the Mi Unlock Tool gives you a "Couldn't unlock" error, try using the 5.5.224.30 version of the tool, which is often more stable than new releases.

3. Installing TWRP on Xiaomi

Once the bootloader is unlocked, you can start installing TWRP. It is important to find the right version of the backpack for your model - universal builds often do not work. download files only from the official twrp.me website or trusted sources (for example, XDA Developers).

Installation instructions:

β˜‘οΈ Installation TWRP via Fastboot

Done: 0 / 5

The firmware command (replace twrp.img with your file name):

fastboot flash recovery twrp.img


fastboot boot twrp.img

After the second command is executed, the device should automatically boot into TWRP. If this does not happen, manually reboot to the recavers with the combination Volume up + Power (hold until the TWRP logo appears).

⚠️ Note: On some models (POCO X5 Pro, Redmi Note 11 Pro) after firmware TWRP The standard recap is restored when you first boot into the system, so that you don't, right after you log in. TWRP Go to Mount. β†’ System and delete the file /system/recovery-from-boot.p (if it exists).

4. Ways to Sign In to TWRP on Xiaomi

There are several methods of downloading to TWRP, depending on the state of the device and the installed software.

MethodWhen to useButton combination/command
Hardware buttonsIf the TWRP is installed as the main RecoveryVolume up + Nutrition (hold 10-15 seconds)
ADB Team TeamDevice on, USB debugging activatedadb reboot recovery
FastbootIf TWRP is stitched but is not the main Recoveryfastboot boot twrp.img
Quick Reboot appFor root-right devicesSelect "Recovery" from the app menu

On models with Dynamic RAM (e.g. Xiaomi 12T), the hardware combination may not work the first time.

  1. Turn off the device.
  2. Press Volume Up + Power and hold until the screen goes out (usually 15-20 seconds).
  3. Release the buttons and again press Volume up + Power – the device should boot into TWRP.
What if Mi Recovery is downloaded instead of TWRP?
This means that the standard recavery overwrote TWRP. Solution: 1. Re-sweeten TWRP through fastboot. 2. Immediately after the firmware, execute the command fastboot boot twrp.img. 3. In the TWRP itself, go to Reboot β†’ Recovery – this will prevent the restoration of the standard recavator.

5. Solving problems when entering TWRP

Even after installing TWRP correctly, users are faced with errors.

  • πŸ”΄ The device hangs on the Mi logo: Reason: incompatible version TWRP Solution: run a different version of the Recovery (for example, for Redmi Note). 10 Pro is a good fit. twrp-3.7.0_12-v6.6_A11-sweet.img, not a universal assembly).
  • πŸ”΄ The inscription "No" appears OS Installed: This is not a mistake β€” TWRP warns that the system will not detect (for example, after a complete reset.
  • πŸ”΄ Touch doesn't work. TWRP: The problem is common to some models (POCO M4 Pro, Redmi 10C). Solution: Use OTG-cable and mouse or run an alternative version of the Recovery with support for touch.

If you see E: unable to mount /data after you log in to TWRP, it means that the data partition is encrypted.

  1. Go to Wipe β†’ Format Data.
  2. Enter yes to confirm (all data will be deleted!).
  3. Reboot to TWRP, the error must disappear.

⚠️ Attention: On devices with MIUI 14 and newer data formatting may result in blocking FRP (Factory Reset Protection! Before this step, make sure you remember the Xiaomi account details tied to your phone.

6. Alternative methods of logging into TWRP without buttons

If the hardware buttons on your Xiaomi don’t work (for example, after a drop or moisture), you can boot into TWRP software.

  • πŸ’» Computer with installed ADB and Fastboot.
  • πŸ”Œ USB-cable (preferably original).
  • πŸ“± Included debugging by USB (Settings β†’ The phone. β†’ Version. MIUI β€” Press 7 times, then return to Additional β†’ For developers β†’ Debugging by USB).

Ways:

  1. ADB (if the system works): adb reboot recovery
  2. Fastboot (if the system doesn't boot): fastboot boot twrp.img
  3. Open the terminal in your phone and execute: su echo 'boot-recovery' > /cache/recovery/command reboot recovery

On HyperOS models (e.g. Xiaomi 14), the standard adb reboot recovery command may not work.

adb shell am start -a android.intent.action.REBOOT -e command boot,recovery

7. Security and cautionary tales

Working with TWRP gives you complete control over the system, but it also carries risks.

  • πŸ” Backup before any manipulation: In TWRP Create a full backup (Backup) β†’ Select Partitions, select Boot, System, Data, Vendor. Save a copy to your PC or cloud.
  • πŸ›‘οΈ File Checking: Download TWRP And firmware only from official sources (SHA-256) downloaded.
  • πŸ”§ Beware of dirty firmware: Some custom OSes (such as those ported from other devices) may contain malware or unstable cores.

On Mi Pay or Mi Wallet devices, unlocking the bootloader and installing TWRP will remove the security keys.

  • πŸ’³ Linked bank cards in Mi Pay will be removed.
  • πŸ”‘ Find My Device and Remote Lock will stop working.

πŸ’‘

If you don’t plan on flashing custom OSes but want backup, consider alternatives like OrangeFox Recovery or PitchBlack Recovery, which offer advanced backup features without having to unlock the bootloader on some models.

FAQ: Frequent questions about TWRP on Xiaomi

Can I install TWRP without unlocking the bootloader?
No, on all modern Xiaomi devices (starting with the 2018 Redmi Note 5), customized recavator installation requires an unlocked bootloader.Back-tracks (such as through vulnerabilities in Fastboot) are closed in the latest versions of MIUI and HyperOS.
Why does the TWRP install not boot your phone to the system?
This happens if: You have stitched an incompatible version of TWRP (for example, Redmi Note 10 installed POCO X3), damaged the boot or vendor partition when manipulating TWRP. Delete critical system files (for example, /system/bin). Solution: restore the backup via TWRP or run the official firmware through the Mi Flash Tool.
How to upgrade TWRP to Xiaomi?
The TWRP update is done in the same way as the original installation: Download the new version of.img. Download to the current receptacle. Go to Install β†’ Install Image and select the downloaded file. Sweep to Recovery. Don't update TWRP through Fastboot if you already have a working version installed - this can lead to conflicts.
Can I get back a standard recap after TWRP?
Yes, for this: Download the official image of the recovery for your model (usually included in the fastboot firmware). stock_recovery.img Please note that after that, the entrance to the custom recaveri will be impossible without repeated firmware. TWRP.
Does TWRP work on Xiaomi with HyperOS?
Yes, but with reservations: βœ… Supported models 2023-2026 (Xiaomi 14, Redmi) K70), But special assemblies are required. TWRP (for example XDA hyperos). ⚠️ Some functions (e.g. decoding) FBE β€” File encryption may not work smoothly. πŸ”§ HyperOS is recommended to be used TWRP 3.7.0 and later.