yashsingh1/xdaforums huggingface dataset:
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
flash stock recovery ramdisk.

---------- Post added at 08:01 PM ---------- Previous post was at 07:56 PM ----------

flash recovery_vbmeta.img and recovery_vendor.img (extract it from stock firmware using huawei update extractor)

i can't remember the exact command,

but basically it just flashing command to targeted partition (just like how you flash other image) :

fastboot flash recovery_vbmeta recovery_vbmeta.img

just for safety precautions, you can also flash all other partitions : recovery_ramdisk, kernel, system, odm, etc

also, there's no boot.img, its kernel.img
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] m00h:
I just used this method to update from 8.1 to 9.0 and everything worked like a charm. Thanks to the OP for the great guide.

I have one more question: How would one now go about the coming OTA updates? Could it just be installed right away, or would one need to flash the stock recovery_ramdisk file prior to updating?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] brilljohn:
Is it possible to downgrade from EMUI 9 (9.0.0.195) to 8.1 with this method?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
Any future OTA, get the full OTA from MT firmware source and flash the same way as explained. It will not delete data hence all your installed apps will be intact.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
I will stop you from downgrading as long as you have full flash image. You may have to format data before downgrading. This means that you will loose all the installed apps
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] brilljohn:
Can you please explain the correct way for doing it? I don't mind losing my data.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
Remove fingerprint, password and facelock etc. Flash TWRP and format data (under wipe menu).

Now follow the guide in OP to flash 8.1. You will be fine.

Is there a reason why you want to downgrade to 8.1?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] zilpzalp16:
Hello,

yesterday I update from 8.1 to 9...195 and everything work fine. :D Thanks a lot for the guide :good:

Now Magisk send a message about a update to version 18.2.....?

Can I update to this version or I will lost root?

Thx
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] brilljohn:
I have seen many posts regarding people that tried to downgrade from 195 or 197 to Oreo and got hard brick ("black screen" problem).

Why is this method safe? Is it matter to which 8.1 version I downgrade?

I want to downgrade because I want to compile my own kernel, and I haven't seen anyone that managed to do it in 9.0.0.195.

Thank you for your help:)
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
I got your point. In the method I explained, we will be flashing the full OTA image and also we are pushing files to update/HWOTA and flash it via stock recovery. I have not downgraded hence cannot comment. I believe that it should work. If you fastboot works you can bring device to life anytime anyway.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] brilljohn:
Thank you for your answer.

I have been following some members that experienced this "black screen"/"xloader brick" situation.

From what I have seen people with EMUI version 195 have also experienced this brick by using your method:

https://xdaforums.com/showpost.php?p=78695254&postcount=49

From what i sow, For the member "QuazIqbal" the solution was using DC-PH (and opening the back of the device) despite the fact that he had fastboot commands:

https://xdaforums.com/showpost.php?p=78685093&postcount=40

The only evidence for successful downgrade (from 195+ to Oreo) I have found is here:

https://xdaforums.com/mate-10/how-to/psa-downgrade-pie-c432b197-using-oreo-t3889866

But it's for Mate10 and not P20 Pro.

Maybe the solution would be to downgrade to 157?

Is this really such a risky operation, or did I misunderstand something?

Edit: Maybe all I need to do is choosing the correct firmware to downgrade to? (With the same xloader version as 9.0.0.195):

https://xdaforums.com/showpost.php?p=78705916&postcount=474
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] FirstEver:
I think I will be able to test your ROM after upgrading from CLT-L09 8.1.0.133(c782) to CLT-L29 9.0.x.xxx. But is it possible to use TWRP Backup/Recovery function if Data partition is not accessible (encrypted) in the latest TWRP?

I can use ADB TWRP commands, but is it possible to Restore TWRP backup from different location than /Storage/TWRP ?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
I updated OP for how to downgrade. I downgraded my rooted EMUI 9.0 (build 195) successfully to EMUI 8.1. Hope it helps you.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] brilljohn:
Thank you very much!:)

Can you please link to the exact 8.1 version you used? is your device CLT-L29C432?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
Yes same L29C432. Make sure that you remove fingerprint and lock screen password before starting the process. I forgot to mention this point in OP. I will update tomorrow.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] brilljohn:
Great. Can you please link to the exact 8.1 version if FF? Thanks a lot!
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
Here you go.

http://update.hicloud.com:8180/TDS/data/files/p3/s15/G2943/g1604/v219788/f1/full/update.zip

http://update.hicloud.com:8180/TDS/...l/CLT-L29_hw_eu/update_full_CLT-L29_hw_eu.zip
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] brilljohn:
Thank you very much -> worked :)
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Moonshiner.:
Here few other debloats:

pm uninstall -k --user 0 com.huawei.search

pm uninstall -k --user 0 com.huawei.hwid

pm uninstall -k --user 0 com.huawei.hitouch

pm uninstall -k --user 0 com.huawei.hidisk [files explorer]

pm uninstall -k --user 0 com.huawei.compass
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
Hope these debloat does cause any issue.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Moonshiner.:
You'r welcome...
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] bvannier:
Good morning,

I followed step by step the first page to get 9.195

When I boot in fully working twrp, (data decrypted) when I press enter I have an error message...

"error: nodevices/emulators found"

Any idea on what is missing?

Regards

PROBLEM SOLVED

I change my connection from USB 3.0 to a 2.0 USB port
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
Good to know.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Ady-86:
Every time I flash the patched_boot.img and restart with volume up into recovery I have a bootloop. I have CLT-L09 pie 9.0.0.1.9.5 with the custom link for magisk. The only way to get out of the loop is to reflash the stock recovery_ramdis.img. But after flashing stock recovery, magisk has no root any more...

Any suggestions why I only get the bootloop after reflashing the patched_boot.img?

Thanks a lot!
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] aoryx:
I had the same issues after updated to lastest canary build, try to update using a patched recovery_ramdis from the stable channel.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
Magisk Canary 18003 have issue with EMUI 9,

been fixed on 18004 and 18005

patched it using latest version, dont use 18003
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] silverstream:
How do I get 18005? Latest stable and canary doesn't work for me, stuck in huawei logo.

I'm on 197. It works for me in 168
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
Read OP post.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] silverstream:
I followed your steps, it works on 168 but not on 197. Not sure what went wrong
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
Sorry for misunderstood your question. I tested up to build 195 and didn't check biuld 197.

Where do you get the build 197. I don't see in here https://pro-teammt.ru/firmware-database/?firmware_model=CLT-L29C432&firmware_page=0/

May be, if I know the resource where I can download from then it will help me to test and find solution for the issue.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] kessaras:
we dont have 197.

don't expect that all who post are sane. maybe its a typo. Or maybe its another device too.

Your method , your adb commands, work for any huawei out there, not just for Charlotte.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
Thanks for clarifying.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] zencooler:
Smohanv you are simply the master!

Thank you for that great ADB procedure to upgrade firmware on P20 Pro with unlocked bootloader.

This is exactley what are was looking for. I tried HuRUpdater in TWRP but it didn't work on my firmware v.163. Now thank to your tool I successfully upgraded to v.195 firmware.

Big thanks once again for the tool and detail manual!
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
I am very glad that my tool and the step by step procedure helps. Actually this helps me as well whenever I upgrade my device to the next version.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] D168:
I have this issue with 18111 now.

If I hold volume up button, patched boot with v18.2 (18111) gets me stuck at Huawei logo. If I don't hold the volume up button, it boots into non-root.

EDIT: I tried again, and it still didn't work, but now I also get the same issue on v18.1 (18100)

Am I doing something wrong??
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
On 18112 everything is fine. Try that version.

btw [MENTION=358748]smohanv[/MENTION]

did you notice that latest FF Full OTA only contain one file ? even one stated as approved for installation.

will the procedure remain ? or does it need to be changed ?

i think now there's no more "update.zip" available from FF

and, FYI, seems like all firmware for P20 Pro now are named as CLT-LGRP2-OVS (CLT is Charlotte, thats as far as i can tell)

for C636, latest approved firmware is .201
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] D168:
Still no luck. I tried patching with 18112. There was no error on patching (I started getting an issue with repacking boot image on 18111) but when I flash it and reboot, it still gets stuck on Huawei logo if I hold down Volume Up button, and boots to non-rooted rom if I don't hold the Volume Up button.

Are there remnants of Magisk that are causing issues? Do I need to "uninstall" to remove any traces of it and then try installing again?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
just remove the whole modules and previous magisk manager first,

reflash stock recovery ramdisk, and start from zero.

am on 18112 now on .168 (c636 havent got exact newer version)
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] D168:
Still not working. I have no idea why it's not working. This is the same process I used to install Magisk before and I had no issues. Now, it won't work.

I uninstalled Magisk, flashed stock recovery ramdisk and did the process over and still got stuck at the Huawei logo with vol up, and non-root with no vol up. I updated to 9.0.0.213 and tried again, and same thing.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
Thanks for the heads-up. I will check and update.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
what happen if you let it boot to non root system, and try "adb reboot recovery" from adb ?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] D168:
It got stuck at the Huawei logo again and wouldn't let me boot back into system because it kept trying to get to recovery. I had to flash RECOVERY_RAMDIS_195 for it to let me boot into system. When I got into the stock recovery though, I cleared the cache. I'm not sure if that did anything, but when I tried 18.1 with volume up, it loads into NON-root system (but at least it goes past the Huawei logo?). 18.2 (18112) still gets stuck at the Huawei logo though.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
thats suuuper weird :eek:

am not sure what happen,

can you send me stock .195 ramdisk ? i'll try to patch it here on my phone and send back to you,

at this point, who knows what might happen, and i guess you have nothing to lose, lol
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] D168:
I've been using the one in the OP.

I had also edited my message after you replied with: "When I got into the stock recovery though, I cleared the cache. I'm not sure if that did anything, but when I tried 18.1 with volume up, it loads into NON-root system (but at least it goes past the Huawei logo?). 18.2 (18112) still gets stuck at the Huawei logo though."

So 18.1 lets me boot with volume up, but still no root and Magisk Manager says "Magisk is not installed"
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
the one in OP is prepatched. you dont have to repatch it,

are you flashing it and try to boot or you re-flash that image with magisk manager ?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
Hi [MENTION=358748]smohanv[/MENTION]

i managed to update my C636 P20 Pro to .201 using the new full base .zip

procedure was changed, it's easier now though. You might want to update the OP (or make it sectional, split between old method and new method)

Here's the method :

Pre-Requisites : ROOT

1. Download EMUI Flasher from HERE (courtesy of [MENTION=4960686]OldDroid[/MENTION]) - Dont worry, the app is clean and clean

2. Download the Latest Approved Update_full_base.zip of your phone model from FF

3. Open the App, choose the firmware zip you already download. If the app prompt to install some assets, approve it, it need to re-install stock recovery back.

4. Ignore the second firmware file option

5. Tap the "Flash Button" on the bottom right corner

6. Wait till phone boot to recovery, flashing update and finish.

7. Optional - Re-ROOT using your patched recovery ramdisk
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] OldDroid:
Just a little note: EMUIFlasher can be used also with unapproved firmwares.

Regards
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
am just trying with 18112 and .201 recovery ramdisk and i successfully root my phone without issue.

you might want to check my procedure above and try to reflash your phone using latest firmware before try to re-root it. Seems like something going derp on your phone

---------- Post added at 05:50 PM ---------- Previous post was at 05:45 PM ----------

Yes ! Thx for the re-confirmation.

I tried it as well. But unapproved firmware always have issue with play store certification, LoL. So i didn't do it

Thx again mate !
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] D168:
I was trying to patch it with Magisk Manager as that's what's step 5 says to do. To me, "pre-patch" meant "before patch" as it says "this is the recovery_ramdisk file extracted from EMUI 9.0"

I tried flashing with latest firmware yesterday and nothing was different. You're right though, something is probably off with my phone, so maybe I'll try factory reseting it and then start over
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
Thanks for your guide. I have added in OP.

https://xdaforums.com/huawei-p20-pr...c432b131-8-t3809964/post76937061#post76937061
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] OldDroid:
i should open an application thread to provide exact infos.

The app has been programmed to work with EMUI8 AND EMUI9.

Regards
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Raku22:
Thx it works on my P 20 pro
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
Good idea. Good luck.m
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] matt4321:
Updated to .211 and rooted with magisk. Used the new method with EMUI flasher.

Cheers [MENTION=4960686]OldDroid[/MENTION]
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Raku22:
Hi you don't have props with playstore?

bc unprooved Firmware?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] matt4321:
I've been using this to use a valid fingerprint to pass SafetyNet fully and keep Play Store certification valid

https://xdaforums.com/apps/magisk/module-magiskhide-props-config-t3789228
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] danifilth4king:
Which version did you use from FF? It's hard to follow which firmware matches my model now due to the firmware naming convention change. My device is CLT-L09C432, can you recommend the correct firmware for my phone? Thanks!
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] D168:
So it turns out it was the Ainur JamesDSP Module that was causing the issues. If I install it, Magisk would break and I wouldn't be able to get it to root again, essentially. What a nuisance.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
never use any audio mod like viper, ainur etc with stock emui.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] D168:
Out of curiosity, why is that?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] lvbaal:
Step 7: this patched recovery ramdisk to Re-flash, can this be the one from an earlier fw version? I mean, I have saved the patched recovery ramdisk from 195. So I can re-flash this and don't have to patch the stock recovery ramdisk from 201 with magisk manager?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
p20 pro already has atmos preinstalled into system. from my experience, installing any othwr sound mod bring more problem than profit, lol

---------- Post added at 05:22 AM ---------- Previous post was at 05:21 AM ----------

to be safe, use latest recovery_ramdisk extracted from your correlated firmware version
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] silverstream:
Yes U did and it worked.

---------- Post added at 07:46 PM ---------- Previous post was at 07:42 PM ----------

Same thing happened to me. Interestingly I had JamesDSP from EMUI8 and upgraded to EMUI9 168 and it worked. But having it installed and patched tk 197 root, I cannot boot into root. I had to flash 168 patched recovery and somehow it uninstalled JamesDSP from Magisk. After trying multiple times on 197, I gave up. I suspect something changed from 168 to 197 causing incompatiblity with JamesDSP
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] alvaro_plopez:
Hi!

¿Using this method you have also to delete any fingerprint or security code to make it work?

Many thanks
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
No, you can keep fingerprint, since this method wont need TWRP.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] alvaro_plopez:
Hi!

How can I extract/get the recovery_ramdisk of a firmware to use the correct one?

Thanks!
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] danifilth4king:
Download the firmware.zip from firmware finder on your PC (or download on your phone and transfer the file to your PC) unzip, locate the UPDATE.APP and use Huawei Update Extractor from here https://xdaforums.com/showthread.php?t=2433454 to extract the recovery_ramdisk.img
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] colthekid:
Anyone got the 203 recovery ramdisk? (C432 if it makes a difference these days) My PC is playing up and not allowed to use the extractor on my work's laptop (although I can use adb!)

Unpatched preferably...Thanks

Edit: Nevermind, managed to get it working.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] matt4321:
Upgraded with EMUI Flasher to .236 which has the March security patches.

I've uploaded the patched_boot.img for the .236 firmware so others can use it

https://www.androidfilehost.com/?fid=1395089523397909364

EDIT: Very strange it's now switched back to saying Feb patches but it did at one point say March patches...

EDIT2: Looked at the build.prop on the system and it says 1st March

EDIT3: So this Magisk module (https://xdaforums.com/apps/magisk/module-magiskhide-props-config-t3789228) which can be used to spoof device fingerprint to pass SafetyNet also contains information on the security patch. Seems the settings is getting the info from there and not the build.prop flag that says the security patch too. The fingerprint I am using to spoof has the Feb patch.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
may i know, which fingerprint you are using ? since P20 pro only have 8.1 listed as certified fp.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] matt4321:
Sure

google/marlin/marlin:9/PQ2A.190205.003/5180536:user/release-keys
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
ah... marlin, i see

does it have any side effect though ? to the system itself ? by using fp from other manufacturers,

i only noticing that the system re-run "optimise app" and "finishing update" upon boot when i changed fingerprint
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] matt4321:
I've been doing for it ages I haven't noticed anything. It's only 1 flag which tells other stuff what device you're using.

The first side effect I've noticed is the security patch seems to gets its information from the fingerprint so displays wrong in the settings but that's hardly an issue
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
It is safe to remove screen PIN and fingerprint before using this app. But, I have removed and rewrote the tool to address both older EMUI builds and new EMUI buils. I flashed with the help of this tool and works good.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
I updated OP with new tool which works for both old and new EMUI builds.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
I have updated OP with the new tool now.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] cadkey:
OP with FLASH_full_base.bat doesn't work for me.

phone doesn't start in twrp mode (USB debugging is ON)

how to continue in manually mode please? (Old OP step by step worked like a charme)

Edit After some try, OP works well. Thanks
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
There are few steps need great attention.

1. If device is not put to fastboot / download mode using the tool, there is small guide in there for how to put to download mode. Even if we have enabled USD debugging, it is better to revoke debugging in Developer options, then enable USB debugging and connect to PC. Now open "cmd-here.exe" from the tool. Issue the command adb devices and check if your device is listed. When you run this command, you decice screen will request authentication. You have allow.

2. After flashing TWRP, i have mentioned in the tool that after TWRP flashed you have to quickly remove your device and keep pressing volume up button.

If we are careful considering the above, flashing will be smooth even in the first instance.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] CaerCadarn:
Just one short noobie question!

Actually I'm on 9.0.0.163 (C432E5R1P9) and the newest version for updating on my phone shows 9.0.0.203 (C432E5R1P9). The newest one here in the OP shows

EMUI 9.0 Build 204

EMUI 9.0 build 236

Can I use these ones safely? Or does it have strictly has to match the one shown in the software updater?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Saipion:
The latest firmware I can get for my phone (CLT-L09C782) on firmware finder is 168. It does say that "CLT-LGRP2-OVS 9.0.0.203 FULLOTA-MF" is approved for installation on my device. I guess I can use that to flash? If not I guess I can just extract Recovery_ramdis from 168 install twrp and root from there?

FF says 204 and 236 are not approved for my device.

Thanks
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] XTutorials:
So after reading the guide, I want to downgrade to 9.0.0.159(from 9.0.0.203) to then unlock the bootloader and flash LOS 16. Although I'd like to know how safe is this procedure and if it's possible to be done with the locked bootloader.

Thanks
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
nah,

unlocked first.

forget about doing any mod to device if its locked
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] smohanv:
ofcourse you can.