• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Search This thread

trainfire

Senior Member
Mar 30, 2014
92
12
Brekstad
Hi. Me and my wife has the same Mate 20 pro and I also rooted both of our phones at the same time. Everything is the same, and it works really good, except on my wifes phone, after some usage it starts rebooting randomly (once a day maybe) and when it does it reboots normally, not into recovery so root is not working then. We cannot boot it into recovery with holding volume up and power like normal, but connecting it to the pc then rebooting using "adb reboot recovery" works like a charm. Any ideas what may cause this? Or maybe a way to force it into recovery without pc.
Any help would be appreciated.

Thanks
 

oslo83

Senior Member
Hi. Me and my wife has the same Mate 20 pro and I also rooted both of our phones at the same time. Everything is the same, and it works really good, except on my wifes phone, after some usage it starts rebooting randomly (once a day maybe) and when it does it reboots normally, not into recovery so root is not working then. We cannot boot it into recovery with holding volume up and power like normal, but connecting it to the pc then rebooting using "adb reboot recovery" works like a charm. Any ideas what may cause this? Or maybe a way to force it into recovery without pc.
Any help would be appreciated.

Thanks

On Emui9.1, VolumeUp @ boot does not bring anymore recovery mode : Normal Emui9.1 behavior.

Do a Direct Magisk install straight from MagiskManager, when you are on MagiskManager STABLE repo and with 'RECOVERY Mode' option checked in lain MagiskManagerScreen
 
  • Like
Reactions: dimon222

dimon222

Senior Member
Sep 27, 2010
210
49
Toronto
romanenko.in
Loki[ITA said:
;81848777]Hi guys, anyone has tried this one to unlock the bootloader?
https://github.com/SkyEmie/huawei-honor-unlock-bootloader
It's statistically unreal to brute force the code. After every 5 wrong tries, phone is rebooting to regular mode automatically. The device while all this happening is using 100% brightness and momentarily gets hot.
It will take decades, and computational power/electricity costs would be higher than buying new Xiaomi with easy unlocks. Huawei will simply overheat and burn by this time.

Even if u get the code somehow, on Emui 10 Huawei completely removed bootloader unlock command, so that means you will be permanently stuck on your own without any support from development community (there's nobody to develop...)
 
Last edited:
  • Like
Reactions: Valkiry

Valkiry

Senior Member
Jul 24, 2015
296
76
Melbourne
It's statistically unreal to brute force the code. After every 5 wrong tries, phone is rebooting to regular mode automatically. The device while all this happening is using 100% brightness and momentarily gets hot.
It will take decades, and computational power/electricity costs would be higher than buying new Xiaomi with easy unlocks. Huawei will simply overheat and burn by this time.

Even if u get the code somehow, on Emui 10 Huawei completely removed bootloader unlock command, so that means you will be permanently stuck on your own without any support from development community (there's nobody to develop...)

Very well said. This device didn't get the support it really should have, due to the fact of the ****ty bootloader system. Turned too many devs away
 

xeroxide

Senior Member
Jul 3, 2012
67
18
EMUI 10? It cannot be true, since upgrading to EMUI 10 locks bootloader back, and there's no way to unlock it in EMUI 10.

yep and this is the last Huawei device I will own while they force this stance.
I wanted to support them even though they were almost "banned" in my country. All the claims and so called proof seemed vague, and until proof was solid, I was happy to continue using this phone.

But, this sort of tyrannical boot loader lock mentality goes against my very core

I have my unlock code but can't use it in emui10.
I'll jump ship as soon as something worth upgrading to comes along (better camera/battery life -- very hard to beat the m20p in this regard)
 

Dav21t

Senior Member
Sep 11, 2016
85
11
Im on latest EMUI 10 and my Bootloader is unlocked too, im from Germany. It was unlocked from Factory, i dont had to buy a Unlock key or something.
 

Dav21t

Senior Member
Sep 11, 2016
85
11
yep and this is the last Huawei device I will own while they force this stance.
I wanted to support them even though they were almost "banned" in my country. All the claims and so called proof seemed vague, and until proof was solid, I was happy to continue using this phone.

But, this sort of tyrannical boot loader lock mentality goes against my very core

I have my unlock code but can't use it in emui10.
I'll jump ship as soon as something worth upgrading to comes along (better camera/battery life -- very hard to beat the m20p in this regard)

Yes, take a look on YouTube where i uploaded the proof. And i literally got the Update to .214. I will upload a send video once i updated. Sorry Bad English


Heres the yt link:


Edit: Heres the Second Video on. 214

The yt link:
 
Last edited:

xeroxide

Senior Member
Jul 3, 2012
67
18
Yes, take a look on YouTube where i uploaded the proof. And i literally got the Update to .214. I will upload a send video once i updated. Sorry Bad English


Heres the yt link:


Edit: Heres the Second Video on. 214

The yt link:

yes that remains, that option lets you unlock the bootloader but you cannot use the commands in fastboot because the executable required to run are missing.

fastboot oem unlock ****code****

no longer works, it comes back with a command not found error making the first step useless.
please if you or anyone has found a way around this issue, I'd love to know.
 

Dav21t

Senior Member
Sep 11, 2016
85
11
yes that remains, that option lets you unlock the bootloader but you cannot use the commands in fastboot because the executable required to run are missing.

fastboot oem unlock ****code****

no longer works, it comes back with a command not found error making the first step useless.
please if you or anyone has found a way around this issue, I'd love to know.


oh i didn't even knew that :/ sorry for that
 

oslo83

Senior Member
Yes, take a look on YouTube where i uploaded the proof. And i literally got the Update to .214. I will upload a send video once i updated. Sorry Bad English


Heres the yt link:


Edit: Heres the Second Video on. 214

The yt link:
This is only oem-frp unlock on emui10. Not bootloader unlock. on emui10. You are mistaken.

---------- Post added at 15:07 ---------- Previous post was at 15:05 ----------

yes that remains, that option lets you unlock the bootloader but you cannot use the commands in fastboot because the executable required to run are missing.



fastboot oem unlock ****code****



no longer works, it comes back with a command not found error making the first step useless.

please if you or anyone has found a way around this issue, I'd love to know.
For now, if you want your bootloader unlocked back with its unlock code you already have, just use hisuite update option (Switch to other version) to rollback to emui9...
 

kala123

Senior Member
Nov 17, 2009
127
18
Damn, I just switched and dumped my iphone(Dont like it at all..) and bought mate p20 pro and now I read that I cant unlock the bootloader. FFS. Right now the phone is offering me to update EMUI to v10.0.0.180. I hold this update back and maybe there will be some way to unlock and root this phone in v9.1....
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    I read through quite a few post here to get everything sorted out and in order to save every one some time here is a summary of all the info I have gathered so far, and my way to thank the forum for offering me so many helpful tips. I'll try to keep this thread updated as information comes in.

    All credit goes to their respective owners, I am only aggregating all the information here.

    Current status on BL Unlock:

    China version: OEM unlock not greyed out, direct BL unlock possible
    EU/NA version (L09/L29/L0C): OEM unlock greyed out in developer options, BL unlock possible via FunkyHuawei method by upgrading to .170.
    UPDATE 2019/01/02: Some users reported they have already received the .171 update from carrier (https://forum.xda-developers.com/showpost.php?p=78571337&postcount=6), if that is the case you can skip the FH Method part and go directly to unlock BL.

    Note: Currently .170 is not GooglePay certified, so Google Pay won't work on this, if you must have Google pay please wait for your carrier to update to some version that support OEM unlock (tap build number 7x to get Developer Options in Settings -> System -> About Phone and then go to Settings -> System -> Developer Options and see if Enable OEM Unlock option is enabled).

    Also current recovery install requires you to boot into recovery (Power and volume up with phone disconnected from USB) every single time if you want root, which is not perfect.

    The only time you'd be required to wipe your phone is right after your BL is unlocked with fastboot OEM unlock, please make sure you have a backup before doing that step.

    Where to get unlock code?
    In order to get BL unlocked, you need both allow OEM unlock option NOT greyed out (i.e., you can enable it) AND a BL unlock code. BL unlock code can only be purchased either from FunkyHuawei (55 USD one time for BL unlock code only or if you buy an unlimited pass 132USD for unlimited flashing + BL unlock code (note that it is locked to your phone and can not be transferred)), or MinistryOfSolutions (30 Euro, https://ministryofsolutions.com/huawei-bootloader-unlock-service-all-new-models-new-firmwares, BL unlock code only).

    FunkyHuawei Method (for non-China version)
    1. Create an account in https://funkyhuawei.club/membersarea, buy 1 credit (if you just want to download .170 firmware, each credit cost 18USD).
    2. Go to Select Firmware tab, use LYA-Global if you don't see the exact model. Then select .171 version.
    3. Follow instructions here: https://pastebin.com/raw/Db5ZSyqu, you must download the specific HiSuite version (9.0.2.301)and the specific installer executable. Run the executable FHHiSuiteInstaller.exe as administrator (right-click and choose Run As Administrator) <- must run as admin since it will need to modify your host file. Make sure the script runs without error.
    3.1 (Additional step for L0C): Edit the c:\users\YOURHOMEFOLDER\appdata\local\hisuite\userdata\updatedogdev\hisuiteconfig.xml file and change LYA-L29 to LYA-L0C everywhere it occurs and save the file. (Thanks to FunkyHuawei Support for pointing this one out).
    4. Put the phone into fastboot mode (adb reboot-bootloader or with the phone off connect the usb cable while holding volume down, or boot the phone holding volume down with USB cable connected to PC).
    5. Go to HiSuite on your PC and click on System Recovery (furthest to the right towards the bottom of the main screen), and let it do the magic. You will see some cmd windows pop up however it should get to the download progress with a percentage pretty fast, if you don't see that pop up then please check to make sure you have at least one credit in the FH Select Firmware tab and you have installed the specific versions of HiSuite and ran the installer as admin in Step 3.
    6. Once everything is completed please verify to see if your firmware version is .171.

    Unlock Bootloader
    Again, get the BL code and go to Settings -> System -> Developer Options and make sure Enable OEM Unlock option is enabled. Also check to make sure you have everything backed up. Also enable USB Debugging in the same screen as well.
    Rest is pretty standard:
    Code:
    adb devices (will bring up the authorization window on your phone, click on Always Trust)
    adb reboot-bootloader
    fastboot devices (make sure the device is in fastboot mode)
    fastboot oem unlock *UNLOCK CODE*

    at this point there will be a format operation performed on the phone, if it didn't complete successfully don't worry, your phone is wiped. During the boot you should see a black window with yellow text of warnings to tell you your phone is unlocked and not secured.

    Go through all the steps to initialize the phone, turn on Developer options again, and enable USB Debugging again.

    Root

    1. Download and install Magisk Manager from this XDA post: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
    2. Switch channel, go to Magisk Manager -> Settings -> Update Channel , set it to Custom, and the URL is https://bit.ly/2N8UVlq (at the moment, per https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337). Go back to main screen and down swipe to refresh, it should say Latest Version > v18.0.
    3. You will need to find the stock RECOVERY_RAMDIS.img file, I used HW Firmware Finder (https://forum.xda-developers.com/tools/general/huawei-firmware-finder-team-mt-t3469146) to help me with the task, however I couldn't find the L0C update file and ended up using L09 update file instead, which appear to work. I also couldn't find the update.zip for .171 so I ended up using the latest full update version that was available to me (http://update.hicloud.com:8180/TDS/...69/g1750/v181585/f1/full/update_full_base.zip).
    4. Unzip the file, drag out UPDATE.APP file in the zip package, and opened it with Huawei Firmware Extractor (I used 0.9.9.5 in this thread: https://forum.xda-developers.com/showthread.php?t=2433454). Extract and open the UPDATE.APP in update file. If you get a checksum error make sure to uncheck both of the verify checksum in Settings -> Extract.
    5. Now you should see a RECOVERY_RAMDIS.img file, right click and extract it.
    6. Send the RECOVERY_RAMDIS.img file back to your phone (anywhere is fine), go back to Magisk Manager -> Install -> Patch boot, get the patched_boot.img file from the phone back to the PC.
    UPDATE 2019/01/02: @pvillasuso was kind enough to post the ramdisk image (both original and Magisk modified) for Mate 20 Pro LYA-L09 (Firmware version .171):https://forum.xda-developers.com/showpost.php?p=78575496&postcount=13, obviously use it at your own risk.
    7. Go to fastboot mode again:
    Code:
    adb devices
    adb reboot-bootloader
    fastboot devices
    fastboot flash recovery_ramdisk "PATH_TO_patched_boot.img"
    fastboot reboot

    Now your phone should be back to normal with no root yet, turn off your phone and turn it back on by booting into recovery (Power and volume up with phone disconnected from USB)

    Boot up and if you go to Magisk now you should be able to see Magisk installed with Installed Version same as Latest Version.

    Congrats you are now rooted!

    In future you will need to boot into recovery each time to maintain root (which requires you to turn phone off and power + vol up), if you prefer not to do so @ThatsJustLogic suggested you can use the app https://forum.xda-developers.com/showpost.php?p=78569733&postcount=2 to add a one-click reboot from your dropdown menu.

    Credits:
    @ThatsJustLogic - Figured out the installation steps to patch ramdisk: https://forum.xda-developers.com/showpost.php?p=78554707&postcount=125
    @duraaraa - Guy behind FunkyHuawei for figuring out the .171 upgrade and make everything works smoothly https://forum.xda-developers.com/mate-20-pro/how-to/unlock-rebrand-unbrick-update-t3855065
    @mutahharbashir - Guy behind MinistryOfSolutions for the unlock BL code.
    And creators of Magisk, HWFirmwareFinder, HWUpdateExtractor.
    4
    Hey crys18... do you have any idea of how long this Huawei unlocking service will last? A friend of mine has ordered a mate 20 pro but it won’t be arriving until late next week. Will it still be available by then? Or do you have no idea?

    Yes, it will work until your friend gets his phone :)
    3
    Now your phone should be back to normal with no root yet, turn off your phone and turn it back on by booting into recovery (Power and volume up with phone disconnected from USB)
    To stop you needing to do this on every boot this app: https://play.google.com/store/apps/details?id=com.superthomaslab.rootessentials allows you to add a "Reboot Recovery" button to your notification tray so its just a one tap reboot instead of holding volume up when you want to reboot after applying a change or something its something small but it saves some hassle.
    3
    No BL Unlock? Bye bye Huawei!

    I upgraded to the Mate20 Pro 20 months ago, from a Samsung S7 Edge *still a capable device and naturally has been rooted and a custom ROM now as a backup phone* .

    Huawei's decision to apparently permanently lock the devices BL so it can't be rooted or custom ROM'd etc, really has 100% decided that I will never own one of their devices again. Quite a shame really as shortly after I got the Mate20 Pro I actually got to really like & enjoy using it, and said then "next upgrade will be another Huawei"!

    A strange and possibly questionable decision to treat buyers & owners of Huawei devices by locking to their own firmware only. Sure I can imagine a large number of people don't mind and just use their chosen phone as purchased, and there is certainly nothing wrong with that at all.

    But it does feel insulting and a slap in the face if you wanted to modify it at some point, we pay good money to buy new devices after all. Bye bye HUAWEI!
    3
    Too bad we cannot root 10 and 11, my last huawei phone.
    My last one too sadly