Huawei P20 and P20 Pro have been out for only a few weeks. Yet, curiosities have already piqued among the Android rooting fanatics.Rooting any Android device goes through TWRP. So, it is imperative that you get those TWRP images first.

root huawei p20

The downside is that Huawei P20 and P20 Pro have not had an official TWRP release yet. Perhaps that’s because these devices have only reached a few hands so far? That’s only a guess.

I am fairly confident that regardless the delay right now, team TWRP will soon roll out a stable and official version. Until then you can use the unofficial TWRP images rolled out by a senior XDA member Pretoriano80.

In this guide, I will demonstrate two ways to root Huawei P20 and P20 Pro, one will use Magisk and the other will make use of SuperSU.

But before you get that far, you need to install TWRP on Huawei P20 (or P20 Pro), whichever of the two devices you own. To do so, Huawei bootloader unlock sequence must be followed. So, let’s get to that.

How to unlock Huawei bootloader for P20 & P20 Pro

Unlocking the bootloader in Huawei P20 and P20 Pro is similar to any Android device, with one minor, albeit important, difference.

All Huawei P20 and P20 Pro smartphone users must fetch a unique unlock password from the OEM itself. Isn’t that just dandy?! Reminds me of Xiaomi.

Once you have it, pair it up with the fastboot command and unlock the bootloader.

The steps written under will make this process a lot more clear for you but first, get these prerequisites.

List of Prerequisites

  • Take a complete backup of your device before unlocking the bootloader.
  • Ensure that the device is charged to over 50%.
  • Download and install the Android SDK tools for your OS- Linux, Mac or Windows.
  • Download and install Huawei USB drivers.
  • Get your P20 or P20 Pro’s serial number and Product ID by dialling *#1357946#*#*
  • Get your IMEI number for the device from Settings > System > About Phone.

Get unique unlock password from Huawei

  1. Open the Official Huawei Unlock page.
  2. Log in using Huawei account. If you don’t have one, create one.
  3. Accept the terms and proceed to next step.
  4. Fill the details on the unlock form appearing on the screen.
  5. In the first field, click the drop-down menu and select Since EMUI5.0.
  6. Then enter the product serial number as obtained above, IMEI, and Product ID.
  7. At last, click on the Commit

Check our detailed guide on how to unlock huawei Bootloader

Your 16-digit unlock password must be displayed on screen now. Copy it somewhere safe and easily accessible.

Unlock Huawei bootloader

  1. From Settings, Enable Developer Options > Enable OEM Unlocking & USB Debugging.
  2. Accept the RSA fingerprint appearing on your phone and tap on Trust this device.
  3. Turn off your phone.
  4. Press & hold the Volume Down key.
  5. Connect the device to a PC/Mac with a USB cable.
  6. Go to C:\adb where ADB/Fastboot binaries are present.
  7. Hold the SHIFT key and right-click on the mouse to open a Command Window/PowerShell window.twrp_p20_0.1 root huawei p20, huawei bootloader unlock, how to Install TWRP Recovery on Huawei P20
  8. Thereafter, enter the following commands:
fastboot devices */to detect your device/*

fastboot oem unlock enter-your-unlock-password-here */unlock bootloader with unlock password/*
  1. On the device, choose Yes when a prompt appears. Use the Volume Up/Down buttons to select Yes/No.
  2. Now, proceed with installing TWRP on your device.

Downloads:

Download ADB/Fastboot tools   

Unofficial TWRP image for P20 Pro   

Unofficial TWRP image for P20   

Install TWRP Recovery on Huawei P20 and P20 Pro

Also check our guide on TWRP Custom Recovery

  1. Go to C:\adb on your computer.
  2. Make sure that you have cut/pasted Unofficial TWRP image in this folder.
  3. Rename the respective TWRP image as “recoveryp20.img” for Huawei P20 & “recoveryp20pro.img” for Huawei P20 Pro.
  4. Press & hold SHIFT key and right-click the mouse to open a menu.
  5. Select Open Command Prompt here or Open PowerShell window here in case of Windows 10.
  6. Power down Huawei P20 or P20 Pro.
  7. Connect to the computer using the USB cable and hold the Volume Down key.
  8. When you see fastboot mode on the device screen, enter the following commands
fastboot flash recovery_ramdisk recoveryp20.img */for Huawei P20/*
fastboot flash recovery_ramdisk recoveryp20pro.img */for Huawei P20 Pro/*
fastboot reboot
  1. Once TWRP is installed, reboot your device.
  2. Then turn off your device and retry entering the bootloader menu. This will be a good practice for later purposes and try not to brick your device in the process.root huawei p20, huawei bootloader unlock, how to Install TWRP Recovery on Huawei P20

How to Root Huawei P20 and P20 Pro

Now is the time to root your brand new Huawei P20 and P20 Pro.

As mentioned before, there are two ways to do this once TWRP has been installed.

  • Using Magisk
  • Using SuperSU

Learn more about Magisk and how to switch from SuperSU to Magisk.

Rooting using Magisk

  1. Download the latest Magisk ZIP file, Magisk Manager through your device.
  2. Store these downloaded files in the /sdcard.
  3. Power off the phone.
  4. Hold the power and volume up keys simultaneously to enter TWRP recovery mode.
  5. Tap Install within TWRP interface and navigate to Magisk folder.
  6. Then Swipe to confirm flash.
  7. Once Magisk ZIP has been flashed, hit Reboot system.
  8. Open the Downloads application and install Magisk Manager.
  9. From the left-side menu, you can install various Magisk mods like Dolby Atmos, Xposed Framework, etc.
  10. Download Root Checker from the Play Store to confirm your root status.

Rooting using SuperSU

  1. Download the latest SuperSU ZIP.
  2. Save it in the /root/sdcard.
  3. Power off your device.
  4. Enter the bootloader menu and enter TWRP.
  5. Tap Install and choose SuperSU ZIP folder.
  6. Tap Install Image and then swipe to confirm flash.
  7. Then reboot system.
  8. From the Root Checker app, verify your root status.
  9. Try downloading any APK. If SuperSU prompt opens seeking permission that means you have successfully rooted your device.

Got questions or suggestions? Share with me your experience down in the comments.

As a Public Relations consultant, Shikhar works with a few tech companies in Brazil.He loves taking things apart and putting them back together and writing long-form content on Tech, marketing, advertising and CRM.You can find him hiking along the Brazilian hillside quite frequently.Connect with Shikhar on Twitter: @Shkrrao

Leave a Reply