yashsingh1/xdaforums huggingface dataset:
[JASJAR, XDA Exec, MDA Pro General] vutananh:
Compatible with 8GB and 16 GB SDHC Card on my O2 XDA EXEC

tested on:

-O2 XDA EXEC ROM WM5

-M5000 email Orange SPV ROM WM5

Many thank to author!
[JASJAR, XDA Exec, MDA Pro General] Jjjasjar:
Awesomeness!!!

This works superbly with WM5 JW 1.90.96 ROM Custom ROM. No issues whatsover waking up and wifi. No switch over needed. My SHDC is Kingston 16GB Micro SDHC with adaptor in my Jasjar with 128 RAM which only 64 is recognized by the ROM. Extra RAM just for contingency hehe.
[JASJAR, XDA Exec, MDA Pro General] hiveman:
Thank for yo share, it's work with Apacer SDHC 8Gb class 4
[JASJAR, XDA Exec, MDA Pro General] brewhoxs:
Gonna try it into my Universal WM5 ROM!
[JASJAR, XDA Exec, MDA Pro General] smartpal:
really thanx for bennyyen's excellent work and psidoc. worked well on my o2 xda exec orginal rom.
[Xiaomi Mi A1 Questions & Answers] Fenwick17:
Installed LineageOS and so far everything is running smoothly except the camera. Default camera app gets in a loop of "Camera Keeps stopping". I installed Gcam plus a mod with MAgisk, however the issue occurs with GCam too. Any ideas?

I have cleared data and cache
[Xiaomi Mi A1 Questions & Answers] omnisss:
I need help about this too.
[Honor 9  Questions & Answers] xenini:
Need backup for Honor 9 STF-L09 to restore with TWRP?
[Honor 9  Questions & Answers] FearFac:
me too, however in Nougat not possible, due to encryption, if you are unencrypted then it works
[Huawei P20 Lite Guides, News, & Discussion] RogerXIII:
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/9yfz6w9e8q7j5u2/patched_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/4d6w2labc6cmh2o/original_ramdisk.img
[Huawei P20 Lite Guides, News, & Discussion] Nick:
WORKS IN ANE-AL00 china model??
[Huawei P20 Lite Guides, News, & Discussion] 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?
[Huawei P20 Lite Guides, News, & Discussion] kilroystyx:
[MENTION=2285154]RogerXIII[/MENTION], from which build did you patched ramdisk?
[Huawei P20 Lite Guides, News, & Discussion] 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)
[Huawei P20 Lite Guides, News, & Discussion] otonieru:
Just a clarification. So lite version come with 8.0 ? Not 8.1 ?
[Huawei P20 Lite Guides, News, & Discussion] RogerXIII:
Correct
[Huawei P20 Lite Guides, News, & Discussion] r00terb3y:
And how do I find out?
[Huawei P20 Lite Guides, News, & Discussion] otonieru:
Find out what ? The directory ? Or the compatibilty ?

If the conpatibility, simply try it. And you will know :)
[Huawei P20 Lite Guides, News, & Discussion] RogerXIII:
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.
[Huawei P20 Lite Guides, News, & Discussion] coant:
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?
[Huawei P20 Lite Guides, News, & Discussion] kennymase:
1) Get bootloader unlock code here

this is giving me a 404 error...:rolleyes:
[Huawei P20 Lite Guides, News, & Discussion] Nick:
In which compilation (build) did you use this root?
[Huawei P20 Lite Guides, News, & Discussion] Dr. Neuhaus:
Just got root on ANE-LX1 successfully. Tell me please, should this metod pass SafetyNet or not?
[Huawei P20 Lite Guides, News, & Discussion] L0rdV1shnu:
Rooted my ANE-XL3 just fine.
[Huawei P20 Lite Guides, News, & Discussion] bjpafa:
Hi. Huawei P20 lite ANE-LX1 8.0.0.111(C432).

Asking for some advice. Having read several how to guide to root, installed adb on Linux, connected, backup ok, patched ram disk, original ram disk and so on and so on, Running in circles about UNLOCK CODE: OR getting a 404 eng/Chinese, Or logging at Huawei and getting a US page for honor 7/10. Cannot get the unlock page to fill the formulary, although having all necessary info, IMEI, Product ID etc. My region is PT. Request advice, considering returning the phone wich is not so bad at benchmarks... Thank you. Congrats
[Huawei P20 Lite Guides, News, & Discussion] L0rdV1shnu:
I payed 5 usd at dc-unlocker and unlocked my bootloader in about 20 minutes. I followed this guide:

https://xdaforums.com/honor-7/general/bl-unlock-dc-unlocker-t3318738
[Huawei P20 Lite Guides, News, & Discussion] Dr. Neuhaus:
Just got an OTA: ANE-LX1 8.0.0.105(C10). My device OS ver.: ANE-LX1 8.0.0.102(C10). Please tell me, should I apply it? What will happen with root? Will I need to reflash ramdisk after update?
[Huawei P20 Lite Guides, News, & Discussion] Alucard1238:
Can someone tell me where to unlock the bootloader? The link gives me only a 404 page :(
[Huawei P20 Lite Guides, News, & Discussion] kilroystyx:
If the link is down you have a paid service, google by DC-unlocker
[Huawei P20 Lite Guides, News, & Discussion] luigi997:
There is another way to unlock bootloader without pay?

Link of emui for unlock bootloader is offline
[Huawei P20 Lite Guides, News, & Discussion] PatrickWuk:
I try to get back to stock ramdisk but get this error

PHONE Unlocked

FRP Unlocked

PS C:\adb> adb reboot bootloader

PS C:\adb> fastboot flash ramdisk original_ramdisk.img

target reported max download size of 471859200 bytes

sending 'ramdisk' (16384 KB)...

OKAY [ 0.411s]

writing 'ramdisk'...

OKAY [ 0.078s]

finished. total time: 0.494s

PS C:\adb>

Hope you can help me

Update: it seems to work, I had to relock and unlock again
[Huawei P20 Lite Guides, News, & Discussion] ladislav.heller:
How did you do the unlock?
[Huawei P20 Lite Guides, News, & Discussion] PatrickWuk:
Setup ADB and Fastboot on your device;

Connect your device to PC and using USB open the command line on your PC;

Perform the following command to boot your device in a bootloader mode:

adb reboot bootloader

Now, run a command to reboot a bootloader. You don’t have to employ all commands below. It is just fine to use one, which works for you. Have you found it? Go to the next step.

fastboot oem lock

fastboot flashing lock

fastboot oem relock

As far as the bootloader has been relocked, reboot your device using the next command

fastboot reboot
[Huawei P20 Lite Guides, News, & Discussion] ladislav.heller:
Sad news

What about this sad news ?

---------- Post added at 10:54 AM ---------- Previous post was at 10:28 AM ----------

I asked for U.N.L.O.C.K. man, not for relock! :D
[Huawei P20 Lite Guides, News, & Discussion] otonieru:
Request your unlock code ASAP. They still providing it.

Also, since xda now hosting a LIVE Q&A with Honor CEO, it would be good that all you guys go to this thred : https://xdaforums.com/honor-10/how-to/understand-chat-honor-ceo-friday-t3793317/page9

And questioning them regarding their decision of stopping bootloader unlock support.

Let them know that, all of us, here. Against that decision.
[Huawei P20 Lite Guides, News, & Discussion] davidhozic:
Here is a video if any of you wants magisk to be able to login to snapchat and hide root from apps:

https://www.youtube.com/watch?v=pHP4YIzkCsA
[Huawei P20 Lite Guides, News, & Discussion] ladislav.heller:
I plan to buy P20 lite on next week (beginning of june).

Their official statement:

Announcement

To provide better user experience and avoid issues caused by ROM flashing, the unlock code application service will be stopped for all products launched after 2018-5-24. For products released prior to this date, the service will be stopped [B]60 days[/B] after this announcement.

Thank you for your understanding. We will continue to provide you with quality services.

[B]2018-5-24[/B]
Huawei Device Co., Ltd

When I correctly understand the above I can still obtain unlock code, because P20 lite models were probably launched before 2018-5-24 and I have still cca. 2 months.
[Huawei P20 Lite Guides, News, & Discussion] mchtt:
Yes.
[Huawei P20 Lite Guides, News, & Discussion] Simpo84:
thx works great on my ANE-LX1 !
[Huawei P20 Lite Guides, News, & Discussion] diabloassassin:
This method not give 100% root. Some apps not work and gameguardian don't save value just read
[Huawei P20 Lite Guides, News, & Discussion] otonieru:
You need to re-install magisk from magisk manager upon first boot. And some apps are not updated to support 8.0/8.1 you know.
[Huawei P20 Lite Guides, News, & Discussion] ladislav.heller:
For those who still wants to buy this device:

Today (4th june 2018) I bought P20lite, obtained unlock code from the official site (still works!) and successfully unlocked my device (ANE-LX1)
[Huawei P20 Lite Guides, News, & Discussion] cberrio17:
Buenos dias, como o donde ubico consola fastboot?
[Huawei P20 Lite Guides, News, & Discussion] whisper:
This method works flawlessly - using it for a few weeks now I'm very happy with it.

All I'm missing is the possibility to install Xposed for my new phone but I read about the XPosed module for Magisk; did anyone try this already?

I did not install TWRP so I'm a bit scared if I install the Xposed module for Magisk I'll screw up something and have a to start all over again. I want to use XPosed for the Physical Button Music Control module because that seems the only way to control my music player with the volume up/down keys (believe me, I've tried all the alternatives).

Anyone tried the Xposed module?
[Huawei P20 Lite Guides, News, & Discussion] luigi997:
how can i go back to stock emui from treble images?
[Huawei P20 Lite Guides, News, & Discussion] brandox0:
Hello!

I have two doubts.

1) Does this method work for the ANE-LX3?

2) If I root the device with magisk, can I continue to receive OTA and update without problems?

(sorry for my english, I'm using google translator)
[Huawei P20 Lite Guides, News, & Discussion] L0rdV1shnu:
I rooted my ANE-LX3 with magisk. I received Ota updated but haven't updated yet.
[Huawei P20 Lite Guides, News, & Discussion] miiguelfaria:
Need help

Hello,

I've rooted, and after 2 days after a reboot, my p20 lite is not able to go through the logo screen. Not even with an hard reset.

I've patched the original ramdisk and still not working.

Please help!
[Huawei P20 Lite Guides, News, & Discussion] whisper:
Well, seems another user has the Magisk installed on his/her ANE-LX3 so that should answer your first question :o

Yesterday installed the latest OTA/Update with a size of 2.5Gb. It was no problem installing the update and the phone keeps working fine. But...... after such update you'll have to load the Magisk IMG to get root again. No biggy if you've already unlocked the phone before using the method described in this thread.

So, just flash the IMG file again and your rooted again after the update - the Magisk Manager will keep on working after this so no need to configure all over again :good:
[Huawei P20 Lite Guides, News, & Discussion] Pellepurck:
oeminfo.bin ANE-LX1C432

Hello.

Does anyone have the oeminfo.bin file to ANE-LX1C432 ?

Thanks.
[Huawei P20 Lite Guides, News, & Discussion] kilroystyx:
You can find ANE-LX1C432 oeminfo.bin in the HwOTA8 tool
[Huawei P20 Lite Guides, News, & Discussion] IDeeJay91:
I will try it soon but after root is it safe ota update?
[Huawei P20 Lite Guides, News, & Discussion] Arseon:
Successfully rooted using this method. Now I've got an update to 8.0.0.141. Should I update? Would that mess with the root?

Also any luck with xposed? Tried to install it last time and it went to a bootloop.
[Huawei P20 Lite Guides, News, & Discussion] IDeeJay91:
I have problem with magisk. Sometimes i have to reinstall coz when i open magisk manager it force close after few seconds... Anyone have the same?
[Huawei P20 Lite Guides, News, & Discussion] luigi997:
Doesn't work with the last update (.144)

Can someone help me?
[Huawei P20 Lite Guides, News, & Discussion] haidermiz:
How did you came back from bootloop?
[Huawei P20 Lite Guides, News, & Discussion] Arseon:
I went to customer centre. Didn't tell them I rooted the phone. They changed the board under warranty. But I had to do that because the stock rom wasn't available at that time. If it's available, you can use DC-Unlocker to flash it.
[Huawei P20 Lite Guides, News, & Discussion] haidermiz:
I just bought it 3 days before and i thought that they might not recover for free cuz it's rooted because when i open it says you phone is unlocked and can't be trusted.

Btw DC unlocker is paid you know any free?
[Huawei P20 Lite Guides, News, & Discussion] Arseon:
I had relocked my phone and it wasn't even booting up to the 'can't be trusted screen'. Also, I paid for DC. Do not know of any free substitute.
[Huawei P20 Lite Guides, News, & Discussion] haidermiz:
I'm getting this problem Func NO : 11 (recovery image) Error NO : 2 (load failed!) when i try to boot into recovery TWRP is installed
[Huawei P20 Lite Guides, News, & Discussion] IDeeJay91:
U can try commend in fastboot "fastboot boot TWRP.IMG" I had the same problem but i have stock recovery so after relock bootloader i had access to recovery

edit. I tried root phone again this method and didnt work, I got the same errors, Func NO : 11 (recovery image) Error NO : 2 (load failed!). I don't know why...
[Huawei P20 Lite Guides, News, & Discussion] haidermiz:
I didn't understand what you're saying I'm sorry I'm just beginner. When i type "fastboot boot TWRP.IMG" in fastboot it says "cannot load 'TWRP.IMG': No such file or directory"
[Huawei P20 Lite Guides, News, & Discussion] perrito123:
Does it work on Chinese version ane-al00? Thank you

---------- Post added at 04:20 AM ---------- Previous post was at 04:20 AM ----------

Does it work on Chinese version ane-al00? Thank you
[Huawei P20 Lite Guides, News, & Discussion] Jackie_:
When in fastboot mode and unlocking bootloader it says it also factory resets the device when it unlocks the bootloader. Is there a way for unlocking without factory reset?
[Huawei P20 Lite Guides, News, & Discussion] otonieru:
Nope.

Thats why we always unlock the bootloader the day the phone arrived. Prior to doing anything else/mod.
[Huawei P20 Lite Guides, News, & Discussion] Arseon:
How to get updates after rooting? Updates from Huawei doesn't apply anymore. Any way to get stock updates? Or are there any good custom roms?
[Huawei P20 Lite Guides, News, & Discussion] O2Xav:
Just flash back the original ramdisk, execute the OTA update procedure, flash the custom ramdisk back.

No data is lost during the procedure.
[Huawei P20 Lite Guides, News, & Discussion] Rishabh1x:
Will it work if I fetch ramdisk then patch it with magisk and flash it with fastboot instead of using already patched ramdisk?
[Huawei P20 Lite Guides, News, & Discussion] Arseon:
I did this but system updater saying no new updates. I'm currently on 8.0.0.131. Didn't 8.0.0.141 update come long time back?

Using ANE-AL00 C675
[Huawei P20 Lite Guides, News, & Discussion] otavio_aon:
worked perfectly on my ANE-LX2J
[Huawei P20 Lite Guides, News, & Discussion] perrito123:
Hello arseon, I read that you root your ane-al00 Chinese version, I would like to know which tutorial you have read to do it , thank you very much.

---------- Post added at 08:03 AM ---------- Previous post was at 08:02 AM ----------

How to root ane-al00 thank.you
[Huawei P20 Lite Guides, News, & Discussion] IDeeJay91:
anyone tried ota from 136 to 144? a get all the time notification of update and can't off this. It's rly annoying
[Huawei P20 Lite Guides, News, & Discussion] pinktheater:
Hi, i bought my P20 Lite yesterday, and of course i need to root it :D

I did the process step by step and the ramdisk image was successfully installed. However, the phone reboot and it is not rooted. Any ideas?

edit: Nevermind, I re did the flashing again, installed Magisk and now root works.
[Huawei P20 Lite Guides, News, & Discussion] Arseon:
Tried Huawei firmware finder to update. But not able to update. Any idea how to update?
[Huawei P20 Lite Guides, News, & Discussion] otonieru:
use nocheck recovery or HuRUpdater. and you need unlocked bootloader for that.

if you are not unlocked, you only can rely on official OTA or funkyhuawei tools
[Huawei P20 Lite Guides, News, & Discussion] bogdan003:
Where i cant find nocheck recovery for p20 LITE?
[Huawei P20 Lite Guides, News, & Discussion] otonieru:
it use same recovery with honor v10 (BKL). mate 10, p20 pro and many more also use that same recovery
[Huawei P20 Lite Guides, News, & Discussion] bogdan003:
Thank You , succesufuly updated to 8.0.0.148 firmware
[Huawei P20 Lite Guides, News, & Discussion] otonieru:
If you updating using HuRU method. TWRP will stay.

But root will always lost
[Huawei P20 Lite Guides, News, & Discussion] whisper:
@RogerXIII: Will this image still work with the upcoming Android version 9 (Pie) when it's released as an update for the Huawei P20 Lite?

I'm not sure how the ramdisk image thingy works exactly - for now it does it's work great but was just wondering if it will still do the trick with Android 9.
[Huawei P20 Lite Guides, News, & Discussion] angelillom:
HUAWEI P 20 Lite ROOT

Translate Google

If you updating using HuRU method ,

I do not know what method is

HuRu, the method is that it works with Huawei P20 Lite normally jumps security notice version new AME-LX1 8.0.0.146 (C432), you give to install and download and install like any original factory phone, Rom Original

Thank you and I await your advice
[Huawei P20 Lite Guides, News, & Discussion] :
BL Unlock

Open the bootloader lock The web page is closed. Is there any other way?
[Huawei P20 Lite Guides, News, & Discussion] whisper:
Hi CYMATRONX,

It's always good to do a search on this forum for questions like this. A few months ago I created this topic: https://xdaforums.com/huawei-p20-li...bootloader-t3794725/post76607538#post76607538

This can help you getting the bootloader unlock code. You can always try to mail Huawei support otherwise the DC Unlocker works perfectly (about 4 euro's = 4,64 dollar).

Happy unlockin' :D
[Huawei P20 Lite Guides, News, & Discussion] Arseon:
I had rooted using this method earlier. Some days ago, I got an OTA update to 8.0.0.154 and I was able to update. Post which I lost root and had to flash the patched ramdisk again. But today, I realised that my phone is not rooted. I've flashed the ramdisk again, but phone is not getting rooted. Any fix?

Model : 8.0.0.151 (C675)

---------- Post added at 06:39 PM ---------- Previous post was at 06:27 PM ----------

Solved issue by installing twrp recovery and flashing magisk
[Huawei P20 Lite Guides, News, & Discussion] egaviria:
work p20 lite ane-lx3

works P20 Lite ANE-LX3
[Huawei P20 Lite Guides, News, & Discussion] bbmadzky:
Works on the latest 8.0.0.148 update. Thank you!
[Huawei P20 Lite Guides, News, & Discussion] Barrel Titor:
Hi!

As i understand this ramdisk.img is based on the 16.0 Version of magisk. Since then magisk has been updated to the 17.1 version and i am no longer able to use this ramdisk. Magisk does recognize the version 16.0 to be installed, however root permissions are not being granted. This means that unfortunately magisk cannot upgrade itself to 17.1 from inside the app..

Would it be possible to update this ramdisk.img to include the 17.1 build of magisk please? Unfortunately i lack the knowledge on how to do it myself and i am currently unable to root my ANE-LX1..

Currently my P20 lite runs 8.0.0.150 if this information is needed

Aye sorry to bother. I've managed to create a patched ramdisk.img on my own containing 17.1..

Cheers guys!
[Huawei P20 Lite Guides, News, & Discussion] handsomejack:
can you mind sharing that? Mine is ANE-LX2 does it compatipality with that ramdisk?
[Huawei P20 Lite Guides, News, & Discussion] Barrel Titor:
Heyoo ^-^

I don't mind sharing at all, here you go:

https://mega.nz/#!qyhlxDpQ!ATx56ZxSLLZJOgiYqsctmgokp8lK3JxOu8M9aV50L3o

Edit: Magisk 18.0 ramdisk can be found here: https://mega.nz/#!ryhlEaTB!ulJZHuHobCIL4V8xhezP-anbAnm7lpsBPdY4XPupc5c

As for your question. I think these files should be compatible, as the LX2 looks like a regional rebranding thing to me.. However please keep in mind that i am in no way an Android developer and that i cannot guarantee that it will work. However, if you have your original ramdisk at hand, you should be able to recover from any bootloops if they occur..

Please keep in mind that i have used the 8.0.0.150(C-432) Update as a base for this ramdisk and it contains the 7.1 version of magisk root. You will still have to install the latest MagiskManager

cx hope you're able to use it~
[Huawei P20 Lite Guides, News, & Discussion] sayaranu:
hay can i ask something maybe it's lil quite from topic

are this link https://hwid5.vmall.com/CAS/portal/userRegister/regbyemail.html are valid for req unlocked bootloader ? thx
[Huawei P20 Lite Guides, News, & Discussion] s43:
DC Unlocker does not work with P20 Lite, it's not supported, do you have any other way to unlock the bootloader, as the huawei support didn't respond positively :(
[Huawei P20 Lite Guides, News, & Discussion] otonieru:
in contrary,

p20 lite is the only p20 model supported by dc unlocker

read their release notes here : https://www.dc-unlocker.com/news/DC-unlocker-client-software-V1_00_1403
[Huawei P20 Lite Guides, News, & Discussion] spl1zzer:
Thank you! That worked for me on ANE-LX1 8.0.0.150(C782) :)
[Huawei P20 Lite Guides, News, & Discussion] s43:
I know, and I've purchased the needed points, and ended arguing with their support, they clearly said that the P20 Lite is not supported ( bad, & rude support service by the way ), never mind of what they've got on their release note, it seems that the security patches affects the devices they do list on that list.
[Huawei P20 Lite Guides, News, & Discussion] Brenza:
I updated to the last build 8.0.0.162 and the ramdisk in the first post stopped working.

I flashed your image and everything is fine, thank you!

Tested on ANE-L21 C432

could you explain how? I'd love to learn this
[Huawei P20 Lite Guides, News, & Discussion] Synytrix:
Will this delete everything or can I just root my phone without data loss?
[Huawei P20 Lite Guides, News, & Discussion] otonieru:
the only step that will wipe your data is unlocking bootloader,

if you already did that, nothing will be wiped.