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

Customization of Xiaomi smartphones through TWRP (Team Win Recovery Project) provides access to advanced features from installing custom firmware to backing up the data section without root rights. However, the process of logging into this recovery on Redmi, POCO or Mi devices requires preliminary preparation - unlocking the bootloader, which is officially supported by the brand, but is fraught with risks.

In this article, you will find current methods of entering TWRP for Xiaomi in 2026, including bypassing typical errors like Fastboot mode or Invalid image. We will analyze both the standard method through a combination of buttons and alternative options for devices with a locked bootloader.

What is TWRP and why is it necessary for Xiaomi?

TWRP (Team Win Recovery Project) is a custom recovery menu that replaces Xiaomi's standard Mi-Recovery, which gives users control over Android system partitions that are not possible in normal mode.

  • πŸ“¦ Installation of unofficial firmware (LineageOS, Pixel Experience, MIUI modular)
  • πŸ”„ Creating and restoring complete backups (including boot, system, vendor)
  • πŸ”“ Removal of factory restrictions (e.g. regional locks on the plant) POCO X3 Pro)
  • πŸ› οΈ Fixing Bricks After Failed Update via Fastboot

Xiaomi TWRP is particularly popular on Xiaomi devices because of the brand’s aggressive policy of blocking the bootloader. Without unlocking the bootloader (OEM Unlock), custom recovery is impossible – the system will simply ignore it when booting. Moreover, since MIUI 14, the company has tightened the verification of image signatures, which led to the emergence of patches for bypassing (for example, anti-rollbac for Redmi Note 11).

It is important to understand that TWRP is not official software. its use voids the warranty (if the bootloader is unlocked) and can lead to software failures if installed incorrectly. For example, on Xiaomi 13 Ultra, an incompatible version of recovery can cause a fixation on the Mi logo.

πŸ“Š What Xiaomi model do you use?
Redmi Note 10/11/12
POCO F3/F4/F5
Mi 11/12/13
Another model
I don't know.

Preparation of the device: unlocking the loader

The first and mandatory step is to unlock the bootloader, which Xiaomi officially allows, but links to the device by linking the Mi Account, and without unlocking the bootloader (OEM Unlock), the system will ignore any attempts to install TWRP.

Instructions for unlocking:

  1. Activate Developer Mode: Go to Settings β†’ About Phone β†’ MIUI version and tap 7 times on this item.
  2. Back to Settings β†’ Additionally. β†’ For developers and include: πŸ”“ Unlocking OEM (may require PIN-code) πŸ”Œ Debugging by USB

Mi Account

Settings β†’ Xiaomi Account β†’ Synchronization

Mi Unlock Tool

fastboot

Power + Volume Down

Mi Unlock Tool

Xiaomi

⚠️ Note: On the Redmi Note 12 Pro+ Xiaomi may request confirmation of unlocking via SMS Even after the successful completion of the procedure in the Mi Unlock Tool, if SMS Check if your account is blocked for frequent attempts to unlock (limit: 1 device in 30 days).

Once the bootloader is unlocked, the device will reset to factory settings, delete all data, including photos and apps, and back up your Mi Cloud or locally on your PC.

Xiaomi account confirmed by email/SMS|Debugging is on. USB|Device in fastboot mode|Mi Unlock Tool of the latest version|Backup copy of data created-->

Download the correct version of TWRP for your model

Installing an incompatible version of TWRP is the main reason for the "bricks" on Xiaomi. For example, the recovery firmware for the Redmi Note 10 Pro (sweet) on the POCO X3 NFC (surya) will lead to a fixation on the logo. To avoid mistakes, follow these rules:

  • πŸ” Use the official website TWRP or verified sources like XDA Developers. for MediaTek devices (e.g. Redmi) 10C) Look for versions marked MTK.
  • πŸ“Œ Check the model’s encoded name: go to Settings β†’ The phone. β†’ The model and compare with the base Xiaomi Firmware Updater.
  • ⚠️ Avoid "universal" TWRP β€” They often contain vulnerabilities or do not support encryption. FBE (File-Based Encryption on new versions of Android.

Compatibility Example for popular models:

Xiaomi modelCode nameTWRP referenceFeatures
Redmi Note 11 Pro+ 5GveuxDownloadRequires to disable avb2.0 in fastboot
POCO F4 GTingresDownloadSupport for dynamic partitions
Xiaomi 12T ProditingXDA ThreadWe need to patch. vendor_boot
Redmi 9AdandelionDownloadIt only works on MIUI 12 and below.

For devices on MediaTek (e.g., Redmi) 10A or POCO C40) You may need an additional step – shutdown SLA (Secure Boot through the tool MTK Bypass, without that. TWRP Cannot access the system and data sections.

πŸ’‘

If you're on the site TWRP No model, check the forums. XDA Developers on request "<codename> TWRP". Often enthusiasts lay out unofficial builds with support for new firmware.

Install TWRP via fastboot

The most reliable way to install TWRP is through fastboot mode.

  • πŸ–₯️ Computer with Windows/Linux/macOS and installed drivers ADB/Fastboot (Download Platform Tools)
  • πŸ“± Unlocked bootloader (see previous section)
  • πŸ”— File. TWRP in.img format for your model

Step-by-step:

  1. Connect your smartphone to your PC in fastboot mode (turn off the device, then press Power + Volume Down).
  2. Open the command line (or terminal) in the folder with the platform-tools and check the connection: fastboot devices must display the serial number of the device.
  3. Please. TWRP Temporary (for test) or permanent: Temporary boot (without writing to recovery): fastboot boot twrp-3.7.0_12-0-veux.img Continuous installation (record in section): fastboot flash recovery twrp-3.7.0_12-0-veux.img

vendor_boot

fastboot flash vendor_boot vendor_boot.img

(file vendor_boot.img usually comes with TWRP).

fastboot reboot recovery

⚠️ Attention: On devices with MIUI 13/14 and newer after installation TWRP The system can automatically overwrite the recovery partition with a standard Mi-Recovery when it first boots. TWRP The command is: fastboot flash recovery. twrp.img Then restart back to recovery (fastboot reboot recovery). 2-3 once, bye TWRP not".

If you see a standard Mi-Recovery after the reboot, it means:

  • πŸ”„ You used an incompatible version. TWRP (Check the model's coded name).
  • πŸ”’ The bootloader has not been fully unlocked (check status via fastboot oem device-info).
  • πŸ›‘οΈ Anti-rollback protection (relevant to Redmi Note) 11S newer).
What to do if TWRP is not installed?
If the fastboot flash recovery command returns the FAILED error (remote: 'Not allowed in Lock State'), then the bootloader is still locked. Repeat the unlock procedure through the Mi Unlock Tool and make sure that the developer settings enable the OEM unlock option. For devices on MediaTek, you may need to use the SP Flash Tool with Auth File authorization (see 4PDA instructions for a particular model).

TWRP on Xiaomi: All the Possible Ways

Once a TWRP is successfully installed, there are several ways to get into it, depending on the state of the device (on/off) and the model.

1. Through hardware buttons (standard method)

The most versatile way, working on 90% of Xiaomi devices:

  1. Turn off the smartphone (if it freezes – press the Power for 10+ seconds).
  2. Hold the combination: πŸ”˜ Power + Volume Up (for most models) πŸ”˜ Power + Volume Up + Volume Down (for the first time) POCO F3/F4)

TWRP

If you see Mi-Recovery instead of TWRP, you see:

  • πŸ”„ TWRP Not installed in the recovery section (use the command fastboot boot) twrp.img temporary).
  • πŸ”’ The protection against rollback (anti-rollback), is relevant for the Redmi Note 10 Pro and newer.

2. via ADB command (if the device is on)

If the smartphone is working, but you need to restart to TWRP without turning off:

  1. Connect the device to the PC and enable debugging over USB.
  2. Enter the command: adb reboot recovery

3. via terminal (requires root)

For root-enabled devices, you can use the Terminal Emulator app:

su


reboot recovery

Alternative methods for β€œbricks”

If the device is not turned on (obsessive to the Mi logo), but fastboot is available:

fastboot boot twrp.img

For a full "brick" (no reaction to buttons, PC does not determine the device), you will need EDL-mode (Emergency Download Mode) and firmware through the Mi Flash Tool with authorization (auth file).

πŸ’‘

On data-encrypted devices (FBE) first-entry TWRP you will need to enter a pattern lock or PIN-code, otherwise the data partition will not be available for modification.

Typical errors and their solutions

Even with the right TWRP installation, users are likely to encounter errors, and below are the most common problems and ways to fix them.

Mistake.Reason.Decision
Invalid sparse file format at headerA TWRP file or incompatible version is damagedDownload another image (check the SHA256 hash) or use fastboot boot instead of fastboot flash
Located on the Mi logo after installing the TWRPIncompatible with MIUI version or anti-rollback patchSwipe stock firmware through Mi Flash Tool in clean all mode
Failed to mount /data (Invalid argument)FBE encryption or a corrupted file systemEnter. PIN-code TWRP Or run Format Data. β†’ Yes (erases all data!)
TWRP does not see internal memoryNo MTP driver or damaged userdata partitionConnect to USB, select Mount β†’ Enable MTP or reflash userdata via fastboot
E: Unable to mount storageDamaged partition table or incorrect fstabUse fastboot format:ext4 userdata or run stock fstab from official firmware

For MediaTek devices (such as Redmi 10 or POCO M4 Pro), the BROM ERROR: SLA AUTHENTICATION FAIL error means that Auth File authorization is required. These files are distributed in a limited (usually for a fee) manner and are tied to a particular device via IMEI.

If after installing TWRP, the device stopped booting into the system, but recovery works, try:

  1. Install a patch against anti-rollback (for Redmi Note 11 and later) via TWRP.
  2. Switch boot.img from stock firmware (if TWRP was installed over the original recovery).
  3. Perform a reset via Wipe β†’ Format Data (deletes all data, but often solves download problems).

Additional TWRP settings for Xiaomi

After successfully entering TWRP, it is recommended to perform several actions for stable operation:

  1. Turn off signature verification: Go to Settings β†’ Disable DM-Verity (prevents looping on the logo after system modifications).
  2. Set up backup: Select the Boot, System, Vendor, Data (for full backup) partitions. Specify the place of saving: internal memory or OTG-Use compression to save space.

Install Magisk for root:

  • Download the latest version of Magisk (.zip).
  • Select Zip through Install β†’ Select Zip.
  • Reboot (not to the system, but back to TWRP, then to the system).
  • Configure ADB Access: Enable Advanced β†’ ADB Sideload to install firmware via PC.

⚠️ Attention: On Xiaomi with MIUI 14 and the new Magisk installation through TWRP This can cause Google Play services to crash, in which case use the patch method. boot.img via the official Magisk app (no firmware through recovery).

If you plan to update your firmware frequently, create a script for automatic backup before installing updates. Go to Advanced β†’ File Manager in TWRP, create a backup.sh file in the /sdcard folder with the following content:

#!/sbin/sh


twrp backup BOOT SYSTEM VENDOR DATA --compress

Then make it executable (chmod 755 backup.sh) and run before each firmware.

FAQ: Frequent questions about TWRP on Xiaomi

Can I install TWRP without unlocking the bootloader?
No. On all Xiaomi devices (except some older models before 2016), unlocking the bootloader is mandatory. Any "bypass" methods (for example, through vulnerabilities in fastboot) either do not work or lead to a "brick." Except for the temporary download of TWRP through fastboot recovery boot, but this does not give permanent access to it.
Why does the TWRP install not boot your phone to the system?
This is a typical problem for anti-rollback devices (e.g., Redmi Note). 10 Pro). Causes: TWRP incompatible with the version MIUI (I need to stitch up the stock. boot.img). The dtbo section is damaged or vendor_boot (Restore it. Modification protection is activated (Anti-Rollback Disabler patch is needed). Solution: run the full stock firmware through the Mi Flash Tool in clean all and lock mode, then re-install. TWRP.
How to upgrade TWRP to Xiaomi?
Update is done in the same way as installation: Download the new.img version for your model. Download to the current TWRP. Sweep through the new image via Install β†’ Install Image β†’ Recovery. Reboot to recovery (Reboot β†’ Recovery). Don't upgrade TWRP via fastboot flash recovery over the old version - this can lead to conflicts.
Can I return to standard recovery after TWRP?
Yes. For this: Download the stock recovery from the official firmware for your model (usually called recovery.img). Run it through fastboot: fastboot flash recovery.img Reboot the device. If the device doesn't boot after that, run the full stock firmware through the Mi Flash Tool.
Does TWRP work on Xiaomi with HyperOS?
HyperOS (new shell from Xiaomi, which replaced the new model) MIUI into 2026 This year, it uses a different partition structure. Currently: Official assembly TWRP HyperOS is only available for a limited number of devices (e.g. Xiaomi) 13 and POCO F5). Other models require manual patching. vendor_boot and init_boot. We recommend waiting for stable versions. TWRP community XDA Or alternative recovery like OrangeFox. TWRP for MIUI HyperOS will lead to a fixation on the logo.