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 https://twrp.me/.
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 10.3.5.0.
- 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:
Updated kernel to support pstore instead of /proc/last_kmsg.
- 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 (miui-ADB-Driver-Installer-v1.4.3.zip) 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.
Step 2. Download the Android Platform Tools zip file (platform-tools_r29.0.4-windows.zip). 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: twrp-3.3.1-violet-6-peter.zip). You’ll get a recovery.img file as a result.
Step 5. Copy/move the recovery.img file to the “platform-tools” folder.
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.
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.
You will see your phone rebooting and you will also see the Mi Bunny Fastboot logo displayed.
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:
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”.
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.
Found a broken link? Write a comment below!