Installing a custom TWRP recavator on Xiaomi smartphones is the first step to full control of the device, which allows you to install unofficial firmware, back up the system, obtain root rights and even restore bricks after unsuccessful experiments, but the process requires care: a mistake at any stage can lead to a locking of the phone or loss of data.
In this guide, we will analyze the current 2026 methods of installing TWRP for modern Xiaomi models (including the Redmi Note 12 series, POCO F5, Xiaomi 13T), taking into account the changes in the companyβs policy to unlock the bootloader. We will pay special attention to the nuances: from choosing the right version of the recovery to bypassing the new restrictions of MIUI. If you are a beginner, do not miss the sections about preparation and backup!
What is TWRP and why is it necessary for Xiaomi?
TWRP (Team Win Recovery Project) is a custom touch-controlled recovery that replaces the standard recovery menu on Android. Unlike stock recovery, it allows you to:
- π¦ Install unofficial firmware (e.g. LineageOS or Pixel Experience)
- π§ Get root rights through Magisk without losing data
- πΎ Create complete backups of the system (including: /data and /boot)
- π Restore the phone after a soft brick"
- π Bypassing some blockages MIUI (For example, restrictions on the region)
On smartphones, Xiaomi TWRP is especially in demand due to the aggressive policy of the company: stock firmware MIUI blocks many functions (for example, changing the region or turning off advertising), and official updates often come with a delay. With custom recovery, you get freedom of action, but lose the warranty - this is important to consider.
β οΈ Attention: Installation TWRP It cancels the Xiaomi warranty. on some models (e.g. Redmi Note 11 Pro)+) after unlocking the bootloader may stop working encryption data - prepare for a complete reset!
Before you go on, check if your model is supported on the official TWRP website: twrp.me/Devices/Xiaomi.New devices (released after 2022) may require a dedicated recovery version with support for dynamic partitions.
Preparation of the smartphone: unlocking the loader
Without a bootloader, you can't install TWRP on Xiaomi. The unlock process takes 7 to 30 days to protect the company from random action.
- π± Xiaomi smartphone with battery charge >60%
- π» Computer with Windows/Linux and USB-cable (original cable!
- π Mi Account Linked to the Device
- π Mi Unlock Tool (download from official website)
Steps to unlock:
- Activate Developer Options: Go to Settings β About Phone and click on MIUI 7 times.
- Enable USB Debugging and OEM Unlock in the Developer Menu.
- Link the device to your Mi Account in Settings β Xiaomi Account β Mi Cloud.
- Launch the Mi Unlock Tool on your PC, log in to your account and follow the instructions. When you first connect, the program will request a wait (usually 168 hours).
β οΈ Note: On models with a MediaTek processor (e.g. Redmi) 10C) Unlocking can lead to loss IMEI. Before the procedure, save it through the engineering menu (#4636##).
Once successfully unlocked, the phone will automatically reset to factory settings. All data will be deleted β transfer important files to your PC or cloud beforehand. If the tool detects a "Couldn't unlock" error, check:
- Is the phone connected in Fastboot mode (black screen with a rabbit)
- Are the latest Qualcomm or MediaTek drivers installed?
- Whether VPN or proxy is used (they block Xiaomi servers)
Make a backup of data | Charge your phone >60% | Install Mi Unlock Tool| Enable debugging on USB| Attach Mi Account-->
Selecting the Right TWRP Version for Your Model
Mistakes in choosing a version of the recovery is the most common reason for bricks. For Xiaomi, it is important to consider:
- π± Device code name (not to be confused with trademark!) For example, Redmi Note 12 Pro+ It has the name rubens, and POCO F5 β marble.
- π Android version: TWRP Android 12 may not work for Android 13.
- π§ Firmware type: for global (Global) and Chinese (China) versions MIUI Different assemblies may be required.
You can get a code name:
- CPU-Z (Device β Model)
- B Settings β The phone. β Version. MIUI (for example, V14.0.4.0.TMBCNXM, where TMBCN β piece)
- Xiaomi Flash (Put the model in search)
Once you have identified the code, download TWRP from an official website or trusted sources (such as XDA Developers).
- Unified β for dynamic partition devices (Android 10+)
- TREBLE β Supported by Project Treble
- mauronofrio β popular builds for Xiaomi from a famous developer
| Xiaomi model | Code name | Recommended version of TWRP | Features |
|---|---|---|---|
| Redmi Note 12 Pro+ | rubens | TWRP 3.7.0_12 | Requires AVB shutdown before firmware |
| POCO F5 | marble | TWRP 3.7.0_9-0-mauronofrio | Support for dynamic partitions |
| Xiaomi 13T | aragon | TWRP 3.7.0_11 | It only works with firmware on Android 13 |
| Redmi 10 2022 | selene | TWRP 3.6.2_11 | We need to patch. vendor_boot |
If you donβt have an official build for your model, you can use generic projects like OrangeFox Recovery or PitchBlack Recovery, but they may not support some features (like FBE encryption).
What if there is no TWRP for my model?
Install TWRP via Fastboot: step-by-step instructions
The most reliable way to flash TWRP is through Fastboot mode.
- π₯ Computer with installed ADB and Fastboot
- π File. twrp-3.x.x-x-Device name.img (rename it to twrp.img convenienceally)
- π Original. USB-cables (cheap cables can cause errors)
Instructions:
- Connect your phone to your PC in Fastboot mode (turn off the device, then press Power + Volume down).
- Open the command line in the folder with the platform-tools and check the connection: fastboot devices must display the serial number of the device.
- Squeeze TWRP temporarily (for the test): fastboot boot twrp.img The phone will load into the recave. Check the sensor and basic functions.
- If everything works, flash recovery is fastboot. twrp.img For dynamic partitions, use fastboot flash. recovery_ramdisk twrp.img
- Reboot to Recovery: Fastboot Reboot Recovery
On some models (Xiaomi) 12T, POCO X5 Pro) after firmware, you need to disable signature verification (AVB), Otherwise, the system won't boot. TWRP execute:
- Go to Advanced. β Terminal.
- Enter the command: dd if=/dev/zero of=/dev/block/by-name/misc
β οΈ Note: On devices with MediaTek (e.g. Redmi Note) 11) post-fix TWRP It can go down. It's treated with patchy firmware. vendor_boot through TWRP.
fastboot flash disable_miui_anti_rollback 1This team is disabling the defense mechanism. MIUI, squash-recovery.-->
Solving common installation errors
Even with the correct following of the instructions, problems can arise, and here are the most common mistakes and their solutions:
| Mistake. | Reason. | Decision |
|---|---|---|
| FAILED (remote: 'Flashing is not allowed...') | The bootloader is not unlocked | Repeat the unlocking procedure with the Mi Unlock Tool |
| Invalid sparse file format at header | The damaged TWRP file | Download the image again, check the checksum (MD5) |
| The phone does not load after the firmware | Incompatible version of TWRP or not disabled by AVB | Swipe the stock firmware through the Mi Flash Tool, then repeat with the correct version |
| TWRP does not see internal memory | FBE encryption or damaged partitions | Format /data in TWRP (Warning: Delete all data!) |
If the TWRP is installed and the phone is loaded into a stock recave, MIUI has overwritten it, so that it can be avoided:
- Immediately after the firmware TWRP reboot it (fastboot reboot recovery).
- In TWRP, go to Advanced β Flash Current TWRP.
- Please. disable_miui_anti_rollback.zip (download XDA).
For devices with MediaTek (like Redmi 10A), you may need to add a patched preloader firmware, without which the phone wonβt boot, and look for instructions in your 4PDA model themes.
π‘
If the TWRP is leaking and the sensor is not working, you have downloaded the version for another model, and you must run the correct version immediately, otherwise you risk getting a brick.
What to do after installing TWRP
Successful installation of the recaveri is only half the battle.
- Make a full backup: In TWRP Choose Backup. Tap the sections: Boot, Data, System, Vendor. Save backup to SD-card or PC (internal memory can be encrypted).
Install Magisk for root rights
- Download the latest Magisk.zip from GitHub.
- In TWRP, select Install and file.
- Restart β the Magisk app will appear on the menu.
- Disable Forced Encryption (if necessary): In TRP: Advanced β File Manager β go to /data/system and delete files: *.key locksettings.db locksettings.db-wal locksettings.db-shm
If you plan to install custom firmware, first check its compatibility with your model on the developer's website.
- π± LineageOS β pure Android without unnecessary applications
- π± Pixel Experience β firmware with Google Pixel features
- π± crDroid β Balance between performance and functionality
- π± MIUI EU β formal MIUI China-bound
β οΈ Note: After installing custom firmware, Widevine may stop working L1 (no HD into Netflix/Disney+). This is treated with the firmware of a patched vendor or Magisk module.
How to return stock recaps and warranty
If you want to return everything as it was, follow this instruction:
- Download the stock firmware for your model from the Xiaomi website (choose the Fastboot version).
- Unclose the file and find the images inside the folder.
- Fastboot: Fastboot Flash Recovery recovery.img For devices with dynamic partitions: fastboot flash recovery_ramdisk recovery.img
- Reboot to stock recavator and run Wipe Data.
- Swipe the full stock firmware through the Mi Flash Tool (select the clean all option).
To return the guarantee, you need:
- Lock the bootloader back (via the Mi Unlock Tool, but this will only work if you haven't changed the anti-rollback).
- Remove all traces of root rights (in Magisk, select Uninstall β Complete Uninstall).
- Sending the official firmware through EDL-Mode (requires an authorized Xiaomi account).
Note that new models (Xiaomi 13, Redmi Note 12) are almost impossible to return the warranty β the company keeps a log of changes in the persist section, and the service center will find this even after a complete reset.
FAQ: Frequent questions about TWRP on Xiaomi
Can I install TWRP without unlocking the bootloader?
Why does TWRP ask for a password when downloading?
How to upgrade TWRP to a new version?
Can I install TWRP on Xiaomi with a MediaTek processor?
What if the phone does not turn on after installing TWRP?
EDL-mode (for advanced):
- Requires an authorized Xiaomi account.
- Connect the phone in EDL mode (clip Volume Up + Volume Down + Power).
- Fluidify through QFil or Mi Flash Pro.
If nothing helps β contact the service center, but keep in mind that repairs under warranty will not be possible.