[Guide] Mate 9 Magisk

mankindtw

Senior Member
Jul 22, 2008
236
399
0
I'm using mate 9 with Magisk for a while. Here is the steps how I flash my phone.
Notice: Only verified Mate 9 MHA-L29C636B188 (Pass SafetyNet Check).

Magisk: Thanks to @topjohnwu
Huawei Firmware Finder: Thanks to (Team MT)
TWRP 3.1.0-1: Thanks to @Tkkg1994

  1. Prepare:
  2. Download:
    • A. Download Huawei Firmware Finder PC Tool (Link)
    • B. Run "FimrwareFinderRewrite.exe" and select "Common Base".
    • C. Select phone brand (Ex: MHA-L29C636) and click "Find".
    • D. Select 1A. Firmware (Ex: MHA-L29C636B188) "Filelist" and download the second and third link file.
    • E. Put 1B. bootimg_data_decrypt_xxx.zip and 2D. files(___data___.zip and ___hw___.zip) into phone SDCard.
  3. Unlock:
    • A. Phone power off, press vol-down and usb cable to enter fastboot mode.
    • B. fastboot oem unlock xxxxxx (xxxxxx is your unlock code)
  4. Flash:
    • A. Enter Fastboot again using "fastboot flash recovery MHA_xxxx-3.1.0-1-hi3660.img" to flash TWRP Recovery.
    • B. Phone power off, press vol-up and power to enter TWRP.
    • C. TWRP select "Keep Read Only" (Everytime enter TWRP select this.)
    • D. Wipe => Format Data => yes
    • E. Install => Select 2E. bootimg_data_decrypt_xxx.zip file.
    • F. Install => Select 2E. xxxx__data__xxxx.zip file.
    • G. Install => Select 2E. xxxx__hw__xxxx.zip file (Ignore errors).
    • H. Reboot => System => Do Not Install.
  5. Magisk:
    • A. Download "SafetyNet Test" application in Google Play Store.
    • B. Run SafetyNet Test, only CTS profile match fail.
    • C. Put 1B. Magisk-vxxxx.zip and Huawei-Prop-Fix-xxxx.zip into SDCard.
    • D. Phone power off, press vol-up and power to enter TWRP again.
    • E. Install => Select Magisk-vxxxx.zip
    • F. Install => Select Huawei-Prop-Fix-xxxx.zip
    • G. First boot SafetyNet Test can't pass.
    • H. After second boot SafetyNet Test pass.
    • I. If SafetyNet Test failure in the future, disable all modules in Magisk, reboot SafetyNet pass then enable modules.
Update: Huawei-Prop-Fix-v1.2_2017091101.zip (Be sure Magisk has busybox, recommend v14.0) [Link]
 
Last edited:

ante0

Senior Member
Dec 28, 2009
3,206
1,576
243
Stockholm
Please note that you need to be on a firmware released on or after 12th of April 2017. If it's before that date you'll fail at flashing Magisk.

And you should probably add a notice that this is for decryption.
If coming from SuperSU or PHH you'll have to flash back stock boot image before flashing.
If you're already decrypted there's no need to format data again.

If you want to stay encrypted, flash this instead: https://mega.nz/#!o4ESgABJ!DyUxQSKo8skyfv05sSuU7FjMmsyeckAO0KD_1dDIctw
 
Last edited:
  • Like
Reactions: Surfinette

Iloudsan

Senior Member
Nov 22, 2012
282
34
0
I have tried several times flashing magisk with C185B181 and I gave up it fails hiding the root! Ante0 tried to help me but I gave up
 

ante0

Senior Member
Dec 28, 2009
3,206
1,576
243
Stockholm
I have tried several times flashing magisk with C185B181 and I gave up it fails hiding the root! Ante0 tried to help me but I gave up
Try flashing the module linked in OP, the Huawei fix. It seems to work for me. USB debugging is staying on, I just had to go to the service menu and enable logging again. After rebooting several times it's still passing :D

Before, after it became buggy for me again, I had to enable USB debugging after rebooting/using adb. And yesterday I had to enable logging to get it running.
 

Iloudsan

Senior Member
Nov 22, 2012
282
34
0
Try flashing the module linked in OP, the Huawei fix. It seems to work for me. USB debugging is staying on, I just had to go to the service menu and enable logging again. After rebooting several times it's still passing :D

Before, after it became buggy for me again, I had to enable USB debugging after rebooting/using adb. And yesterday I had to enable logging to get it running.
Thanks I'll give it a try tonight
 

mankindtw

Senior Member
Jul 22, 2008
236
399
0
Try flashing the module linked in OP, the Huawei fix. It seems to work for me. USB debugging is staying on, I just had to go to the service menu and enable logging again. After rebooting several times it's still passing :D
Fix property script enable persist adb, that's the point to pass safetynet. I didn't enable logging and it passed as well.
 

ante0

Senior Member
Dec 28, 2009
3,206
1,576
243
Stockholm
I got it running but the apps takes really long time to load and freeze a lot is this normal
Do you mean the magisk manager?
It shouldn't take long at all. Or it doesn't for me at least.

Fix property script enable persist adb, that's the point to pass safetynet. I didn't enable logging and it passed as well.
I think it's because usb debugging kept disabling for me.
Not sure why it would stop logging, I couldn't even get a logcat...

Oh well, it works now!
By the way, did you make the module? if so you should post it in the Magisk section of XDA. More people are having trouble with Magisk on other Huawei devices (P10, P9, Honor etc.) , and it might help them too.
 
Last edited:

mankindtw

Senior Member
Jul 22, 2008
236
399
0
Oh well, it works now!
By the way, did you make the module? if so you should post it in the Magisk section of XDA. More people are having trouble with Magisk on other Huawei devices (P10, P9, Honor etc.) , and it might help them too.
Yes, I made the module and already post in Magisk 13.6 thread. I don't want to open a new thread in Magisk.
Because I don't have other devices to test if they fail on SafetyNet test.
 

repoman728

Member
May 29, 2016
48
0
0
Hello
So is it possible to install magisk on rooted with PHsuperuser MHA-L29C185b181 .
what is the best method flash it with TWRP or with Magisk Manager
thankd in advance
reg
 
Last edited:

pri10

Member
Apr 16, 2011
5
0
0
Followed the post as instructed and it works just fine! Installed Magisk on my Mate 9 MHA-L29C567B190. Cheers!! :D
 
Last edited:

herb9876

Senior Member
Dec 9, 2016
100
38
28
Confirmed Mate 9 Pro is working

for those who are interested I followed the instructions to a t however substituted and used update_data_public.zip & update_all_hw.zip files from MATE 9 PRO Firmware LON-L29C636B229.

I also used twrp-3.1.0-1-hi3660 which may be the same but i found mine on a mate 9 pro thread.

It was actually seamless installation and ive had my mate 9 pro rooted with supersu before but never magisk because I couldn't quite get it working but this method worked perfectly.

Like I said I just followed instructions but substituted those two .zip files and used all other files in the instructions.

I will attach a couple screen shots if I can figure out how on here. Man this thing is snappy as Ive ever seen it.... great job on the directions and this thread.... I have seen no lag as far as the magisk apk its all very very fast with no hiccups so far.
 

Attachments

herb9876

Senior Member
Dec 9, 2016
100
38
28
Also seems to work on my P10 Plus

Maybe this is old news I just thought id share it in case no one has tested it yet.

model is VKY-L29 and i just substituted those two firmware finder files from B162 of the p10 plus fw

also i used a different twrp obviously but this method has my recent huawei devices running magisk for the first time at least for me its great thing ive never been able to figure out how to do it until this method. thanks
 

Attachments

  • Like
Reactions: 5[Strogino]