Huawei P20 Pro is yet to be added on TWRP’s official support list, but a senior member on XDA has managed to compile and release TWRP recovery for it. So it is safe to say it is possible to root the P20 Pro. This is a 3 step rooting guide – unlocking the bootloader, flashing TWRP and flashing Magisk. So here’s how to root Huawei P20 Pro. This method also works for the P20.
Root Huawei P20 Pro
Before We Begin
- Back up all your data. This method will erase your data.
- Make sure the battery is charged up to at least 60%. This is to avoid any sudden shutdowns during the rooting process.
- ADB/Fastboot tools must be installed on the PC. Use the default path if you do not know what you are doing as this guide follows the default path.
- TWRP Images:
Unlocking the Bootloader
Unlocking the bootloader will allow you to flash the TWRP recovery using Flashboot. This process will erase your device so make sure you’ve backed up all your data. First, you need to enable OEM unlocking. To do so, follow the following steps:
Step 1: Go to Settings.
Step 2: Scroll down to System. If you are running Android N or below, look for About Phone.
Step 3: Tap on About Phone.
Step 4: Tap on Build Number 7 times to unlock Developer options.
Step 5: Go back to System. If you are running Android N or below, go back to Settings.
Step 6: Scroll down and tap on Developer options.
Step 7: Find OEM unlocking and enable it.
Step 1: Navigate to C:\adb on your PC.
Step 2: Copy the downloaded image file for the correct device on to this folder.
Step 3: Hold the Shift key and right-click on an empty space and then select Open PowerShell window here.
Step 4: Turn off your device.
Step 5: While holding the Volume Down button, connect your device to your PC.
Step 6: You will boot to Fastboot mode.
Step 7: Enter the following on the Power Shell for P20;
fastboot flash recovery_ramdisk twrp_p20_0.1.img
Step 8: Enter the following on the Power Shell for P20 Pro;
fastboot flash recovery_ramdisk twrp_clt_0.1.img
Step 9: Reboot your device using the following command;
Step 1: Download Magisk.
Step 2: Copy the file to your device’s storage.
Step 3: Power off your device.
Step 4: To enter TWRP recovery, hold Volume Up and Power key.
Step 5: If you see a warning, just swipe.
Step 6: Tap on Install.
Step 7: Select Magisk file.
Step 8: Swipe to install.
Step 9: When done, press Reboot System.