Who doesn’t want to get the most of his Android device..?! Getting the superuser access through root and to be able to control various aspects like clocking,...
Swayam Prakash
Last updated on December 9, 2021
Swayam Prakash
Author
Swayam is a professional tech blogger with Masters Degree in Computer Applications and also has experience with Android development. He is a staunch admirer of Stock Android OS.Apart from tech blogging, he loves gaming, traveling and playing/teaching guitar.
Who doesn’t want to get the most of his Android device..?! Getting the superuser access through root and to be able to control various aspects like clocking, access to cache etc. are few of the various possibilities that we can explore. When we mention of root access, this means we need to perform a certain modification that will root our phone and we will have the access to the root directory of our device. In this post, we will show you how to root Huawei P20 Lite.
We will use the Magisk by patching the stock boot image and flash that to your boot partition. However it may get confusing for you, so, thanks to XDA developer RogerXIII who did the stock boot patching and flashing. He is the one who brings this for all root fanatics. All you need to do is download the patched image file and flash it.
You need to have an unlocked bootloader on your phone before you can root Huawei P20 Lite. We have detailed the method on that below.
Mostly uninitiated people compare rooting with hacking which is not correct. The purpose in both contexts is quite different. Hacking is more like breaking into someone’s else system illegally, whereas rooting is mostly done by the owner of an Android device to gain super user advantages of the device.
How To Root Huawei P20 Lite Using Magisk
First of all, we need to unlock the device bootloader. To do it in an official way you have to do the following.
How To Install the Patched Boot Image on Huawei P20 Lite
Assuming that you have used our above instruction and unlocked the bootloader, we will continue on flashing the patched boot image.
Step-1 First let’s begin by moving our phone into fastboot mode.
Step-2 Hold and long press Power button + Volume Keys for sometimes. Don’t release the buttons till you see the fastboot screen.
Step-3 Now connect your device to the PC/Laptop via USB cable.
Step-4 If you’ve not downloaded, download the patched ramdisk image file and
Step-5 Move that file into the ADB folder on PC.
Step-6 While you are in the ADB folder, press right-click + shift key in the empty space. You will see the below dialog box popping up.
Step-7 Click on Open Powershell Window here. Basically, the command prompt opens up upon clicking.
Step-8 Give the command fastboot devices and press enter. It will return a device ID to confirm your device is connected properly.
Step-9 This is the important step. Type the exact command without quotes “fastboot flash ramdisk patched_ramdisk.img”. This will patch the Magisk ramdisk to your device and your phone will get rooted.
Step-10 The flashing may take some time. After flashing, you need to reboot the device. To do it, give the command, fastboot reboot.
So, that’s it. Now that you know how to root Huawei P20 Lite, you can try this out. If you have any queries regarding this, do let us know.
Very helpful to me! Rooted my Huawei P20 Lite in minutes! Thanks.