Unofficial TWRP for Redmi Note 7 Pro: Decryption, Wrappedkey, system_root Work!

Unofficial TWRP for Redmi Note 7 Pro: Decryption, Wrappedkey, system_root Work! 1

In this article:

  • Download the modified build of TWRP v3.3.1-6
  • How to flash TWRP successfully on Redmi Note 7 Pro

Redmi Note 7 Pro codename Violet is another successor of Xiomi’s mid-range devices. It ships with many cool features and value-for-money specifications.

Frankly, there are some variants of Redmi Note 7. This, however, makes us confused. As a rule of thumb, the Pro variant is the highest among all variants. This article is for Redmi Note 7 Pro with codename Violet. Please be not mistaken with Redmi Note 7 codename Lavender or Lavender_EEA.

About Unofficial TWRP

TWRP Recovery is a project by Team Win developers team. All its official releases are available on its website at

TWRP is very popular among flashing maniacs. Its popularity leads to third-party development projects. The world’s most famous recovery receives many forks and modified builds.

While forked TWRPs usually have different names such as Orange Fox, Red Wolf, or Pitchblack, the modified TWRPs are usually simply known as the unofficial build.

TWRP for Redmi Note 7 Pro

Team Win Recovery Project has managed to roll out the official TWRP for Redmi Note 7 Pro. However, some users faced problems when trying to flash it on their phones.

One of the common big problems is the stock Mi Recovery always replacing the flashed TWRP. Hence, the flashing process might end up with success. Booting to TWRP for the very first time might also end without errors. Rebooting into TWRP recovery for the next time will not.

This small issue seems fiddling but it may not worth all the efforts of unlocking bootloader and flashing the TWRP.

One of our readers Vytas kindly tipped us with an alternate solution, using the unofficial build of TWRP by PeterCxy.

According to Peter, his modded TWRP boasts the following discrepancies:

  • Supports CAF-based wrappedkey encryption properly (decryption works); tested on MIUI
  • Supports decrypting devices that have a screen lock set up after Android 9 May update, which introduced a new key derivation function.
  • Mounts the system partition at /system_root as per AOSP standards. This makes the auto-backup scripts (e.g. GApps / Magisk survival script) work properly during updates. Users no longer need any “patch” to flash GApps / Magisk properly. Some existing ROMs may not fully compatible.
  • Appended DTBO to the recovery image. Hence, it doesn’t depend on the dtbo partition. No standalone DTBO image required.

Download TWRP for Redmi Note 7 Pro

You can download the official TWRP for Redmi Note 7 Pro from our previous post here.

Interested to flash the unofficial build? Try this one modded by PeterCxy:

File name :
Version 3.3.1-6 | 1033 downloads | Size: 29 MB

Changelog v3.3.1-6:

Updated kernel to support pstore instead of /proc/last_kmsg.
File name :
Version 3.3.1-5 | 124 downloads | Size: 32 MB

Changelog v3.3.1-5:

- It works even with empty /system and /vendor partition;
- Fixed brightness problem;
- Enabled EDL Reboot.

You may also want to check another unofficial build of TWRP by Twistloop.

How to Flash Unofficial TWRP on Redmi Note 7 Pro

These steps show you how to flash the unofficial TWRP by PeterCxy on Redmi Note 7 Pro. The steps are specific for the said TWRP build.

Why should you flash this TWRP? Because you won’t need to erase userdata or flash fcrypt disabler anymore if all the ROMs will update to support the wrappedkey encryption.

Hence, this TWRP is suitable for ROM flashing maniacs.

Flashing this TWRP is even easier. Follow the steps below:

Step 1. Download Xiaomi ADB Fastboot Driver zip file ( and install it on your computer. This step is necessary to install ADB Fastboot system-wide. We recommend you to install it on drive C: and hence you’ll have C:\adb\ folder.

ALSO READ:  MIUI Anti-rollback Protection Do's and Don'ts

Step 2. Download the Android Platform Tools zip file ( Extract the zip file as there is nothing to install here. You’ll just get a folder named “platform-tools”.

Step 3. Unlock the bootloader of your phone. Read the full guide on how to unlock MIUI bootloader officially here. Please be aware that the process will reset your phone.

Step 4. Extract the downloaded TWRP zip file (e.g: You’ll get a recovery.img file as a result.

Step 5. Copy/move the recovery.img file to the “platform-tools” folder.

Steps to Flash TWRP and Root Redmi 7

Step 6. Next, connect the Redmi Note 7 Pro phone to your computer using its USB cable.

Step 7. Choose the “File Transfer” mode if asked (do not choose the charging mode).

Step 8. In Windows Explorer, go to the “platform-tools” folder.

Step 9. Click on an empty area in the address bar of Windows Explorer, type cmd, then hit Enter on keyboard. This launches the Command Prompt window.

Steps to Flash Pitch Black TWRP on Mi A2 (jasmine_sprout) 3
Example Illustration

Step 10. Type following command in there. Hit Enter on the keyboard to execute each line.

adb devices
adb reboot bootloader
fastboot devices

The computer shall establish ADB-Fastboot connection with your phone. The displayed device code indicates its success. Furthermore, your phone shall reboot into the bootloader / fastboot mode.

Steps to Manually Install TWRP on Redmi 7 (Unofficial Build by Wzsx150) 4

You will see your phone rebooting and you will also see the Mi Bunny Fastboot logo displayed.

Steps to Manually Install TWRP on Redmi 7 (Unofficial Build by Wzsx150) 5

Step 11. Type the following command and hit Enter on the keyboard:

fastboot flash recovery recovery.img

The command installs TWRP to the recovery partition. The process shall finish in a few seconds.

Step 12. It’s time to reboot into TWRP recovery for the very first time. Type this command but do not hit Enter just yet:

fastboot reboot

Step 13. Press the Power and Volume Up buttons together while hitting the Enter button on the keyboard. Your phone shall reboot into TWRP.

Step 14. Your phone is now entering TWRP recovery. You may need to do the “swipe to allow modifications”.

A Practical Guide to Flashing TWRP on Xiaomi Mi A2 6

Congratulation!! You have installed TWRP on Redmi Note 7 Pro successfully. You’ll see the main menu of TWRP now.

Notes About This TWRP

This unofficial build of TWRP by PeterCxy have special notes tho. It’s note something crucial but it is worth to know.

  • Generally, you don’t need to format the user data partition.
  • If your phone is currently not encrypted but you want to set security protection (PIN, Face/fingerprint lock) in the future. Hence, you will need to format the user data partition in the future.
  • If your phone is currently encrypted (has lock screen protection) but you want to remove it in the future. Hence, you’ll then need to format the user data partition in the future.
  • You’ll also need to format the user data partition if your phone runs a custom ROM that does not support “wrappedkey“.
  • Never flash the Force Encrypt Disabler or hence it is possible to mess stuff up.
  • The TWRP works even with empty system and vendor partitions. Formatting system and vendor partitions will not break TWRP any more.
  • Migrate app’s zip file is not compatible with this TWRP.
  • Decryption should work for most ROMs based on the CAF branch (not AOSP). CAF ROMs (including official MIUI) use a different scheme for key storage, which is why TWRP hasn’t supported it till now.

FYI, what is the wrappedkey? It is a different mode of FBE implemented in CAF, the Qualcomm branch of AOSP.

All credits and thanks belong to PeterCxy.

6 thoughts on “Unofficial TWRP for Redmi Note 7 Pro: Decryption, Wrappedkey, system_root Work!”

  1. I have a problem on every tutorial I follow: I can’t boot into TWRP. On step 12 after I reboot, even if I press Volume-Up it always takes me back to fastboot. Not once I’ve been able to boot into TWRP no matter which version I use, my phone is properly recognized with “fastboot devices” so I don’t know what’s the problem. Any help is appreciated.

      1. Just tried it and had the same result sadly. Seems like TWRP never installs in the first place, I also attempted it on 2 different computers and same thing happens, so it seems the cause is only my phone.

    1. i’m trying to install corvus os in my redmi note 7 pro and everything goes well but after flashing the no-verity file it always gives error saying :- Error installing zip file ‘/sdcard/’ tell me what to do to slove this error and install corvus os. i will be thankful of you!

Leave a Reply

Your email address will not be published.