Huawei announced its new P20 series recently as their first devices to support the notch. The tutorial will help you easily root Huawei P20 Lite using Magisk. The steps will work for models ANE-L01 and ANE-L21.
Ever since 2017, the Chinese manufacturer is quickly raising the bar when it comes to design, power and latest technology. The company already announced various devices during this time. The latest of which is the Huawei P20 series that was made public a few weeks ago. The P20 Lite falls in the budget spectrum of the said series and is ready to compete against some strong players including the Redmi Note 5 Pro. The phone is already available in several regions already and people have already started getting their hands on it. So if you’ve bought it too and want to root Huawei P20 Lite, then the instructions in this guide will help you.
Guide to Root Huawei P20 Lite using Magisk
The P20 Lite comes with a set of powerful hardware configuration including 5.84-inches fullscreen display with the notch, HiSilicon Kirin 659 processor, 16MP+2MP dual camera setup, and more. On the software end, the phone sports Android 8.0 Oreo out-of-the-box with support for Project Treble.
Rooting your Huawei P20 Lite will empower you with privileges, including the ability to modify the core OS. So, if you’re not much happy with the existing Emotion User Interface (EMUI), you can make adjustments to it pretty easily. Rooting also enables you to install third-party mods like enhance various aspects of the software like ViPER4Android or Dolby Atmos for a better audio experience.
At this moment, the device doesn’t hold support for TWRP, which means we will be using an alternate method by flashing a patched ramdisk (boot) image. Thanks to XDA junior member RogerXIII for providing an already patched ramdisk for the device. The instructions below have only been tested for ANE-LX1 variants such as ANE-L01 and ANE-L21. Once you have confirmed that you have the stated variant, you can follow the steps below to root Huawei P20 Lite using Magisk.
Should you wish to try, you can also grab the stock ramdisk on your own and patch is using Magisk.
- Take a complete backup of your device beforehand. You can follow our guide on how to backup Android devices.
- In order to root Huawei P20 Lite, you must first unlock the bootloader. You can follow our extensive guide on how to unlock bootloader on Huawei.
- Download and install Huawei USB drivers on the PC.
- Also, make sure to install Android SDK tools on the PC. These are mandatory, in order to flash the patched ramdisk using fastboot.
- Patched ramdisk image for Huawei P20 Lite: patched_ramdisk.img
- Stock ramdisk image (For unrooting): original_ramdisk.img
How to Root Huawei P20 Lite?
- First, unlock bootloader on your P20 Lite using the official unlock page.
- Power off the phone completely.
- While holding the Volume Down button, connect the USB cable to the phone.
- Your Huawei P20 Lite should be in the fastboot mode now.
- Download the patched ramdisk IMG file.
- Transfer the file to C:\adb. This is the folder where the ADB and Fastboot binaries are present on your PC.
- Inside the same folder, hold the SHIFT key and right-click on an empty space.
- Select ‘Open PowerShell window here’.
- Confirm that your phone is being detected properly using:
- The command should return a device ID, along with the ‘fastboot’ message.
- Finally, flash the patched ramdisk image to root Huawei P20 Lite:
fastboot flash ramdisk patched_ramdisk.img
- Once the flashing is complete, reboot your phone using:
When your device boots, it shall be rooted on the stock firmware. You can take the advantage now by flashing Magisk Modules or use MagiskHide to hide root from certain apps like bank apps, Pokemon Go, etc.
You should also note that rooting or modifying the OS in any manner will block the OTA updates. In case you want to update, you can simply uninstall any modules/third-party mods that you have installed. Then, follow the steps below to unroot Huawei P20 Lite by flashing the stock ramdisk image.
How to Unroot Huawei P20 Lite?
- Download stock ramdisk image.
- Boot Huawei P20 Lite into fastboot mode.
- Connect the phone to the PC using the USB cable.
- Transfer the ‘original_ramdisk.img’ file to C:\adb.
- Hold the SHIFT key on the keyboard and right-click on empty space inside the folder.
- Select ‘Open PowerShell window here’.
- Finally, flash the stock ramdisk to unroot Huawei P20 Lite:
fastboot flash ramdisk original_ramdisk.img
- Reboot the device using:
So this was our tutorial on how to root Huawei P20 Lite using Magisk. We certainly expect TWRP recovery support to be arriving soon as developers get their hands on the device. Once it is available, we will be updating this post with another method. Until then, enjoy your rooted device. If you have any questions regarding the process, leave a comment below.