Hi folks! Do you want to root your Xiaomi Redmi 7 while keeping the MIUI OTA update feature? Try this method.
The traditional way of rooting an Android phone is flashing either SuperSU or Magisk through TWRP recovery. It is the worlds most popular custom recovery.
Unfortunately, the official build of TWRP still goes without full support to the MIUI OTA update. Hence, replacing Mi stock recovery with TWRP will break the MIUI OTA update functionality.
Some nice developers have eventually managed to fork the official TWRP code and they come with their own version of TWRP. Some of them sport features not available within the official build.
There are few of forked TWRP which are also popular. Red Wolf, Orange Fox, and Pitch Black are the most popular ones.
While Red Wolf and Orange Fox are not fastly available for some Redmi variants, Pitch Black usually comes earlier than both Red Wolf and Orange Fox.
This article will guide you to the appropriate steps on how to install the Pitch Black Recovery Project (PBRP TWRP) on Redmi 7. Thus, you can further root your phone while keeping MIUI OTA update.
- You will need a Windows computer either a PC or a Laptop.
- A USB data cable. Make sure it’s a data cable and not a charging-only cable.
- Download ADB Fastboot Installer v1.4.3 (zip).
- Download Android Platform Tools r28.0.1 (zip).
- Download Pitch Black Recovery (.zip).
- Download latest Magisk root (zip).
Flashing a custom recovery requires an unlocked bootloader. This process wipes all your data.
We hold no responsibility for any damages. Please proceed with caution.
No one forces you to do this. Please proceed responsibly. We recommend you to read and understand the whole steps prior to actually implementing the steps.
STEPS TO FLASH PITCH BLACK ON REDMI 7
Step 1. Disable Windows Drivers Signature Enforcement on your computer. We have the detailed tutorial here.
Step 2. Extract Xiaomi ADB Fastboot Driver zip file (miui-ADB-Driver-Installer-v1.4.3.zip) and install it on your computer. This should finish in seconds. Make sure you install it on C:\adb\. This step is necessary to install ADB Fastboot system-wide.
Step 3. Extract the miui-platform-tools_r28.0.1-win.zip on your computer. You’ll get a folder called “platform-tools“. This step is important to make sure you use the latest version of ADB-Fastboot.
Step 4. Unlock the bootloader of your phone. Read the full guide on how to unlock MIUI bootloader officially here. Please be aware that the process requires you to reset your phone. All your data will be lost.
Step 5. Open the “PitchBlack-onclite-2.9.0-20190624-0606-OFFICIAL.zip” file using either Winzip or Winrar. You’ll see three folders. Go to the TWRP folder and extract the “recovery.img” file.
Step 6. Copy/move that recovery.img file to the “platform-tools” folder.
Step 7. Now enable USB debugging on your phone. You might have it enabled during the bootloader unlocking process. However, it is a good practice to double-check it.
Enable Developer Options, go to:
Settings >> About phone >> tap the MIUI version 7x >> You are developer!
Enable USB Debugging, go to:
Settings >> Additional Settings >> Developer Options >> USB Debugging >> toggle it on.
A notification will pop up on your screen. Tap the “OK” button.
Step 8. Next, connect your Redmi 7 to your computer using its USB.
Step 9. Choose the “File Transfer” mode when asked (do not choose the charging mode).
Step 10. In Windows Explorer, go to the “platform-tools” folder. Hold down the Shift button on the keyboard, right-click anywhere within that folder, and choose “Open command prompt window/PowerShell window from here“.
Step 11. Now type following lines of command. Hit Enter every each line to issue it.
adb reboot bootloader
The first line asks your computer to recognize your device. The second line instructs your phone to boot into bootloader mode a.k.a fastboot mode. You’ll see the Mi Bunny logo displayed.
This instructs your computer to establish an ADB connection with your device while verifying any device attached. Second, this also reboots your device into Fastboot mode (bootloader mode). You will see your phone rebooting and you will also see the Mi Bunny Fastboot logo displayed.
Step 12. Next, type following command lines and hit Enter on keyboard:
fastboot flash recovery recovery.img
The first command flashes TWRP to the recovery partition. The process shall finish in a few seconds.
Step 13. It’s time to reboot into TWRP recovery for the very first time. Type this command but DO NOT hit the Enter key just yet:
Step 14. Grab your phone. Press the Power button and the Volume Up button simultaneously. Hold it for approximately 3 seconds, then hit the Enter key on your keyboard.
Step 15. Your phone is now entering TWRP recovery. Do the “Swipe to confirm system modification” action. Once swiped, you’ll be in the main menu of TWRP.
Step 16. Copy or move the “PitchBlack-onclite-2.9.0-20190624-0606-OFFICIAL.zip” file to the “platform-tools” folder as well.
Step 17. Issue this command to copy the file to the /tmp directory which is basically a RAM storage on your phone.
adb push PitchBlack-onclite-2.9.0-20190624-0606-OFFICIAL.zip /tmp/
Step 18. Choose “Install” from the TWRP main menu.
Step 19. Locate the Pitchblack ZIP file in the /tmp directory. Tap on its filename to select it.
Step 20. Do the “Swipe to confirm flash” action. Sit tight and wait for the process to finish.
Step 21. Again, type this command but DO NOT hit the Enter key just yet:
Step 22. Grab your phone. Press the Power button and the Volume Up button simultaneously. Hold it for approximately 3 seconds, then hit the Enter key on your keyboard.
Congratulation! You have successfully installed TWRP on Redmi 7 and you are now in its main menu.
How to Root Redmi 7
Step 1. Also, copy or move the Magisk .zip file to the “platform-tools” folder.
Step 2. Copy the zip file to the device using this command:
adb push Magisk-v19.3.zip /tmp/
p.s: change Magisk-v19.3.zip with the latest version of Magisk.
Step 3. Choose “Install” from the main menu of Pitch Black TWRP.
Step 4. Locate the Magisk zip file. Tap on it to select it.
Step 5. Do the “Swipe to confirm flash” action.
Step 6. Finally, reboot your phone by choosing Reboot then System.
Voila! Your Redmi 7 Onclite is now rooted. You can enjoy root-only apps without being detected. Use Magisk hide to hide your root status from mobile banking apps.
Read next: How to enable MIUI OTA Update Support on Redmi 7.