My complete bootloader unlock and root guide.

brugernavn

Senior Member
Jul 13, 2008
152
35
28
Sindal
So I just got this phone just for fun, it was 75 USD, and went straight to XDA to root it so i can remove some bloat etc. but holy moly i ended up have 10 tabs with different guides open, i have compiled what I did to get this phone rooted.

I want to thank everyone who made different threads about rooting and installing Magisk on this phone, i have read so many guides now so i cant remember their names!.
BUT THANK YOU!.


Let's get to it

Here is what I did for to unlock the bootloader, install magisk and root my Huawei P20 Lite ANE-LX1

First you need to install HiSuite: https://consumer.huawei.com/minisite/HiSuite_en/
and then install ADB and Fastboot drivers: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
(extract the platform-tools folder to the root of your C: drive)

Plug in your phone and let it install drivers.

Then you need to downgrade your firmware to 146 using Dload method, as DCU Client can't read the bootloader unlock code on newer firmwares.

I used "Huawei P20 Lite ANE-L21 Anne-L21 8.0.0.146(C432) Firmware Android 8.0.0 EMUI 8.0.0 05014YXX androidhost.ru.zip" (https://androidhost.ru/6ti)

When finished downloading, open the zip file, open software and copy the folder "Dload" to the root of your EXTERNAL SD CARD, not internal storage!.
Now take your phone and "dial" *#*#2846579#*#* go to Software Upgrade -> SdCard Upgrade and click OK.

Your phone should now begin installing the old firmware, when the phone first boots up, dont set it up, turn it off and hold Volume up + Power and select Wipe Data/Factory Reset, Wipe Cache, and then reboot.

With the phone booted, enable USB Debugging (Settings > System > About Phone > version number > Tap it 7 times to become developer, AND click OEM-Unlock, then go to Settings > System > Developer Options > USB Debugging).

Now we need to buy 4 credits from DC-Unlocker (4 Euro) ( https://www.dc-unlocker.com/buy ) when you have 4 credits on your account, go and download https://hcu-client.com/download/hcu-client-v1-0-0-0287/ Password: hcu
extract the contents of the zip to a folder called HCU in the root of your C: drive

Open up HCU.exe, type in your username and password (check your mail, the info will be there).
Grab your phone and dial *#*#2846579#*#*, go to Background Settings -> USB Port Settings -> Manufacture Mode and press close.
Plug in your phone and let it install drivers.

Open up HCU client, select Unlock, and then Read Bootloader Code.

when you have the code, save it!

Turn off your phone
Hold volume down and power, now we are in fastboot mode.

Open CMD and write:
CD C:\platform-tools

fastboot oem unlock YOUR UNLOCK KEY HERE


Accept the stuff and unlock your bootloader, your phone will be factory reset, and all your data lost if you dont have a backup.

Turn the phone off and on again, set it up, and go to settings -> System -> System update, and update, mine was ANE-LX1 8.0.0.162(C432)

Now re-enable USB Debugging option in Developer Options.

install Magisk Manager (https://github.com/topjohnwu/Magisk/releases/download/v18.0/Magisk-v18.0.zip)

Download patched_ramdisk.img (https://mega.nz/#!GWp1ia6R!xUcg_T_17v1ktlFQPq-Ujo4DRKfAg8E4-_k2J2zLO60)
and place it in the root of your phones internal storage

Open up Magisk Manager, press install -> install -> Patch Boot Image File -> find the patched_ramdisk.img and click OK.

Now open CMD and write:
CD C:\platform-tools>

adb pull /storage/emulated/0/download/patched_boot.img

Now you should have the patched_boot.img in your platform tools folder.

Turn off your phone, hold volume down and power to get to fastboot mode.

in CMD write:
CD C:\platform-tools>

fastboot flash ramdisk patched_boot.img

reboot your phone and check if magisk was installed correctly and check if you have root.

Hope this works for you!
 
Last edited:

dcduartee

Senior Member
Aug 23, 2015
783
269
0
Great guide. Just a tip instead of using cd C:\platform-tools you can shift+right click on the adb folder and click "open powershell here". Saves some time
 
  • Like
Reactions: deepszn

lalovzg

Senior Member
Nov 27, 2014
66
8
0
Nuevo Léon
Thank you for this, but I have a question about this part:
Then you need to downgrade your firmware to 146 using Dload method, as DCU Client can't read the bootloader unlock code on newer firmwares.
Mine is ANE-LX3, what would be the equivalent to 146 so that DC-unlocker can read it?
 

brugernavn

Senior Member
Jul 13, 2008
152
35
28
Sindal
Great guide. Just a tip instead of using cd C:\platform-tools you can shift+right click on the adb folder and click "open powershell here". Saves some time
I have tried that and PowerShell doesnt Work on my pc(i have replaced shift click shortcut so its CMD indtraf) and i wanted a noob proof way to make this work :)
And thanks.
 

lalovzg

Senior Member
Nov 27, 2014
66
8
0
Nuevo Léon
Just use the address bar

I have tried that and PowerShell doesnt Work on my pc(i have replaced shift click shortcut so its CMD indtraf) and i wanted a noob proof way to make this work :)
And thanks.
Maybe you already know but I learned that you can just clic the address bar in a Windo(w)s system and write 'cmd' which is exactly the same as 'open a command prompt that starts in this very specific folder'.
E.g. in attachments.

Now I just want to know what firmware to downgrade to :/
 

Attachments

brugernavn

Senior Member
Jul 13, 2008
152
35
28
Sindal
Where could i find the correct firmware of ANE-LX1
Use the link in my guide.

Maybe you already know but I learned that you can just clic the address bar in a Windo(w)s system and write 'cmd' which is exactly the same as 'open a command prompt that starts in this very specific folder'.
E.g. in attachments.

Now I just want to know what firmware to downgrade to :/
Sweet thanks!.
Try and use this firmware:.
https://androidhost.ru/9V2
 

lalovzg

Senior Member
Nov 27, 2014
66
8
0
Nuevo Léon
Using that as a reference I found one for my region I think (C69) that says:
Integrates Google security patches released in Apr 2018 for improved system security.
Is this April FullOTA a safe security patch to work with DC-u?

ANE-LX3C69CUSTC69

An another one big question: I am in the believe that my P20 lite is Single-SIM. Does it matter if that FullOTA (or any ROM/Update.app/etc) says DUAL-SIM? Should I look for the oldest Single-SIM??? or a Dual-SIM file would work just fine?
 

brugernavn

Senior Member
Jul 13, 2008
152
35
28
Sindal
Using that as a reference I found one for my region I think (C69) that says:

Is this April FullOTA a safe security patch to work with DC-u?

ANE-LX3C69CUSTC69

An another one big question: I am in the believe that my P20 lite is Single-SIM. Does it matter if that FullOTA (or any ROM/Update.app/etc) says DUAL-SIM? Should I look for the oldest Single-SIM??? or a Dual-SIM file would work just fine?
If its single sim, you need a single sim firmware and just use a firmware under 150, you should be okay :)
 

LLoTE

Senior Member
Mar 22, 2017
600
103
0
51
Would someone like to pay for me cuz I don't got a way to pay i don't have any credit cards..i know this is stupid but im just a teenager and my parents wouldn't pay for it so here i am lol
 

HEKER510

Senior Member
Dec 2, 2012
592
183
0
forum.xperia.cz
@brugernavn

Bro your instructions are super perfect tuttorial very very BIG thankx
would know exactly the firmware that would go without a bootloader unlock hunger everywhere this Huawei P20 Lite firmware ANE-L21 Anne-L21 8.0.0.166 (C432)
The only thing is that which one is right where the to sdcard firmware into the dload folder and installs without problems
because of what I was looking for and so I made a mistake to link to the Huawei P20 Lite ANE-L21 Anne-L21 8.0.0.166 (C432) in format like This post forum
what i found for dual sim so all su with unlocked bootloader hurts me
PLEASE REPLY will be glad
 
Last edited:

brugernavn

Senior Member
Jul 13, 2008
152
35
28
Sindal
@brugernavn

Bro your instructions are super perfect tuttorial very very BIG thankx
would know exactly the firmware that would go without a bootloader unlock hunger everywhere this Huawei P20 Lite firmware ANE-L21 Anne-L21 8.0.0.166 (C432)
The only thing is that which one is right where the dam to sdcard firmware into the dload folder and installs without problems
because of what I was looking for and so I made a mistake to link to the Huawei P20 Lite ANE-L21 Anne-L21 8.0.0.166 (C432) in format like aky maš na forum
what i found for dual sim so all su with unlocked bootloader hurts me
PLEASE REPLY will be glad
Im sorry, i dont understand what you are writing :(
 

brugernavn

Senior Member
Jul 13, 2008
152
35
28
Sindal
i flashnig for sdcard firmware 146 for you link
i have must firmware 166 for sdcard
you helping my for firmware 166 for huawei p20 lite dual firmware 166(c432) flashing install sdcard for servis menu upgrade
identic 146 for 166 firmware
you understand my brother ? :)
You first flash 146 firmware with Service menu.
Then unlock bootloader
Then update via the settings menu :)
 

cirovi

Member
Apr 15, 2010
24
6
0
thank you very much for your guide, brugernavn.:good:

I arrived without problems at the point: "Turn the phone off and on again, set it up, and go to settings -> System -> System update, and update, mine was ANE-LX1 8.0.0.162(C432)"
but the phone can not find updates ... (i before was in 150) but this isn't a problem.

My doubt is on how to install Magisk Manager (https://github.com/topjohnwu/Magisk/...gisk-v18.0.zip) .... with TWRP ?

Thank you again
 

brugernavn

Senior Member
Jul 13, 2008
152
35
28
Sindal
thank you very much for your guide, brugernavn.:good:

I arrived without problems at the point: "Turn the phone off and on again, set it up, and go to settings -> System -> System update, and update, mine was ANE-LX1 8.0.0.162(C432)"
but the phone can not find updates ... (i before was in 150) but this isn't a problem.

My doubt is on how to install Magisk Manager (https://github.com/topjohnwu/Magisk/...gisk-v18.0.zip) .... with TWRP ?

Thank you again
what software are you running now?