How to put recovery on Xiaomi: full instructions with unlocking the bootloader

Installing custom recavators on Xiaomi smartphones is the first step to full control of the device, which will allow you to install unofficial firmware, backup the system (nandroid backup), recover data after crashes and even bypass some of the limitations of MIUI. However, the process requires care: error at any stage can turn the phone into a β€œbrick”. In this article, we will discuss three officially supported ways of installing TWRP (the most popular custom recavers), including unlocking the bootloader through the Mi Unlock Tool, choosing the correct version of the recavers for your model and solving typical problems.

It is important to understand that the procedure is different for different Xiaomi lines. For example, flagships of the Xiaomi 13/14 series or Redmi Note 12 will require a more recent version of TWRP than for older models like Redmi 4X or Mi A1. In addition, since 2023, the company has tightened the policy of unlocking the bootloader: now for some regions, it is required to wait up to 720 hours (30 days) after linking the Mi Account to the device.

If you’ve never worked with fastboot or ADB before, don’t worry β€” we’ll explain each step in detail, including installing the necessary drivers and programs. For experienced users, we’ll give you alternative methods, such as installing a recoverer through the OrangeFox app or patching a boot image through Magisk.

1.Preparation: What to do before installing a recaveri

Before you start installing, make sure your device meets the key requirements. First, check the smartphone model – go to Settings β†’ About Phone β†’ Model. For example, the Redmi Note 11 Pro+ 5G has the code name veux, and the Xiaomi 12T is plato. This information is critical for choosing the right version of TWRP.

Secondly, it is imperative that:

  • πŸ”‹ Charge your phone to at least 60% – this will prevent a sudden shutdown during the procedure.
  • πŸ” Back up important data (photos, contacts, messages) on Google Drive or computer. Installing a Recovery can cause resets.
  • πŸ–₯️ Prepare a PC with Windows 10/11 (Mi Unlock Tool is not officially supported macOS/Linux).
  • πŸ“₯ Download the latest version of Mi Unlock Tool and drivers ADB/Fastboot (for example, Android SDK Platform-Tools).

Also check if the bootloader is unlocked. To do this, turn off the phone, then press Volume Down + Power to enter fastboot mode. Connect the device to the PC and type in the command line:

fastboot oem device-info

If you see Device unlocked: false in the answer, the bootloader is locked, you need to unlock it (more on this in the next section). If true, you can immediately go to install the Recovery.

⚠️ Attention: On devices with MIUI 14 and later, you may need to disable the option Data Protection when unlocking in Settings β†’ Additionally. β†’ For developers, otherwise, once the bootloader is unlocked, the phone will reset completely.

2 Unlock the bootloader through the Mi Unlock Tool

This is the most formal (and longest) way, with Xiaomi requiring a Mi Account to be linked to a device and waiting for a set time. For new models (released after 2022), this period is 720 hours (30 days), for old models, from 72 to 168 hours.

Instructions for unlocking:

  1. Turn on Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  2. Back to Settings β†’ Additionally. β†’ For developers and activate: πŸ”“ Unlocking OEM (may be called OEM Unlocking). πŸ”Œ Debugging by USB.

Mi Unlock Tool

Mi

Added successfully. Wait for {X} hours

After the waiting period has expired:

  1. Go back to fastboot (Loudness down + Power).
  2. Connect your phone to your PC and press Unlock in the Mi Unlock Tool.

⚠️ Note: On some models (e.g, POCO F5 or Redmi K60) When you unlock the bootloader, you automatically reset the settings to the factory settings!

πŸ“Š What Xiaomi model do you use?
Redmi Note 10/11/12
POCO F/X/M
Xiaomi 12/13/14
Redmi K40/50/60
Another model

3.Selecting the Right TWRP Version for Your Model

Installing an incompatible version of the Recaveri is one of the main reasons for the phone to β€œbrick”: to avoid this, use the official TWRP Devices website or proven sources like XDA Developers. Below is a table with current versions for popular models (June 2026):

Xiaomi modelCode nameThe latest version of TWRPDownload link
Redmi Note 12 Pro+ 5Gruby3.7.0_12-0Download
POCO F5marble3.7.0_12-1Download
Xiaomi 13 Ultraisis3.7.0_12-0 (port)XDA
Redmi 10Cfog3.6.2_11-0Download
Mi 11 Lite 5G NElisa3.7.0_12-0Download

If your model is not in the table:

  • πŸ”Ž Look for the thread on XDA Developers by device code (e.g. veux for Redmi Note 11 Pro)+).

πŸ’‘

If you're on the site TWRP If you don’t have your model, try looking for unofficial ports in telegram channels like @TWRP_updates or @XiaomiFirmwareUpdater. But remember, these versions may be less stable.

Installation of TWRP via fastboot (main method)

This is the most reliable way, running on 90% of Xiaomi devices.

  • πŸ–₯️ Computer with installed ADB/Fastboot.
  • πŸ“± Unlocked loader (see section 2).
  • πŸ“ Recovery file in.img format (for example, twrp-3.7.0_12-0-ruby.img).

Step-by-step:

β˜‘οΈ Installation TWRP fastboot

Done: 0 / 5
  1. Place the twrp-*.img file in the folder with the platform-tools (where fastboot.exe and adb.exe are located).
  2. Open the command line in this folder (Shift + right mouse button β†’ Open in the terminal).
  3. Check the connection to the device: fastboot devices must display the serial number of the phone.
  4. Install Recovery: Fastboot Flash Recovery twrp-3.7.0_12-0-ruby.img (Replace the file name with yours).
  5. Reboot to Recavers directly from fastboot (important!): fastboot boot twrp-3.7.0_12-0-ruby.img

If after the restart, the phone starts up again in the standard MIUI recavator, then the system has overwritten TWRP.

  • πŸ”„ Repeat the command fastboot flash recovery and immediately boot to the TWRP via fastboot boot.
  • πŸ› οΈ V TWRP Go to Advanced. β†’ Flash Current TWRP (if the option is available).
  • πŸ”§ Install Magisk or OrangeFox to block recapture.
What if the fastboot can’t see the device?
1. Check if Android Bootloader Interface drivers are installed in Device Manager. 2. Try another one. USB-cable (preferably original). 3. Disable driver signatures in Windows (use bcdedit command for this). /set nointegritychecks on in CMD on behalf of the administrator). 4. Reinstall. ADB/Fastboot through the Minimal ADB and Fastboot.

5. Alternative methods of installation of the recaveri

If fastboot doesn't work for some reason, there are other ways to do it. Let's look at two proven options.

Method 1: Installation via OrangeFox

OrangeFox is a modified TWRP-based recovery with advanced features (e.g. MIUI OTA support and built-in file manager) suitable for most Xiaomi devices on Android 11-14.

Instructions:

  1. Download. APK-OrangeFox file from the official website.
  2. Install the app on your phone (allow installation from unknown sources).
  3. Open OrangeFox, select your model and click Download.
  4. After downloading, press Flash and confirm the reboot to the Recovery.

Method 2: Patching a boot image through Magisk

This is a good way to do it if you're already using Magisk for root rights, and it allows you to install TWRP without completely flashing it.

Steps:

  1. Download boot.img file for your firmware (you can extract from the official MIUI ROM via Xiaomi Firmware Updater).
  2. Open Magisk, click Install β†’ Select and Patch a File and select boot.img.
  3. After patching, copy the file magisk_patched-*.img.
  4. Fastboot: Fastboot Flash Boot magisk_patched-26200_XXXX.img
  5. Install TWRP as a module in Magisk (available in the module repository).

⚠️ Note: On devices with Dynamic Partition (e.g. Xiaomi) 12/13/14) patching boot.img This can lead to a boot cycle, in which case, use fastboot flash recovery.

6. Solving typical errors when installing a recavery

Even if you follow the instructions accurately, you can have problems, and let's look at the most common ones and how to fix them.

Mistake.Reason.Decision
FAILED (remote: 'Flashing is not allowed in Lock State')The bootloader is not unlockedUnlock the device using the Mi Unlock Tool (see Section 2)
Invalid sparse file format at header magiThe.img file is damaged.Download the image again, check the checksum (MD5)
The phone is loaded into the standard MIUI recavatorThe system re-recorded TWRPSqueeze TWRP again and download it immediately through fastboot boot.
No command after the rebootIncompatible version of TWRPFind the correct version for your device code
Cyclical reboot (bootloop)Boot or recovery damagedSweep the original boot.img through fastboot flash boot

If the phone doesn’t turn on at all (hard brick), try:

  • πŸ”Œ Connect to charging for 30 minutes - sometimes helps with battery discharge.
  • πŸ”§ Scroll it out MIUI ROM via Mi Flash Tool (instructions on the official website).
  • πŸ“‘ Contact the service center if software recovery does not help.

πŸ’‘

If the phone doesn't boot after installing the recovery, don't panic. 90% of the time, the problem is solved by running the original boot.img or the full MIUI ROM through fastboot.

7 First steps after installing TWRP

After successful installation of the recaveri, it is recommended to perform several key actions to secure the device and prepare it for further manipulation.

List of mandatory actions:

  • πŸ“ Make a full backup of the current firmware: TWRP Go to Backup. Select the Boot, System, Data, Vendor partitions. Click Swipe to Back Up and wait until it's done.
  • πŸ”’ Install Magisk for root rights (if needed): Download the latest version of Magisk (.zip) from GitHub. TWRP Click Install, select the file and confirm the installation.

FBE

Format data β†’ enter Yes

Attention:

Also useful:

  • πŸ”„ Set up automatic updates TWRP via Official Appendix TWRP App (available on Google Play).
  • πŸ“‚ Create a separate folder for SD-card OTG-storage-storage.
  • πŸ”§ Install Magisk modules for advanced functions (e.g, ViPER4Android for sound or LSposed for modifying system applications).

8. Frequent Questions (FAQ)

❓ Can we determine TWRP loader-free?
No, on all modern Xiaomi devices (after 2016), the bootloader is locked by default. Without it unlocking through the Mi Unlock Tool, you can't flash custom recoveries. The only exception is some older Android 5-6 models where exploits were possible (like DirtyCOW), but this is not relevant for new devices.
❓ Why After Installation TWRP phone doesn't load?
This is a typical problem if: You have flashed an incompatible version of TWRP (check the device code name); the boot or dtbo partition (you need to flash the original boot.img); Forced encryption (FBE) is enabled and TWRP does not support it (the solution is to format data); To restore: Sweep the original boot.img through fastboot flash. Install the correct version of TWRP and try again.
❓ How to update TWRP before?
There are two ways: Through the recovery itself: Download a new.img file to your phone. In TWRP, click Install β†’ Install Image and select the file. Specify the Recovery section and confirm the installation. Through fastboot: fastboot flash recovery twrp-new-version.img After the update, immediately download to the new recovery via fastboot boot twrp-new-version.img.
❓ Can I get back the standard Recovery? MIUI?
Yes, for this: Download the official MIUI ROM for your model from Xiaomi. Remove the recovery.img file (usually in the image folder) from the archive. Sweat it through fastboot: fastboot flash recovery.img After that, the standard recovery will be restored, but the bootloader will remain unlocked.
❓ Does it work? TWRP Xiaomi on Android 14?
Yes, but with reservations: Android 14 requires TWRP version 3.7.0 or later. Some features (such as FBE decoding) may not work well. Dynamic Partition devices (such as Xiaomi 13/14) need to use special TWRP builds with super.img support. Check compatibility with XDA Developers before installing.