How to enable TWRP Recovery on Xiaomi: full instructions with unlocking the bootloader

Installing custom TWRP on Xiaomi, Redmi or POCO smartphones gives you access to advanced features from system backup to unofficial ROM firmware. However, the process requires pre-unlocking the bootloader - without this step, TWRP simply will not start. In this article, we will discuss the current way to install TWRP on MIUI 14/15, taking into account the latest changes in Xiaomi policy (2026), including bypassing typical errors like Fastboot mode or Invalid image format.

It’s important to understand that the procedure is not official, and Xiaomi is not responsible for the consequences. But if you do all the steps correctly, the risks are minimal. We will look at two main methods – through fastboot and using the OrangeFox app (an alternative to TWRP for new devices), and also explain why some models (for example, Xiaomi 13 Pro or Redmi Note 12 Pro+) may require an additional patch to bypass anti-rollback checks.

What is TWRP and why is it necessary for Xiaomi?

TWRP (Team Win Recovery Project) is a custom recovery that replaces the standard recovery menu on Android.

  • πŸ“¦ Install unofficial firmware (e.g. LineageOS or Pixel Experience)
  • πŸ”„ Make complete system backups (including application data)
  • πŸ”§ Restore deleted files or reset settings
  • πŸ› οΈ Fixing errors after failed updates MIUI
  • πŸ”“ Bypass the lockdown FRP (on some models)

On Xiaomi smartphones, the standard recovery (Mi Recovery) is extremely limited - it can only reset settings or install official updates via ZIP. TWRP gives full control over memory partitions, including /data, /system and /vendor. This is especially useful if you:

  • πŸ€– You want to make a global ROM Chinese version of the device
  • πŸ”‹ Faced with hanging on the logo after the update
  • πŸ“± You need root rights (Magisk) to run specific applications
πŸ“Š What are you setting up for? TWRP Xiaomi?
Custom ROM firmware
Ruth-Right (Magisk)
Backup system
Recovery from Bricks
Other

But there is a downside: Installing a TWRP incorrectly can lead to a soft breeze (the device only loads in fastboot) or even a hard breeze (completely inoperable).

⚠️ Note: On models with Qualcomm Snapdragon processor 8 Gen 2/3 (for example, Xiaomi 14 or Redmi K70 Pro) may require a rollback to an older version MIUI before installation TWRP Due to changes in the Super section.

Preparation of the smartphone: unlocking the loader

Without the bootloader, you can’t install TWRP. Xiaomi officially lets you unlock it, but the process involves several mandatory steps:

  1. Link Mi Account Go to Settings β†’ Xiaomi Account β†’ Mi Cloud and log in. Make sure your device is synced.
  2. Activate Developer Mode Go to Settings β†’ About Phone and 7 times click on the MIUI Version. Return to the main settings menu - the Developer Item will appear.
  3. Initiation of debugging USB In the menu for developers activate debugging by USB and Unlock. OEM (The last item may not be available on new devices).
  4. In the same menu, find Mi Unlock Status and click Add Account and Device. This step is mandatory for models on MIUI 13 and later.

After preparation, download the official utility Mi Unlock Tool (version no lower) 5.5.224.30 Windows 10/11). Launch it on behalf of the administrator and link the account through QR-code.

Battery charge > 60%|USB-cable original (not original) USB 3.0)|Antivirus is disabled|Mi Unlock is running from admin|Smartphone in fastboot mode (Power buttons) + Vol-)-->

Next, connect your smartphone to your PC in fastboot mode (press Power + Volume down on the device turned off) and press Unlock in the utility. The process will take 3-5 minutes. New devices (released after 2022) may require a 72-hour waiting period after the first account is attached.

⚠️ Note: If the Mi Unlock Tool gives an error "Couldn't unlock. The current account is different from the account info on the device", check that the smartphone settings have the same Mi Account as the utility. β†’ Additionally. β†’ Resetting settings).

Selecting a TWRP version for your Xiaomi model

Not all versions of TWRP are device-specific. Using an inappropriate backup can result in a bootloop or /data partition corruption.

  1. Check the device codename You can find it in Settings β†’ About Phone β†’ MIUI version (for example, surya for POCO X3 or alioth for POCO F3). The full list of codenames is here.
  2. Download TWRP from the official website: twrp.me/Devices/Xiaomi. New models (2023-2026) may require a version with support for dynamic partitions.
  3. Check compatibility with the version MIUI Forums XDA Developers or 4PDA Often patches are posted to bypass anti-rollback (for example, for Xiaomi). 12T Or the Redmi Note 11 Pro.+).

For devices with a MediaTek processor (such as the Redmi Note 10 or POCO M4 Pro), you may need a special version of TWRP with MTK support.

  • πŸ“„.Img – standard image for installation via fastboot
  • πŸ“„.zip – archive for installation through existing recovery (if already unlocked)
Xiaomi modelCode nameRecommended version of TWRPFeatures
POCO F3 / Redmi K40alioth3.7.0_12-0Forceencrypt is required to work with /data
Xiaomi 11T Provili3.6.2_11-0Support for dynamic partitions (MIUI 13+)
Redmi Note 10 Prosweet3.5.2_9-0It only works with firmware based on Android 11
POCO X3 NFCsurya3.5.2_10-0Problems with encryption on MIUI 14 - need a patch

πŸ’‘

If you're on the site TWRP There is no model, check the forum. XDA Developers on request "<codename> TWRP". Often enthusiasts lay out unofficial builds with support for new devices.

Install TWRP via fastboot (main method)

This is the most reliable way to install, but it requires a PC with ADB/Fastboot drivers installed.

  1. Install ADB and Fastboot Download Platform Tools from Google and unpack to the root of the C:\platform-tools drive. Add path to the environment variables or use the command line from the folder.
  2. Connect your smartphone in fastboot mode Turn off the device, then press Power + Volume down until the Fastboot logo appears.
  3. In the command line, type: fastboot devices Should show the serial number of the device. If not, check the drivers.
  4. Please. TWRP Place the downloaded file twrp-3.x.x-x-<codename>.Img to the platform-tools folder and execute: fastboot flash recovery twrp-3.x.x-x-<codename>.Img for devices with dynamic partitions (MIUI 13+) Use: Fastboot Flash recovery_ramdisk twrp-3.x.x-x-<codename>.img
  5. Launch it. TWRP Enter the command: fastboot reboot recovery If the device is loaded into a standard Recovery, repeat the step 4 keyed --disable-verity.

On some models (e.g. Xiaomi 12 or Redmi K50) you may need to disable signature verification after installing TWRP.

  1. In TWRP, go to Mount β†’ Enable MTP.
  2. Connect your smartphone to your PC and copy the file disable_dm-verity_forceencrypt.zip (jump on XDA).
  3. V TWRP Choose Install β†’ select the file β†’ Swipe to confirm.
What if, after installing TWRP, the device boots to bootloop?
If the smartphone is constantly rebooting, there is likely a problem with the /data partition encryption. Solution: 1. Boot to TWRP (Power + Vol+ buttons). 2. Go to Wipe β†’ Format Data (this will delete all data!). 3. Enter yes to confirm. 4. Reboot to the system. If MIUI 14+ is used, you may need to flash a patch to bypass anti-rollback.

⚠️ Note: On devices with MediaTek (e.g. Redmi Note 11) after firmware TWRP A fastboot can be used to protect SLA (Secure Boot. In this case, only the firmware of the full stock will help. ROM Mi Flash Tool with Clean All and Lock option.

Install TWRP without PC (via OrangeFox or official recavator)

If you already have a bootloader unlocked and a custom recavator installed (such as OrangeFox), you can upgrade or replace it with TWRP without using a PC.

  1. Download a TWRP file in.zip (not.img!) to a memory card or internal memory.
  2. Load to your current recovery (e.g. OrangeFox) by selecting Reboot β†’ Recovery.
  3. In the RecavΓ©re menu, select Install β†’ choose ZIP-file β†’ Swipe to confirm.
  4. Once installed, run Wipe β†’ Dalvik/ART Cache and restart.

For devices without an unlocked bootloader, this method is not suitable. Also note that some versions of OrangeFox conflict with TWRP due to different partitioning methods. For example, on POCO X3 Pro (vayu) after installing TWRP on top of OrangeFox, OTG support may disappear.

πŸ’‘

If you already have OrangeFox, back up your current backup recovery via the Backup β†’ Recovery menu before installing TWRP.

Typical errors and their solutions

Even if you follow the instructions accurately, you can get errors.

Mistake.Reason.Decision
Fastboot: error: Cannot generate image for userdataPartition /data problem (often on MIUI 14+)Use the command fastboot flash recovery_ramdisk Fastboot flash recovery is a fastboot flash recovery.
Invalid sparse file format at header magicA damaged TWRP file or incompatible versionDownload the image again, check the checksum (MD5)
The device is loaded into a standard recaveryMIUI overwrites TWRP when downloadingAfter installation, immediately load into TWRP and sew disable_dm-verity.zip
This package is for "surya" devices; this is a ""The wrong code name in the TWRP fileCheck the code name of the device and download the correct version.

If after installing TWRP smartphone does not boot into the system, but the recovery works, try:

  1. In TWRP, go to Mount β†’ System and flash Magisk (root if you need it).
  2. Run Wipe β†’ Advanced Wipe β†’ Dalvik / ART Cache + Cache
  3. Install a patch to bypass anti-rollback (relevant to Xiaomi 12/13 series).

πŸ’‘

If TWRP asks for a password when mounting /data and you didn't set it, it means that the partition is encrypted. Solution: in TWRP, select Wipe β†’ Format Data β†’ type "yes." All data will be deleted!

What to do after installing TWRP

Successful TWRP installation is only half the battle, so you can avoid problems in the future.

  • πŸ” Create a backup V TWRP Select Backup and mark Boot, System, Data, Vendor. Save backup to memory card or PC.
  • πŸ“± Install Magisk (optional) If you need a root, download the last one Magisk.zip from GitHub and run through Install to TWRP.
  • πŸ”„ Update the firmware carefully when updating MIUI through TWRP Always choose Install. β†’ Install Image and Switch First boot.img, then system.img (If they are in the update archive).
  • ⚠️ Avoid. OTA-Standard Updates "Air" can be rewritten TWRP. Always download the full ones. ZIP-Firmware archives with Xiaomifirmwareupdater.com.

For devices with dynamic partitions (MIUI 13+), after installing TWRP, it is recommended to flash multidisabler - this will disable automatic /data encryption, which can block access to files. You can download the patch on the 4PDA or XDA forums on the request "<codename> multidisabler".

πŸ’‘

After installation TWRP Never select Reboot System from the Recovery menu unless you have stitched it. disable_dm-verity.zip. Use Reboot. β†’ Recovery to get back to TWRP.

FAQ: Frequent questions about TWRP on Xiaomi

Can I install TWRP on Xiaomi without unlocking the bootloader?
No, it's impossible. Xiaomi blocks the entry to the recovery section at the bootloader level, the only exception being if the device already has a custom Recovery (e.g. OrangeFox), but in this case the bootloader must be unlocked.
Why does the TWRP install not load the smartphone into the system?
This is due to: Encrypting /data (solution: Format Data in TWRP); conflict with anti-rollback (solution: flash a patch or roll back to an older version of MIUI); damaged boot.img (solution: flash the original boot through fastboot); If the problem persists, try flashing the full stock ROM through Mi Flash Tool with the clean all option.
How to return a standard recap after TWRP?
Download the official recovery.img For your model from the Xiaomi Firmware Updater website and click through fastboot: fastboot flash recovery recovery.img For devices with dynamic partitions, use: fastboot flash recovery_ramdisk recovery.img
Can I install TWRP on Xiaomi with a MediaTek processor?
Yes, but the process is more complicated because of SLA protection. You'll need to: Unlock the bootloader via Mi Unlock Tool. Use a special version of TWRP with MTK support (e.g. from XDA). Switch vbmeta.img with check disabled: fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
Which Xiaomi models do not support TWRP?
In 2026, the TWRP installation is difficult to install on: Xiaomi 13 Ultra (isis) – problems with dynamic partitions. Redmi K60 Pro (mondrian) – requires a patch to bypass anti-rollback 4. POCO F5 (marble) – there is no stable version of TWRP (OrangeFox recommended); HyperOS devices (such as Xiaomi 14) – no support yet due to changes in the firmware structure. For these models, the alternative may be OrangeFox Recovery or Pitch Black Recovery.