Home » Android » How To : Huawei P20 Root & Install Magisk

How To : Huawei P20 Root & Install Magisk

How To : Huawei P20 Root & Install Magisk

Huawei released a trio of P20 devices a few days back; Huawei P20, Huawei P20 Pro and Huawei P20 Lite. If you are the proud owner of a Huawei P20, and want to root your smartphone you have come to the right place. Ih this post we are going to tell you how to achieve Huawei P20 root. Follow along and by the end of this post you will have a rooted Huawei P20.

huawei p20 root


How To : Huawei P20 Root & Install Magisk


We are not responsible for any bricked devices. You are doing this at your own risk.


Make sure your Huawei P20 is charged 70-80 percent.

Also, make sure you have unlocked the bootloader on your Huawei P20. If not, then you can follow the below guide.

How To : Huawei P20 Bootloader Unlock (P20/P20 Pro/P20 Lite)

Setup adb and fastboot on your computer (Windows, Mac or Linux) by following the steps listed in the link below.

How to Setup ADB and Fastboot

Step 1 – Download Patched Ramdisk

Download patched ramdisk for Huawei P20 from the links below, unzip it, rename the img file to patched_ramdisk.img and place the img file in platform-tools folder. You should have a platform-tools folder if you followed the guide to setup adb and fastboot above.

Compatible Models


Download patched Ramdsik for Huawei P20

If your model is not listed above, please do not proceed further.

Step 2 – Boot Huawei P20 into fastboot mode

Boot Huawei P20 into fastboot aka bootloader mode.

  1. Make sure Huawei P20 is turned on and connect to computer using usb cable.
  2. Open command prompt (for Windows) or Terminal (for Mac and Linux).
  3. Navigate to platform-tools folder and issue below command.


adb reboot bootloader

Mac or Linux

./adb reboot bootloader

With device turned off, pressing and holding Volume Down and Power at the same time will also get you into bootloader mode.

Step 3 – Root Huawei P20 (Flash Patched Ramdisk)

Once in fastboot mode, issue below command to check Huawei P20 is detected in fasboot mode.


fastboot devices

Mac or Linux

./fastboot devices

If drivers are installed correctly you will see your device listed. If not, you will have to reinstall Huawei usb drivers.
Next, we are going to flash patched ramdisk we downloaded in Step 1.


fastboot flash ramdisk patched_ramdisk.img

Mac or Linux

./fastboot flash ramdisk patched_ramdisk.img

Step 4 – Reboot

That’s it folks. Huawei P20 root has been achieved. Next step is to reboot. Issue below command to reboot back into Android.


fastboot reboot

Mac or Linux

./fastboot reboot

Step 5 – Install Magisk

Download and Install Magisk Manager apk from the below link.

Download Magisk Manager apk

Open Magisk Manager, and insall Magisk again to avoid any issues.

How to : Check Huawei  P20 Root

To double check if your Huawei P20 has root access or not, download Root Checker app, open it and click on Verify Root. If you are rooted you will get an appropriate message.