How to go to TWRP Recovery on Xiaomi smartphones: from unlock to launch

Why you need TWRP on Xiaomi and when to use it

TWRP (Team Win Recovery Project) is a powerful tool for Xiaomi smartphone owners that opens up opportunities far beyond the standard Mi Recovery. With it, you can install unofficial firmware, backup the entire system (nandroid backup), restore data after crashes, and obtain root rights through Magisk. However, transitioning to TWRP requires preliminary preparation – without an unlocked bootloader and properly installed recovery, you risk getting a β€œbrick”.

In this article, we will discuss the current ways of entering the TWRP Xiaomi in 2026, including models with Qualcomm and Mediatek processors, and consider the typical errors that turn a smartphone into a useless piece of plastic. + Volume upwards, and it requires technical training. If you're a beginner, watch your every step carefully.

Warning: Incorrect actions can lead to loss of warranty, locking of the device or even physical damage to the chips (in case of errors when you run your firmware through fastboot).If your goal is simply to reset or update the MIUI, use standard methods through Settings β†’ About Phone β†’ System Update.

Preparation of the smartphone: unlocking the loader

The first and mandatory step is to unlock the bootloader, without which the TWRP won’t start, and attempts to install it will lead to the FAILED error (remote:’Flashing is not allowed in Lock State’).

  • πŸ”“ Requires to link your Mi Account to your device (minimum 72 hours of active use).
  • ⏳ Waiting. SMS-Unlocking code can take anywhere from a few minutes to 360 hours (15 days).
  • πŸ“± On some models (for example, Redmi Note 12 Pro)+ Xiaomi 13 Ultra unlock may not be available due to manufacturer policy.
  • πŸ’» You need a computer with installed drivers ADB and Fastboot.

Instructions for unlocking:

  1. Activate Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  2. Enable USB Debugging and OEM Unlock in the Settings menu β†’ Additional β†’ For developers.
  3. Download the official Mi Unlock Tool and log in to your Mi Account.
  4. Connect your smartphone to your PC in fastboot mode (turn off the device, then press Power + Volume down).
  5. Run the Mi Unlock Tool and follow the instructions. If you receive a waiting message, wait patiently.

⚠️ Note: Once the bootloader is unlocked, the smartphone will perform a hard reset. Store important data in advance on your PC or in the cloud. Also note that some banking applications (such as SberBank Online or Tinkoff) may stop working due to the SafetyNet trigger.

πŸ“Š What Xiaomi model are you trying to unlock?
Redmi Note 10/11/12
Xiaomi 12/13/14
POCO F3/F4/F5
Another model

Selecting the Right TWRP Version for Your Model

The error in choosing a version of TWRP is one of the main reasons for the β€œbricking” of smartphones, because recovery must match not only the model, but also the exact modification of the device. For example, the Redmi Note 11 Pro 5G (codename veux) and Redmi Note 11 Pro 4G (codename peux) require different files.img.

Where to look for the current versions:

  • 🌐 Official website TWRP β€” Here are published stable assemblies for popular models.
  • πŸ“₯ Telegram channels of developers (for example, Xiaomi Firmware Updater or TWRP for Xiaomi).
  • πŸ”§ XDA-Developers Forum – Unofficial ports for new devices are often posted here.

How to check compatibility:

  1. Find out the code name of your model: adb shell getprop ro.product.device Or look at Settings β†’ About Phone β†’ Model (for example, Redmi Note 10 Pro is sweet).
  2. Compare the code name to the file name TWRP. For example, for sweet look for a file of the view twrp-3.7.0_12-0-sweet.img.
  3. Check the build date – if the file is older than 6 months, look for a more recent version.
Xiaomi modelCode nameProcessor typeRecommended source of TWRP
Redmi Note 12 Pro+ 5GrubyMediatek Dimensity 1080XDA-Developers (unofficial port)
Xiaomi 13fuxiQualcomm Snapdragon 8 Gen 2Official website of TWRP
POCO F4 GTingresQualcomm Snapdragon 8 Gen 1Telegram channel POCO Updates
Redmi 10CfogQualcomm Snapdragon 680Official website of TWRP

⚠️ Note: On devices with Mediatek processors (e.g. Redmi Note 11 or POCO M4 Pro) installation of the wrong version TWRP may result in loss IMEI Always check user reviews before firmware.

πŸ’‘

If you can’t find TWRP for your model, try searching by platform code (e.g. sm6225 for Snapdragon 695) – sometimes ports are made for entire families of chipsets.

Installing TWRP on Xiaomi: a step-by-step process

When the bootloader is unlocked and the correct version of TWRP is downloaded, you can start installing it. There are two main methods: through fastboot (recommended for most models) and through the TWRP Official App (only for some devices), and we'll look at the first method, because it's universal.

Tools required:

  • πŸ–₯️ Computer with Windows/Linux/macOS and established ADB/Fastboot.
  • πŸ“± Smartphone with unlocked bootloader and enabled debugging USB.
  • πŸ”Œ Cable USB Type-C (preferably original).
  • πŸ“ Twrp version-name-model.img file (rename it to: twrp.img convenienceally).

Instructions for installation via fastboot:

β˜‘οΈ Preparation for installation TWRP

Done: 0 / 5
  1. Turn off your smartphone and put it in fastboot mode (clip Power + Volume down).
  2. Connect the device to your PC and check for detection: fastboot devices should show a serial number of the device.
  3. TWRP command: fastboot flash recovery twrp.img
  4. For partition devices recovery_ab (for example, Xiaomi 12T) Use: Fastboot Flash recovery_ab twrp.img
  5. After a successful firmware, don't reboot! go straight to TWRP: fastboot boot twrp.img

If it went well, you'll see the TeamWin logo and the main recovery menu, and you can start building backups or installing custom firmware.

What if fastboot doesn’t see the device?
1. Check the drivers – download the Mi Flash Tool for automatic installation. 2. Try another one. USB-port (preferably) USB 2.0). 3. Disable driver signatures in Windows (use bcdedit for this). /set nointegritychecks on in command line from the administrator). 4. Nana Mac/Linux Add a rule for udev (instructions are available on the site) TWRP).

How to Sign In to TWRP Recovery on Xiaomi

Once you install TWRP, there are three ways to upgrade to it:

  1. Fastboot boot twrp.img This method does not replace stock recovery, but allows you to boot once to TWRP.
  2. Through the button combination: Turn off your smartphone. Press Power + Volume up for 5-10 seconds. When the Mi logo appears, release the power button, but keep Volume up.
  3. Available via ADB terminal (if the system is booted): adb reboot recovery

Important: On some models (e.g., POCO F5 or Redmi K60), a button combination can lead to stock recovery, in which case use fastboot boot or set TWRP as a permanent recovery (fastboot flash recovery command).

If you're asked to enter a password after you log in to TWRP, and you don't remember it, don't try to guess. Three wrong attempts will result in all the data being erased.

  1. Connect your smartphone to your PC.
  2. In TWRP, select Advanced β†’ File Manager.
  3. Go to /data/system and delete locksettings.db, locksettings.db-wal, locksettings.db-shm files.
  4. Reset, the password will reset.

πŸ’‘

If after installing TWRP smartphone loads into stock recovery, then the firmware MIUI overwrote your custom recovery. Solution: disable automatic update recovery in the settings TWRP (Settings menu β†’ Prevent MIUI from overwriting recovery).

Typical errors and their solutions

Even experienced users have problems with TWRP, and here are the most common errors and ways to fix them:

Mistake.Reason.Decision
FAILED (remote:'Flashing is not allowed in Lock State')The bootloader is not unlockedUnlock the bootloader through the Mi Unlock Tool
Invalid sparse file format at header magicThe.img file is damaged.Download the file again, check the MD5 checksum
The smartphone does not turn on after firmwareIncompatible version of TWRP or interrupted processSwipe stock firmware through Mi Flash Tool in clean all mode
TWRP does not see internal memoryData Encryption (FBE)Enter your password in TWRP or format data (loss of data!)

The OrangeFox Recovery error (alternative to TWRP) is particularly insidious when the smartphone goes into a bootloom after installation, due to conflict with the kernel modules.

  1. Download the kernel (boot.img) from stock firmware for your model.
  2. Fastboot: fastboot flash boot.img
  3. Reset the TWRP.

⚠️ Note: If you have been manipulated by TWRP If your camera or fingerprint sensor stops working, you're probably running an incompatible firmware, and you can only restore functionality by going back to the sewage software.

Security and recommendations after TWRP installation

Successful TWRP installation is only half the battle, and now you need to keep the system running smoothly and protect the data.

  • πŸ”„ Create a full backup through Backup in TWRP. Select the Boot, System, Data sections, EFS (For models with Mediatek, save a copy on PC.
  • πŸ›‘οΈ Turn off automatic updates MIUI, Otherwise, stock recovery will re-write TWRP: Settings β†’ The phone. β†’ Updating the system β†’ βš™οΈ β†’ Auto-update β†’ Turn it off.
  • πŸ”‘ Install Magisk for root rights management. Download only from the official GitHub repository.
  • πŸ“΅ Do not delete system applications without checking, for example, deleting com.qualcomm.qti.telephonyservice will result in network loss.

If you plan to install custom firmware (like LineageOS or Pixel Experience), first check their compatibility with your model on the XDA forum.

For owners of devices with Mediatek (for example, Redmi Note) 11 or POCO M4 Pro) it is important to keep the nvram and nvdata partitions, which are responsible for the operation of wireless modules. Wi-Fi/Bluetooth even after returning to the stock firmware.

πŸ’‘

Before installing any firmware through TWRP, check the hash amount (SHA-256) of the downloaded file, which will prevent firmware from corrupting or fake files.

FAQ: Answers to Frequent Questions

Can I install TWRP without unlocking the bootloader?
No, it's technically impossible. All modern Xiaomi smartphones (starting with the Redmi Note 5) have Anti-Rollback protection, which blocks changes to recovery and boot partitions on locked devices. Any attempts to circumvent this will lead to hard brick (irreparable damage).
Why does the TWRP install not load the smartphone into the system?
This is because: Incompatibility of the TWRP version with your firmware (e.g., trying to use TWRP for MIUI 14 on MIUI 13); damage to the data partition when formatting; lack of boot.img file compatible with your kernel; Solution: run the stock firmware through the Mi Flash Tool in clean all and lock mode, then repeat the procedure.
How to Recover Stock Recovery After TWRP?
Download the official firmware for your model from Xiaomi. Unpack the archive and find the file recovery.img. Fastboot: Fastboot Flash Recovery recovery.img For devices with recovery_ab Use: Fastboot Flash recovery_ab recovery.img
Can I update my MIUI via TWRP?
Yes, but with reservations: Download the full ones ZIP-firmware archives (not OTA-Before upgrading, back up your current system. Don't upgrade over the air, it will lead to a rewriting. TWRP It is better to use specialized tools like XiaomiTool. V2 Mi Flash.
Why does TWRP ask for a password if it doesn't exist?
This involves encrypting the data partition (File-Based Encryption, FBE). PIN, Android encrypts user data by default. Solutions: If you remember the password from the previous lock screen, enter it. If you don't remember, format data (lost all data!): in TWRP, select Wipe β†’ Format Data and type in yes. For models with Mediatek, stock boot.img with decrypted (look for modified cores on XDA) can help.