FORUMS
Remove All Ads from XDA

[ROOT] How to properly root the P20 lite

20 posts
Thanks Meter: 13
 
By RogerXIII, Junior Member on 5th April 2018, 10:28 PM
Post Reply Email Thread
Even without a custom recovery like TWRP you can get Magisk on your phone.
To do this you need to manually patch the stock boot image and flash that to your boot partition.
However, I've done all of this and with a few steps you'll be rooted.

There's a more detailed guide below.

1) Get bootloader unlock code here
2) Enable "OEM Unlocking", boot into fastboot and type: "fastboot oem unlock your-unlock-code"
3) Download patched ramdisk image here and put it in fastboot directory.
4) Reboot into fastboot and type: "fastboot flash ramdisk patched_ramdisk.img"
(Optional) 5) Flash this to go back to stock ramdisk

[Detailed Guide]

First off, you need an unlocked bootloader. To do this, you need a special code from Huawei, you can request this here:
https://emui.huawei.com/en/plugin.php?id=unlock

With this code, and having "OEM unlocking" enabled in debugger settings, boot in fastboot mode.
Afterwards, open fastboot console and type: "fastboot oem unlock your-unlock-code"
Your device will now reboot.

Now reboot your device back into fastboot mode and open a fastboot console once more.
Download this patched ramdisk partition and place it in the same folder as your fastboot executable.
http://www.mediafire.com/file/9yfz6w...ed_ramdisk.img

Now simply type in the console: "fastboot flash ramdisk patched_ramdisk.img".
Reboot your phone and it is rooted!
Download Magisk Manager to update/configure Magisk.


[REMOVE ROOT]

To remove the root, simply flash this original ramdisk partition, the same way as above. You can also relock the bootloader if wanted.
http://www.mediafire.com/file/4d6w2l...al_ramdisk.img
The Following 6 Users Say Thank You to RogerXIII For This Useful Post: [ View ] Gift RogerXIII Ad-Free
 
 
6th April 2018, 01:50 AM |#2  
Junior Member
Thanks Meter: 1
 
More
WORKS IN ANE-AL00 china model??
6th April 2018, 09:58 AM |#3  
Junior Member
Thanks Meter: 0
 
More
When I'm trying to install the patched ramdisk with "fastboot flash ramdisk patched_ramdisk.img" it says "cannot load patched_ramdisk.img".

What's the exactly directory?
6th April 2018, 10:21 AM |#4  
kilroystyx's Avatar
Senior Member
Flag Braga
Thanks Meter: 331
 
Donate to Me
More
@RogerXIII, from which build did you patched ramdisk?
6th April 2018, 10:56 AM |#5  
OP Junior Member
Thanks Meter: 13
 
More
Quote:
Originally Posted by Nick

WORKS IN ANE-AL00 china model??

Only tested on ANE-LX1, you're welcome to try it though.

Quote:
Originally Posted by r00terb3y

When I'm trying to install the patched ramdisk with "fastboot flash ramdisk patched_ramdisk.img" it says "cannot load patched_ramdisk.img".

What's the exactly directory?

It has to be in the directory of your fastboot executable.

Quote:
Originally Posted by kilroystyx

@RogerXIII, from which build did you patched ramdisk?

Version 8.0.0.104 (C185)
The Following User Says Thank You to RogerXIII For This Useful Post: [ View ] Gift RogerXIII Ad-Free
6th April 2018, 04:53 PM |#6  
Senior Member
Flag Djakarta
Thanks Meter: 2,121
 
Donate to Me
More
Just a clarification. So lite version come with 8.0 ? Not 8.1 ?
6th April 2018, 06:12 PM |#7  
OP Junior Member
Thanks Meter: 13
 
More
Quote:
Originally Posted by otonieru

Just a clarification. So lite version come with 8.0 ? Not 8.1 ?

Correct
The Following 2 Users Say Thank You to RogerXIII For This Useful Post: [ View ] Gift RogerXIII Ad-Free
11th April 2018, 09:49 AM |#8  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by RogerXIII

Only tested on ANE-LX1, you're welcome to try it though.



It has to be in the directory of your fastboot executable.



Version 8.0.0.104 (C185)


And how do I find out?
11th April 2018, 12:10 PM |#9  
Senior Member
Flag Djakarta
Thanks Meter: 2,121
 
Donate to Me
More
Quote:
Originally Posted by r00terb3y

And how do I find out?

Find out what ? The directory ? Or the compatibilty ?

If the conpatibility, simply try it. And you will know
12th April 2018, 12:31 PM |#10  
OP Junior Member
Thanks Meter: 13
 
More
Quote:
Originally Posted by r00terb3y

And how do I find out?

I think you mean the directory:
On your computer you have the file "fastboot" that you use for sending fastboot commands to your phone, put the .img file in yhe same folder as that program. If you don't know where it is located, you can download the platform-tools files separately and use those.
18th April 2018, 07:05 PM |#11  
Junior Member
Thanks Meter: 1
 
More
Thank you worked very well. I need twrp but i cant find or Build compatibility with p20 do you find any way to get it work?
The Following User Says Thank You to coant For This Useful Post: [ View ] Gift coant Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes