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:
- Turn off the phone.
- Press the Loudness Down + Power buttons to log in to fastboot.
- 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.
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 version | Support for MIUI | Support for section A/B | Features |
|---|---|---|---|
| 3.7.0_12-0 | MIUI 11β14 | Yes. | The stable version supports File-Based Encryption (FBE) encryption. |
| 3.6.2_11-0 | MIUI 10β13 | No. | 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:
- Unpack Platform Tools in the root of the C:\ drive (the path should not contain spaces!).
- Place the twrp.img file in the platform-tools folder.
- Open the command prompt in this folder (click Shift + right mouse button β βOpen command windowβ).
- Turn off the Redmi Note 7 and press Volume Down + Power to log into fastboot.
- 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.
- Enter the command to install TWRP: fastboot flash recovery twrp.img
- 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+.
- In TWRP, go to Wipe β Format Data (this will delete all data!).
- Or enter a password from your Mi Account (if you used it for encryption).
- For a permanent solution, pass no_verity_opt_encrypt.zip post-installation TWRP.
What if the phone does not turn on after installing TWRP?
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.
- In the main TWRP menu, select Backup.
- Check the Boot, System, Data and Vendor sections.
- Select a save location (preferably on microSD if installed).
- 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.
- Download the official firmware for Redmi Note 7 (lavender code) from the Xiaomi website.
- Unpack the firmware file and find the recovery.img file inside the folder.
- Fastboot: Fastboot Flash Recovery recovery.img
- 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.