How to install custom TWRP recavators on Xiaomi Redmi Note 7: the complete guide 2026

Installing custom TWRP recavator on Xiaomi Redmi Note 7 (codename lavender) gives you access to the advanced features of your smartphone: from creating full backups to install custom firmware such as LineageOS or Pixel Experience. However, the process requires care - an error at any stage can lead to a "brick" device or loss of data. In this article, we will discuss the current methods of installing TWRP 3.7.0 + taking into account the features of the Redmi Note 7, including bypassing the locks Mi Anti-Rollback and working with an unlocked bootloader.

Many users have trouble trying to install receptacles via fastboot – the device may not be identified, issue a FAILED error (remote: 'Not allowed in Lock State') or fixate on the Mi logo. We will explain in detail how to avoid these errors, which versions of TWRP are compatible with your firmware, and what to do if the phone does not boot after installation.

⚠️ Note: Installing custom recavery voids the Xiaomi warranty and can lead to unstable operation of the device. If you are a beginner, we recommend first learn the basics of working with the company. ADB and fastboot on a test device or emulator.

Preparation of the device: unlocking the loader

Before installing TWRP, you need to unlock the bootloader on the Redmi Note 7. Xiaomi blocks it by default to protect against unauthorized changes. The unlocking process takes 7 to 30 days - this is the official requirement of the company for all devices released after 2018.

First, check the status of the loader:

  1. Turn off the phone.
  2. Press the Loudness Down + Power buttons to log in to fastboot.
  3. Connect the device to the PC and type the command: fastboot oem device-info

If you see Device unlocked: false in the answer, the bootloader is locked.

  • πŸ“± Download the official Mi Unlock Tool app from Xiaomi website (version no lower than 5.5.224.30).
  • πŸ”— Link your Mi Account to your device in settings (Settings) β†’ Xiaomi account β†’ Mi Cloud).
  • ⏳ Wait 168 hours (7 days) is the minimum time for new accounts. Older accounts (created before 2020) can unlock the bootloader faster.
  • πŸ”“ Launch the Mi Unlock Tool, log in to your account and follow the instructions.

⚠️ Note: If you are using Redmi Note 7 with firmware MIUI 12.5+, Unlocking through the Mi Unlock Tool may require additional confirmation SMS Make sure you have access to the linked phone number.

πŸ“Š What kind of firmware do you plan to install after TWRP?
LineageOS
Pixel Experience
Havoc OS
Stock MIUI with root rights
Another.

Select the TWRP version for Redmi Note 7 (lavender)

Not all TWRP builds are compatible with the Redmi Note 7. Using an inappropriate version can lead to encryption errors or inability to boot the system. At the moment (2026) the following options are recommended:

TWRP versionSupport for MIUISupport for section A/BFeatures
3.7.0_12-0MIUI 11–14Yes.The stable version supports File-Based Encryption (FBE) encryption.
3.6.2_11-0MIUI 10–13No.It's an outdated but reliable version for old firmware, and it doesn't support new image formats.
3.7.0_A12 (informal)MIUI 12.5+Yes.It is optimized for Android 12, but can conflict with some custom cores.

For most users, the best choice is TWRP 3.7.0_12-0. Unofficial versions (for example, from the developer mauronofrio) may contain additional features, but their stability is not guaranteed.

⚠️ Note: If your device is working on MIUI 13/14 Android 12/13, The stock recap can automatically overwrite TWRP To avoid this, after installing the Recovery, immediately run the file. disable_force_encrypt.zip or no_verity_opt_encrypt.zip self-indulgently TWRP.

Loader unlocked|Downloaded correct image TWRP lavender|Drivers installed ADB/Fastboot|Created backup data (photos, contacts, messages)|Battery charge β‰₯ 70%-->

3. Install TWRP via fastboot: step-by-step instruction

The most reliable way to install TWRP is through fastboot mode.

  • πŸ–₯️ Windows computer 10/11 Linux (macOS may have driver problems).
  • πŸ”Œ Cable USB Type-C (preferably original).
  • πŸ“¦ Archive from Platform Tools (download from Android site).
  • πŸ“„ File. twrp-3.7.0_12-0-lavender.img (rename him in twrp.img convenienceally).

Instructions:

  1. Unpack Platform Tools in the root of the C:\ drive (the path should not contain spaces!).
  2. Place the twrp.img file in the platform-tools folder.
  3. Open the command prompt in this folder (click Shift + right mouse button β†’ β€œOpen command window”).
  4. Turn off the Redmi Note 7 and press Volume Down + Power to log into fastboot.
  5. Connect the phone to your PC and check the connection with the command: fastboot devices If the device is determined (the serial number will appear), continue.
  6. Enter the command to install TWRP: fastboot flash recovery twrp.img
  7. After a successful firmware, don't restart the device! First you have to boot into the TWRP, Otherwise, the stock recaveri will overwrite it. twrp.img

If you see an error after fastboot flash recovery FAILED (remote: 'Partition not found', your device uses dynamic partitions (A/B). In this case, use the command fastboot flash. recovery_ramdisk twrp.img.

πŸ’‘

If your PC doesn’t see your device in fastboot, try disabling driver signatures in Windows: open Start Settings (Shift + Reboot), select Disable Mandatory Driver Signature Verification and reboot.

4. Solving common installation errors

Even with the exact instructions, Redmi Note 7 users may face problems, and consider the most common ones and how to fix them:

Error 1: Device is not defined in fastboot

  • πŸ”Œ Check the cable and port USB (Try the port USB 2.0 on the back of the PC).
  • πŸ”„ Reinstall Mi drivers USB Driver (download from the official website).
  • πŸ–₯️ Disable the antivirus – it can block fastboot.

Error 2: After installing TWRP, the phone is loaded into a stock recave

This is due to the Anti-Rollback feature in MIUI.

  • πŸ”„ Right after the firmware. TWRP Get the fastboot boot command in there. twrp.img.
  • πŸ“ Flow through TWRP file disable_force_encrypt.zip (jump on XDA Developers).
  • πŸ”§ Turn off automatic update of the recovery in the settings MIUI (Settings β†’ The phone. β†’ Updating the system β†’ Three points. β†’ Settings β†’ Deactivate "Recaveri Auto-Update").

Error 3: TWRP asks for password when mounting /data

This is due to FBE (File-Based Encryption) encryption in Android 10+.

  1. In TWRP, go to Wipe β†’ Format Data (this will delete all data!).
  2. Or enter a password from your Mi Account (if you used it for encryption).
  3. For a permanent solution, pass no_verity_opt_encrypt.zip post-installation TWRP.
What if the phone does not turn on after installing TWRP?
If the Redmi Note 7 doesn’t respond to the power button, plug it into charging for 30 minutes, then try to pinch Volume Up + Power for 15-20 seconds. If that doesn’t help, run the stock firmware through the Mi Flash Tool in EDL mode (requires an authorized Xiaomi account).

5. TWRP setup and backup creation

After successfully loading into TWRP, the first thing you should do is create a full backup of the current firmware, which will allow you to restore the device in case of a failure.

  1. In the main TWRP menu, select Backup.
  2. Check the Boot, System, Data and Vendor sections.
  3. Select a save location (preferably on microSD if installed).
  4. Swipe to start the backup. It can take 10 to 20 minutes.

It is also useful to configure TWRP for convenience:

  • 🌐 Change your language to Russian: Settings β†’ Language β†’ Russian.
  • βš™οΈ Turn off signature verification ZIP-Files: Settings β†’ Zip file signature verification β†’ Shut down.
  • πŸ”’ Set a password for access to TWRP (Optional: Settings β†’ Screen lock.

⚠️ Note: Backup created in the TWRP, Not compatible with backups from MIUI Store it on a separate medium (such as a PC or cloud) and check the integrity of files before restoring it.

πŸ’‘

Backup in TWRP is your Brick insurance, and without it, device recovery may require EDL flashing, which is more complex and risky.

6.Return to drainage Recovery and restoration of guarantee

If you need to return the device to the service center or sell it, you need to remove the TWRP and restore the stock Recovery.

  1. Download the official firmware for Redmi Note 7 (lavender code) from the Xiaomi website.
  2. Unpack the firmware file and find the recovery.img file inside the folder.
  3. Fastboot: Fastboot Flash Recovery recovery.img
  4. Reboot the device to the stock recavator and perform a reset (Wipe Data).

Full restoration of the guarantee will also require:

  • πŸ”’ Block the bootloader through the Mi Unlock Tool (only possible on stock firmware without root rights).
  • πŸ“± Remove all traces of root access (if installed Magisk) using the Magisk Uninstaller module.
  • πŸ”„ Update the device to the latest version MIUI via the phone β†’ Updating the system.

⚠️ Note: Some Xiaomi service centers check the status of the bootloader through internal logs. If you unlock it, the warranty on the hardware (such as the screen or battery) can be saved, but denial of repair for software problems is almost guaranteed.

Frequently Asked Questions (FAQ)

Can I install TWRP without unlocking the bootloader?
No. Xiaomi blocks the entry to the recovery section on locked devices, and any attempt to circumvent this restriction (for example, through exploits) leads to a hard brick, a complete loss of the phone’s performance.
Why does the phone bootloop (cyclical reboot) after installing TWRP?
This is due to a conflict between the stock core and the custom recavΓ©ri Solutions: Sweat the full stock firmware through the Mi Flash Tool. Or install a custom core (e.g., FrancoKernel) compatible with TWRP. If the bootloop is accompanied by vibration, try pinching Loudness up + Power for 30 seconds to force shutdown.
How to upgrade TWRP to a new version?
The update is similar to the installation: Download a new image twrp.img. Load to the current TWRP. Select Install β†’ Install Image and specify the path to the new file. Select Recovery and swipe for firmware. Do not update TWRP through stock recaps, this will lead to loss of custom recovery.
Can I install TWRP on the Redmi Note 7 Pro? Is it the same?
No. The Redmi Note 7 Pro is codenamed violeta and requires a separate build of TWRP. Using the image for the lavender on the Note 7 Pro will cause a touchscreen error or inoperability in the recavator.
What if the sensor does not work after the TWRP installation?
This is a well-known problem with some unofficial builds. Solutions: Install another version TWRP (recommended 3.7.0_12-0). Connect. OTG-mouse β€” TWRP Supports management through USB-Check if the cable is damaged. USB Type-C (sometimes it affects the sensor in the recavery).