How to put recovers on Xiaomi: from unlocking the bootloader to installing TWRP

Installing custom recavators on Xiaomi smartphones is the first step to full control of the device, which allows you to flash informal firmware, backup the system, recover data after crashes, and even β€œreanimate” the phone if it stopped booting. However, the process requires care: a mistake at any stage can turn the gadget into a β€œbrick”.

In this article, we will analyze all the stages - from unlocking the bootloader to choosing between the two. TWRP And OrangeFox, and we'll also tell you how to avoid common mistakes. POCO Android-based 10-14, including the new Snapdragon chips 8 Gen 3 Dimensity 9300. If your device is older than yours 2018 Check the compatibility of the firmware separately.

1.Why do you need custom recavers on Xiaomi?

Stock recavators from Xiaomi is very limited: it allows you to only reset settings or install official updates through the OTA. Castomy solutions like TWRP Or OrangeFox offers more opportunities:

  • πŸ”„ Backup of the entire system (including /data and /system) img or.tar.
  • πŸ“± Installation of unofficial firmware (LineageOS, Pixel Experience, MIUI Pro and others.).
  • πŸ”§ Rooting a device through Magisk without losing data.
  • πŸ› οΈ Restore the system after unsuccessful experiments with firmware.
  • πŸ”’ Bypassing lockdown FRP (Google Accounts on some models.

For example, if you want to put Google Camera on the Redmi Note 12, but the stock firmware does not support it. Camera2API, custom recaps will allow you to flash a modified camera module, or if after the update MIUI The phone started to brake, you can roll back to the previous version through the backup.

⚠️ Note: Installing custom recavers will void Xiaomi’s warranty and may result in the blocking of services like Mi Pay or Mi Cloud. On some models (such as Xiaomi 13 Ultra), this also disables Widevine support. L1, Why Netflix and Disney are+ They will only work in 480p.

πŸ“Š What kind of firmware do you plan to install after the recavity?
Stock MIUI rustily
LineageOS (Pixel Experience)
Backup only.
Not yet.

Preparation: unlocking the loader

Without the bootloader, it is impossible to install a custom recavator. Xiaomi officially allows you to unlock it, but the process requires waiting and bundling with the Mi Account.

Steps to unlock:

  1. Connect the device to your Mi Account in settings (Settings β†’ Xiaomi Account).
  2. Activate debugging on USB: Settings β†’ The phone. β†’ Version. MIUI (press 7 times) Settings β†’ Additionally. β†’ For developers β†’ Debugging by USB
  3. Install Mi Unlock Tool on PC (Windows only).
  4. Connect your phone in Fastboot mode (turn off the device, then press Power + Volume Down).
  5. Start the Mi Unlock Tool, log in and follow the instructions. It usually takes 72 to 168 hours (depending on the model).

On new devices (for example, Xiaomi 14 or Redmi) K70) Additional confirmation may be required through SMS ortress SIM-If the Mi Unlock Tool gives you a Couldn't unlock error, check it out:

  • πŸ”Œ Cable USB (Better to use the original).
  • πŸ–₯️ Mi Unlock Tool (should be the last version).
  • πŸ“± Mi Account Status (no restrictions).

⚠️ Attention: Unlocking the bootloader erases all data from the device! backup photos, contacts and apps via Mi Cloud or Google Drive.

Linking Mi Account to phone|Enable debugging on USB|Download Mi Unlock Tool|Prepare original USB-cable|Make a data backup-->

3.The choice of the Recovery: TWRP vs OrangeFox

The two most popular custom recavators for Xiaomi are: TWRP (Team Win Recovery Project) and OrangeFox. both free but have key differences:

CriteriaTWRPOrangeFox
Support for modelsA wide list, but some new chips (like the Snapdragon 8 Gen 2) are backed with a delayFaster adds support for new devices, including Dimensity chips
Interface.Classic, touchy. + button-controlMore modern, with dark theme and gestures
FunctionsBasic: backup, recovery, firmwareAdvanced: Built-in file manager, Magisk support and APK-firmware
StabilityTime-tested, fewer bugsSometimes there are errors on new devices.
Support A/B-sectionYes (but requires manual adjustment)Yes (automatic definition)

For most users, OrangeFox is preferred because of its convenience, but if you want maximum stability (e.g., for Xiaomi). 12T or POCO F5), choose TWRP. Check the support of your model on official websites:

  • 🌐 List of devices TWRP
  • 🦊 List of OrangeFox devices

If your model is not listed, look for informal builds on forums. XDA Developers or 4PDA. For example, the Redmi Note 11 Pro+ 5G (veux) is informal TWRP mauronofrio.

πŸ’‘

Before downloading the recovery, check out its version! for Android devices 13/14 need TWRP 3.7.0+ Or OrangeFox. R11.1+, Otherwise, there may be problems with encryption. /data.

4.Installation of the Recovery via Fastboot

The most reliable way to flash a Recovery is through Fastboot mode.

  • πŸ–₯️ Windows or Linux computer (may have driver problems on MacOS).
  • πŸ“‹ Recovery file in.img format (for example, twrp-3.7.0_veux.img).
  • πŸ”Œ Cable USB (preferably original).
  • πŸ› οΈ Quickboot and Adb (part of Android) SDK Platform-Tools).

Step-by-step:

  1. Unpack the platform-tools in a folder on the disk C:\ (for example, C:\platform-tools\).
  2. Place the recovery file in the same folder and rename it to recovery.img.
  3. Open the command line (Win) + R β†’ enter cmd) and go to folder: cd C:\platform-tools\
  4. Connect your phone in Fastboot mode (turn off the device, then press Power + Volume Down).
  5. Check the connection command: fastboot devices must display the serial number of the device.
  6. Fastboot flash recovery recovery recovery.img
  7. Reboot to Recavers without releasing the volume button up: fastboot reboot recovery

If after the reboot you again fall into the stock Recovery, then your device is used. A/B-sections (for example, on Xiaomi) 11T or POCO X5 In this case, you need to flash the Recovery on both slots:

fastboot flash recovery recovery.img


fastboot flash recovery_b recovery.img

⚠️ Note: Some models (e.g. Redmi) K50 Gaming) after the firmware recovery is required to disable the verification of the bootloader signature by the command: fastboot flashing unlock_critical Without this, the device may not boot!

What if fastboot doesn’t see the device?
1. Install the Mi Flash Tool drivers (download on the official website). 2. Check the port USB (better USB 2.0 on the back of your PC. 3. Try another cable (cheap cables often don't support Fastboot). 4. Disable the antivirus (it can block adb). 5. Run the command prompt on behalf of the administrator.

Alternative method: installation through ADB Sideload

If Fastboot for some reason does not work (for example, on Xiaomi Pad 6 with a blocked bootloader), you can install recovers through the ADB Sideload: This method requires that any custom or stock-enabled Recovery has already been installed on the device. ADB.

Instructions:

  1. Download the recovery file in.zip format (for example, for OrangeFox).
  2. Connect your phone to your PC and go to Sideload: adb reboot sideload
  3. In the command line, do: adb sideload orangefox.zip
  4. Wait until the end (the progress bar will appear on the phone screen).

This method is convenient for devices with A/B-It's partitioned, because it automatically flashes recovers on both slots, but it doesn't work on all models, like Xiaomi. 13 Lite may need to pre-disable signature verification in drain Recovery.

If ADB Sideload is an error Total xfer: 1.00x, try:

  • πŸ”„ Rename the file to recovery.zip (gapless).
  • πŸ“₯ Download the file again (it may not have been downloaded completely).
  • πŸ”Œ Use the other USB-port.

πŸ’‘

Method ADB Sideload is suitable for devices with an already unlocked bootloader, but without a running Fastboot. It is also useful for firmware recovery on Xiaomi tablets, where the control buttons differ.

6.The first steps in a custom Recovery

Once you've successfully installed it, you'll be placed on the recapvere menu. TWRP OrangeFox is similar, but there are nuances:

Basic functions:

  • πŸ“ Backup – Backup partition (select System, Data, Boot).
  • πŸ“₯ Restore - Restore from the backup.
  • πŸ“¦ Install – installing.zip firmware (for example, Magisk or custom firmware).
  • πŸ”§ Wipe – partition cleansing (caution: Format Data will delete everything, including internal memory!).
  • πŸ”„ Reboot – Reboot to the system or Fastboot.

OrangeFox has additional options:

  • πŸ” File Manager - built-in conductor for working with files.
  • πŸ›‘οΈ Magisk Manager – Installation and management of the root.
  • πŸ“‘ OTA Updates – Download official updates MIUI straight out of the river.

The first thing you should do after you enter the recaveri is to create a full backup.

  1. Pick Backup.
  2. Check the boxes for Boot, System, Data, Vendor.
  3. Select a save location (preferably on MicroSD or OTG-flash-drive).
  4. Start the process (may take 10 to 30 minutes).

⚠️ Note: If you plan to flash custom firmware, do not format the Data partition manually - this may lead to loss of access to internal memory! Use the Format Data option only if the firmware requires complete cleaning.

7.Typical errors and their solutions

Even with the correct instructions, there can be problems, and here are the most common mistakes and ways to correct them:

Mistake.Reason.Decision
Fastboot: error: cannot load 'recovery.img'Recovery file is corrupted or in the wrong folderDownload the file again and check the path in the command line
The phone does not load after the firmwareIncompatible version of the recovery or will not stitch the bootSwipe the stock firmware through the Mi Flash Tool and repeat the process
E: Unable to mount /dataEncryption /data (Android 10+)Enter the password from the lock screen in the Recovery or format Data
This package is for "veux" device; this is a ""Wrong device modelCheck the code name of your device (e.g. veux for Redmi Note 11 Pro)+ 5G)
Recaveri resets after rebootingOn the device with A/B-sectionalized only one slotSwitch the recovery to both slots (recovery and recovery) recovery_b)

If after installing the Recovery phone is stuck on the logo MIUI, try:

  1. Hold the Power. + Volume Up 10-15 seconds for forced reboot.
  2. If it doesn't help, go ahead. boot.img Fastboot flash boot from the fastboot flash boot boot.img
  3. In extreme cases, complete the reset via the Mi Flash Tool (select clean all).

On devices with Dynamic Partition (for example, Xiaomi 12 Pro) you may need to manually resize partitions. TWRP Choose the Wipe β†’ Format Data β†’ Yes, and then manually re-mark the memory through Advanced. β†’ Resize System.

How to find out the code name of your Xiaomi?
1. Install the DevCheck app from Google Play. 2. Open the Hardware tab β†’ Model 3. For example, POCO X4 Pro 5G The code name is vexer, and for Xiaomi 11 Lite 5G NE β€” 4 You can also check out the Fastboot command: fastboot getvar product.

8. What to do after installing the recaveri?

Now that you have a custom recaveri, you can:

  • πŸ” Get root rights through Magisk (download the last one) Magisk.zip and run through Install).
  • πŸ“± Install custom firmware (e.g. Pixel Experience for pure Android or MIUI EU publicity).
  • πŸ”„ Make a backup. EFS (section IMEI and modem) in case of network loss.
  • πŸš€ Overclock the processor (on some models through KernelSU cores).

If you plan to sew custom firmware, first check its compatibility with your model in the forum. XDA. For example, the firmware LineageOS for Redmi Note 10 Pro (sweet) is not suitable for the Redmi Note 10 Pro 5G (chopins are different devices!

To install Magisk:

  1. Download the last one. Magisk-v26.4.zip GitHub.
  2. Reboot to the recaverie.
  3. Choose Install. β†’ point the way Magisk.zip β†’ Swipe to confirm.
  4. Reboot to the system.

After obtaining root rights, install Magisk Manager (or Magisk Delta for Android 13)+) If SafetyNet doesn't work, activate MagiskHide and Enforce DenyList.

⚠️ Attention: On devices with MIUI 14 The newer Magisk may not work because of the AVB 2.0. In this case, you need to add extra disable_avb.zip Or use Magisk Delta.

πŸ’‘

After installing the recovery and root, do not update through OTA! Stock updates MIUI They can overwrite the recavers and cause them to freeze. TWRP Or OrangeFox.

FAQ: Frequent questions

Can I install the recavators without unlocking the loader?
No, on all modern Xiaomi devices (after 2017), unlocking the bootloader is mandatory.The only exception is some older models on MediaTek (like Redmi). 4X), where you can use exploits like MTK Bypass, but it's unstable and dangerous.
How do you get the stock recap?
To return the original Recovery, download the stock firmware for your model from the site MIUI Download, unpack it and stream it. recovery.img Fastboot: Fastboot Flash Recovery recovery.img Then reset via fastboot erase userdata.
Why does the phone not see internal memory after installing the recaveri?
It's because of encryption. /data Android 10+. Enter the password from the lock screen in the recavery (in TWRP If the password doesn't work, format Data (all data will be deleted!): Wipe β†’ Format Data β†’ Yes
Can I install recovery on Xiaomi without a computer?
Technically, yes, but it's complicated and risky. It'll take: Unlock the bootloader through the Mi Unlock Tool (you still need a PC), install Flashify or Rashr (requires root). Download recovery.img Directly to your phone and flash through the app, but this method doesn't work on all devices and can lead to bootloop.
Which Recovery Is Best for Xiaomi 13 Pro?
For Xiaomi. 13 Pro (nuwa) recommended by OrangeFox R11.1, because it is better supported A/B-Partitions and Dynamic Partition. TWRP For this model is still in the testing stage and may not work properly with encryption /data.