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

ilos

Senior Member
Jun 17, 2007
1,523
244
0
Saint Priest
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.
It's a question or affirmation? [emoji848][emoji16][emoji23]

I will probably just for fun give a try but I will don't keep root coz recovery patched make me loose software operator (byebye volte and vowifi...)

Sent from my LYA-L29 using Tapatalk
 
Last edited:

Fiscelan

Senior Member
Jul 17, 2012
67
9
0
London
It's a question or affirmation? [emoji848][emoji16][emoji23]

I will probably just for fun give a try but I will don't keep root coz recovery patched make me loose software operator (byebye volte and vowifi...)

Sent from my LYA-L29 using Tapatalk
I flashed this TWRP from this post https://forum.xda-developers.com/showpost.php?p=78590575&postcount=2
It boots fine to recovery but then the data is encrypted.
I guess one has to use the RemoveEncryption-Mate20_pro.zip file used in the post, but I have not tried it.
 

ubersapian

Senior Member
Aug 6, 2012
73
33
0
Adelaide
It's a question or affirmation? [emoji848][emoji16][emoji23]

I will probably just for fun give a try but I will don't keep root coz recovery patched make me loose software operator (byebye volte and vowifi...)

Sent from my LYA-L29 using Tapatalk
Think I'm gonna go with more so a helpful statement rather than "question or affirmation" ?

And couldn't you possibly just hide what ever system file/s that are responsible for voLTE and voWIFI with magisk hide ?

---------- Post added at 10:39 PM ---------- Previous post was at 10:33 PM ----------

I flashed this TWRP from this post https://forum.xda-developers.com/showpost.php?p=78590575&postcount=2
It boots fine to recovery but then the data is encrypted.
I guess one has to use the RemoveEncryption-Mate20_pro.zip file used in the post, but I have not tried it.
I tried this from a fresh firmware install and flashed twrp straight off before actually booting into the operating system .. and simply just ADB pushed the latest magisk 19 zip from my PC .. reboot back into twrp and installed zip from there.
 
  • Like
Reactions: Fiscelan

flyl0

Senior Member
Dec 8, 2018
167
34
38
Paris
You should make a dload update. BL will be locked again and your phone reset like out of box.
Ok this is what I did yesterday I reinstalled the firmware with the FH method and my bootloader was locked again after that

Sent from my HUAWEI LYA-L29 using XDA Labs
 

xanthrax

Sr. Mod / Mod Committee Lead / RC-RT Com - Vampire
Staff member
Apr 12, 2011
23,929
23,946
263
Darkside
members

it came into my attention that lately a frenzied selling/buying business has taken place here. That being said, I may urge you to have a look at the Forum Rules and especially to the related to this, quoted below:
11. Don’t post with the intention of selling something.
Don’t use XDA to advertise your product or service. Proprietors of for-pay products or services, may use XDA to get feedback, provide beta access, or a free version of their product for XDA users and to offer support, but not to post with the intention of selling. This includes promoting sites similar / substantially similar to XDA-Developers.com.
Do not post press releases, announcements, links to trial software or commercial services, unless you’re posting an exclusive release for XDA-Developers.com.
Encouraging members to participate in forum activities on other phone related sites is prohibited.
Thanks for understanding!
thread temporarily closed for maintenance
-=-=-
I`d also advise you to be more careful when posting your IMEI on forums
heavy cleaning of selling activities posts has been performed
thread re-opened
 
Last edited:

deepsrd

Senior Member
Apr 4, 2008
102
61
0
London
Ok this is what I did yesterday I reinstalled the firmware with the FH method and my bootloader was locked again after that

Sent from my HUAWEI LYA-L29 using XDA Labs
Just FYI,
the phone will not let you relock the bootloader if the system, recovery partitions have patched or unsigned code.
It has to be all stock, and then you can relock the bootloader from fastboot.
 

User422

Senior Member
Aug 8, 2015
146
16
0
Edit: Done. I was seemingly just too exhausted to see that I was able to access what I needed all along.
 
Last edited:

ilos

Senior Member
Jun 17, 2007
1,523
244
0
Saint Priest
Think I'm gonna go with more so a helpful statement rather than "question or affirmation" ?

And couldn't you possibly just hide what ever system file/s that are responsible for voLTE and voWIFI with magisk hide ?
Don't know which files to hide for voLTE and voWIFI, also I'm not loosing only volte and vowifi. All files related to Huawei (ie file manager, appgallery, etc...) are hidden (don't checked if they're still in system/app), and Huawei ID not available too. When I boot normally all are back... ???
That's pretty strange...
I've already tried to hide Huawei mobile service and some over Huawei stuff with magisk hide and got a black screen..

---------- Post added at 10:39 PM ---------- Previous post was at 10:25 PM ----------

I tried this from a fresh firmware install and flashed twrp straight off before actually booting into the operating system .. and simply just ADB pushed the latest magisk 19 zip from my PC .. reboot back into twrp and installed zip from there.
You still need to boot with volume up?



Sent from my LYA-L29 using Tapatalk
 
Last edited:

User422

Senior Member
Aug 8, 2015
146
16
0
Hey, I had succesfully rooted my device with the instructions in this thread.
After installing a Magisk module, I got into a bootloop and since I got my phone running again, I wasn't able to get it rooted again.

I have done the same steps as before but root just won't work anymore.

---------- Post added at 02:42 AM ---------- Previous post was at 01:55 AM ----------

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.
I've tried to do so but I can't mount "Micro SD card" and "USB OTG".
Sideloading also fails all the time.
So I can't flash anything since I don't even get to see the files when in TWRP.
 

ubersapian

Senior Member
Aug 6, 2012
73
33
0
Adelaide
Hey, I had succesfully rooted my device with the instructions in this thread.
After installing a Magisk module, I got into a bootloop and since I got my phone running again, I wasn't able to get it rooted again.

I have done the same steps as before but root just won't work anymore.

---------- Post added at 02:42 AM ---------- Previous post was at 01:55 AM ----------



I've tried to do so but I can't mount "Micro SD card" and "USB OTG".
Sideloading also fails all the time.
So I can't flash anything since I don't even get to see the files when in TWRP.
Yes I've had same OTG issues with the Pretorian TWRP image that is linked to on a thread here .. supposedly there is a later version floating around which is meant to address the OTG issue. I will post link if I come across it.

But I've had no probs sideloading via CMD console on windows PC with "ADB push <filename> sdcard"

---------- Post added at 12:11 PM ---------- Previous post was at 11:49 AM ----------

Hey, I had succesfully rooted my device with the instructions in this thread.
After installing a Magisk module, I got into a bootloop and since I got my phone running again, I wasn't able to get it rooted again.

I have done the same steps as before but root just won't work anymore.

---------- Post added at 02:42 AM ---------- Previous post was at 01:55 AM ----------



I've tried to do so but I can't mount "Micro SD card" and "USB OTG".
Sideloading also fails all the time.
So I can't flash anything since I don't even get to see the files when in TWRP.
Or perhaps try the TWRP that @Aurus76 links to in the RomAUR thread.
 
  • Like
Reactions: Fiscelan

fromiOS2Android

Senior Member
Dec 29, 2018
100
16
18
Trondheim
Finally have root on my mate 20 pro thanks to this thread:good:
I have The same screen in magisk but no updated to 19? Does not magisk detect this? So i have to update manually?
Mine is magisk 18.100

Where or how to update to 19 without screwing with my current settings as my phone now is just as i want it after countless hours of resetting and updating ++++

Please help
 
  • Like
Reactions: Fiscelan

Fiscelan

Senior Member
Jul 17, 2012
67
9
0
London
I have The same screen in magisk but no updated to 19? Does not magisk detect this? So i have to update manually?
Mine is magisk 18.100

Where or how to update to 19 without screwing with my current settings as my phone now is just as i want it after countless hours of resetting and updating ++++

Please help
Thanks to all here, I'm finally re-rooted. I've used the modified boot method, it does work for me.
But flashing Magisk canary zip file through TWRP did not work for me.

In any case I used files provided by Aurus in this post https://forum.xda-developers.com/showpost.php?p=78590575&postcount=2

Now I just used the root Essentials app to add a "Reboot to Recovery" in the quick settings, instead of using the keys.

Cheers again :D
 
Last edited:

fromiOS2Android

Senior Member
Dec 29, 2018
100
16
18
Trondheim
Thanks to all here, I'm finally re-rooted. I've used the modified boot method, it does work for me.
But flashing Magisk canary zip file through TWRP did not work for me.

In any case I used files provided by Aurus in this post https://forum.xda-developers.com/showpost.php?p=78590575&postcount=2

Now I just used the root Essentials app to add a "Reboot to Recovery" in the quick settings, instead of using the keys.

Cheers again :D
I do not press any keys during boot?? Used patched ramdisk once and phone boots with root without holding any keys every time...

Stock 9.0.0.208 with magisk 18100.
Safetynet check green on both and all apps working AS they should. Flashed recorvery_ramdisk.img patched of curse. Boot to root with out hotkeys.
Can flash twrp if needed then back to patched boot when done .

Still missing an answer on The magisk update to 19?
 

fromiOS2Android

Senior Member
Dec 29, 2018
100
16
18
Trondheim
I do not press any keys during boot?? Used patched ramdisk once and phone boots with root without holding any keys every time...

Stock 9.0.0.208 with magisk 18100.
Safetynet check green on both and all apps working AS they should. Flashed recorvery_ramdisk.img patched of curse. Boot to root with out hotkeys.
Can flash twrp if needed then back to patched boot when done .

Still missing an answer on The magisk update to 19?
Edit: magisk 19 is beta of curse. Sorry for this
 

vstrglv

Member
Feb 5, 2019
11
2
0
Hi, I have a problem after
" C:\ADB+FASTBOOT\ADB+FASTBOOT>fastboot flash recovery_ramdisk "patched_boot.img"
target reported max download size of 471859200 bytes
sending 'recovery_ramdisk' (31992 KB)...
OKAY [ 0.682s]
writing 'recovery_ramdisk'...
OKAY [ 0.175s]
finished. total time: 0.859s
C:\ADB+FASTBOOT\ADB+FASTBOOT>fastboot reboot
rebooting...
finished. total time: 0.009s.
Now I can not boot into recovery mode. If I press and hold Power and volume up, phone goes to fastboot mode. When I open Magisk Manager- Magisk is not installed.
 

PrecisionShadows

New member
Apr 2, 2019
2
0
0
Can you give an example of your path to "PATH_TO_patched_boot.img"

I must be getting syntax incorrect for the file in internal storage download folder, and I have tried everything with and without / leaving out folders.

We’re you able to figure this out? I’m having the same trouble myself.
 

PrecisionShadows

New member
Apr 2, 2019
2
0
0
Mine is
Fastboot flash recovery_ramdisk c:\adb\patched_boot.img

Awesome! Thank you, that example helped me and the command looks like it worked. After that I Fastboot reboot and then reboot with up and power buttons? Seems I’m not getting root after doing that so I’m trying to make sure my process is all correct.
 
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