[GUIDE]Unlocking Bootloader + Magisk Root for Huawei Mate 20 Pro

mrrobot06

New member
Mar 29, 2019
4
0
1
I'm having trouble booting into stock 228 with root. Just get bootloop when I try to reboot. But if I connect the usb cable and then boot into bootloader, then unplug and hold power+volume up it boots with root. Any ideas what's causing this?
i have the same problem as you but now this method doesn't work anymore... i can't boot with root :(
 

mtodak

Member
Jun 12, 2007
46
2
0
Can model LYA-L09 be unlocked?
Will it factory reset the phone or there will be no changes at all?
Is it permanent no matter what ROM, Firmware, Radio i flash thereafter?
Whats the step by step procedure?
Root: are there any known problems like bootloops etc. with build number 9.0.0.198? Asking as can see here that there are with .228
 
Last edited:

richard_li

Senior Member
Dec 24, 2017
75
5
0
Solution for me to relock phone was to flash a rom to the phone and when the firmware flash was at the 100% point as soon as phone starts to reboot you plug in cable and volume down into fastboot mode and then use the "fastboot OEM relock (your bootloader code).

Works for me everytime
thanks but it still not workable , anybody still have other solution ???
 

richard_li

Senior Member
Dec 24, 2017
75
5
0

DN38416

Senior Member
Sep 23, 2014
91
23
0
Melbourne
i tried E-recovery method it can flash successfully but not solve the relock issue... can you share me more detailed USB method for firmware upgrade ? i try lots of way , funkyhuawei , HStool ,etc..... not solved
Yeah eRecovery won’t do it. It needs to be via the USB method. Just follow the instructions in the OP of the thread I linked.
You’ll need to have either a USB-C thumbdrive (or an adapter or OTG cable I think)
I’ve only tried it with USB-C thumbdrive.
 

DN38416

Senior Member
Sep 23, 2014
91
23
0
Melbourne
Anyone know if Huawei is able to tell if the bootloader is unlocked just by checking the IMEI? Is this information uploaded to their servers or anything or is it confined to the device?
Or do they need to physically connect to the phone to find out?

Just curious in case the phone somehow gets bricked and I attempt a warranty claim.
 

deepsrd

Senior Member
Apr 4, 2008
102
61
0
London
Anyone know if Huawei is able to tell if the bootloader is unlocked just by checking the IMEI? Is this information uploaded to their servers or anything or is it confined to the device?
Or do they need to physically connect to the phone to find out?

Just curious in case the phone somehow gets bricked and I attempt a warranty claim.
Think not, but in my experience, it is extremely hard to brick your phone.. especially with the erecovery.

I have been tinkering with GSIs since I have unlocked my bootloader, and I have flashed almost all partitions I know, except OEMinfo.
Everytime, I can get back to stock using eRecovery.

Side note, A/B GSIs boot fine on the mate 20 pro..
  • Resolution (dpi) is wonky,
  • NFC does not work
  • FP works, but it wont enroll you, as the SEpolicy is missing..
  • BT does not work well

I will work on fixing these when I get time..
 
  • Like
Reactions: QAM

fromiOS2Android

Senior Member
Dec 29, 2018
100
16
18
Trondheim
Think not, but in my experience, it is extremely hard to brick your phone.. especially with the erecovery.

I have been tinkering with GSIs since I have unlocked my bootloader, and I have flashed almost all partitions I know, except OEMinfo.
Everytime, I can get back to stock using eRecovery.

Side note, A/B GSIs boot fine on the mate 20 pro..
Resolution (dpi) is wonky,
NFC does not work
FP works, but it wont enroll you, as the SEpolicy is missing..
BT does not work well


I will work on fixing these when I get time..

Use erecovery you say. What about recovery_ramdisk.img that is modified?? Do you have original recovery ramdisk? Or does erecovery fix this to stock no matter what is earliar flashed??
 

ubersapian

Senior Member
Aug 6, 2012
73
33
0
Adelaide
So if anyone having issues patching extracted ramdisk recovery / patched magisk images from update app for root then the alternative method is to flash twrp bootloader and just install the latest canary build magisk 19 from there .. once that is done then install latest magisk manager from the canary build GitHub.
 
  • Like
Reactions: Fiscelan
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone