yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 Guides, News, & Discussion] anhbadawi:
Hello :) thanks for your hard work!

First time rooting my device, im on L29C185B187

I unlocked the bootloader and installed TWRP successfully. However, when trying to get the links for public_data and full_hw_data, it seems there is no public_data.zip for my FW.

I cant share a link because im a new user, but the filelist.xml for my FW only has these entries under vendor:

<vendorInfo logfile="changelog.xml" name="common" package="update.zip" subpath=""/>
<vendorInfo logfile="" name="MHA-L29-hw-meafnaf" package="update_full_MHA-L29_hw_meafnaf.zip" subpath="MHA-L29_hw_meafnaf"/>

Can anyone explain to me why i dont have a public.zip? and how can i proceed without it? or where can i find it?

PS: Vendor: hw

Country: meafnaf
[Huawei Mate 9 Guides, News, & Discussion] golastic:
Any way to decrypt oreo yet cuz this instructions doesnt work with oreo and also is magisk working now with oreo.?

Thx in advance
[Huawei Mate 9 Guides, News, & Discussion] drift08:
I just received my mate 9 yesterday, unlocked the bootloader today. Planning to root tonight. Which methods is better?
[Huawei Mate 9 Guides, News, & Discussion] madag94:
Hello! I have problems when flashing superroot.zip it says Error 1. Any help, please?
[Huawei Mate 9 Guides, News, & Discussion] tonyeltigre:
Same issue with US version. My google apps are broken =[
[Huawei Mate 9 Guides, News, & Discussion] tonyeltigre:
This is like the how to break your phone guide, follow as close as you want the OPs post just wont work.
[Huawei Mate 9 Guides, News, & Discussion] beejkitsune:
Hi Guys, hoping for some help. I just got a "Limited Edition" Champagne Gold Mate 9 today as a replacement for my Nexus 6P since they can't get any parts, apparently, here in the UK and had been holding on to my phone for three months(!).

Currently I'm running MHA-L29C463B197, bootloader unlocked, TWRP 3.1.1-0 (or something to that effect) installed but I cannot seem to get any further with regards to flashing Magisk. As far as my research had gotten me it appears I

need

to be decrypted for this to work I had the xxx_full_xxx and xxx_hw_xxx files for B197 but I cannot find a boot image.

I have done several hours research here on XDA and I am not a stranger to flashing ROMS after having an S4 from day one and both a Nexus 6 and 6P but this seems to be an entirely different ball game and any help would be muchos appreciated.

Thank you all in advance!!!
[Huawei Mate 9 Guides, News, & Discussion] beejkitsune:
Can I ask the procedure you used to get Magisk. I'm on MHA-L29C432B197 unlocked bootloader and twrp?
[Huawei Mate 9 Guides, News, & Discussion] SonOfTheRain:
Hello,

I have a problem with upgrading.

My software version is B190 and I have B194 availbale now. Once system restarts, I see TWRP since I installed for Magisk. I found B190's update.zip and extracted RECOVERY.img. After going to fastboot mode I wrote the command fastboot recovery recovery.img, I have following error:

target reported max download size of 471859200 bytes

sending 'recovery' (55218 KB)...

OKAY [ 1.197s]

writing 'recovery'...

FAILED (remote: Command not allowed)

finished. total time: 1.204s

I appreciate any help.
[Huawei Mate 9 Guides, News, & Discussion] ante0:
Fastboot flash recovery recovery.img

Mate 9 doesn't allow booting images directly.

If you are stock now you don't need boot image.

You could actually back it up in TWRP. You would only need boot image if you have phh, SuperSU or Magisk installed and want to switch root flavor.

And decrypting is not necessary, only benefit you gain is the ability to backup /data.

EDIT: if you do have stock boot image, please back it up and upload to mega or something. I can't find C463, and if you or anyone else should mess up their boot image it would help to have a backup :)
[Huawei Mate 9 Guides, News, & Discussion] beejkitsune:
I managed to flash Magisk but i had to decrypt. Every time I tried encrypted it put me in to a bootloop and then eRecovery. I don't mind being decrypted.

Thanks for getting back to me though. :)
[Huawei Mate 9 Guides, News, & Discussion] ante0:
OH yeah. If you used Magisk v14 it would remove encryption flag by default, that's why it boot loops (it tries to boot your phone without decrypting /data).

Magisk v14.3+ "fixes" it. It doesn't actually touch encryption flag now because it breaks support for other phones, so you'd have to edit boot image manually to get decrypted when using latest Magisk.
[Huawei Mate 9 Guides, News, & Discussion] beejkitsune:
That would be why. I believed I was using the. Most stable version which still appears to be 14.0. As I said, I don't mind being decrypted.

From what I've read I'm best, now I'm finished flashing everything, reverting back to stock recovery as this is best for fixing things if anything goes majorly wrong?
[Huawei Mate 9 Guides, News, & Discussion] ante0:
It doesn't really matter, but if you want to update in the future you'll have to flash back stock recovery.
[Huawei Mate 9 Guides, News, & Discussion] beejkitsune:
I'll bare it in mind for future updates and I'll flash back then. Thank you!
[Huawei Mate 9 Guides, News, & Discussion] SonOfTheRain:
Thank you for answer, I realized that in developer options it was enough to unlock oem. Later the same command worked.
[Huawei Mate 9 Guides, News, & Discussion] beejkitsune:
I don't think I was forthcoming enough to make a backup. Am I wrong in assuming that it's possible to extract a boot image from the Full OTA file; I'm sure I managed to do that and flash the img when I flashed Magisk 14.0 and when trying to make a Magisk boot img?
[Huawei Mate 9 Guides, News, & Discussion] Valuta:
I'm trying to switch to magisk but I am kind of stuck. Magisk tells me to un-root, the SuperSU app fails to do so. It also cannot update.
[Huawei Mate 9 Guides, News, & Discussion] drift08:
After testing both root methods, I went back to stock and unrooted because the rooted version gave me error 0 when updating apps like Google. I suspect permission issue with SU or TWRP. Wish someone could fix it
[Huawei Mate 9 Guides, News, & Discussion] calchung:
[MENTION=2247733]ante0[/MENTION]

Hi, I am having bootloop after upgrading to magisk v15 via magisk manager

So i went to twrp to flash the latest magisk uninstaller, then restarted the system. It seems to fix the bootloop, because it can show my wallpaper only, no password asked, only wallpaper and the notification bar is shown. Then I went to twrp again, but I found that the internal sd is encrypted again, so I flashed back the magisk v14 to hope that my phone will work again. However, it shows the Huawei Logo animation and bootloop again.

So I tried to flash the magisk uninstaller again, but no luck, cannot even enter the system or show the wallpaper. I repeated flashing the magisk uninstaller and magisk v14 for a few times. But now the phone is still having bootloop and the internal sd is still encrypted in twrp.

Could you please help me as I dont want to lose the data?
[Huawei Mate 9 Guides, News, & Discussion] ante0:
Flash back stock boot, then flash this:

https://mega.nz/#!JWg1ULpZ!ZLelQPYLN1X7HJPVEpb2Ko5-rJcKngceetEyBzF7aOg

See if it helps. (untested, I'm on Oreo)

You won't be able to decrypt without formatting data. But I guess you could "backup" using root explorer and move it back in twrp.

I'm guessing decryption still doesn't work. It was removed in 14.3 because it broke compatibility with Pixel phones.

You could add it to Magisk but you'd have to build it from source.

As to why, Magisk installer restores stock boot when you upgrade. And stock doesn't decrypt by default. If you boot decrypted, but boot image is encrypted your phone will re-encrypt.

If you then flash 14 which decryption works in, it tries to boot encrypted but won't decrypt, that's why you only saw wallpaper.
[Huawei Mate 9 Guides, News, & Discussion] calchung:
[MENTION=2247733]ante0[/MENTION]

Thanks for your quick reply. I couldn't find the sd card where I saved the nandroid backup.

Is there any way to download the stock boot image for my rom?
[Huawei Mate 9 Guides, News, & Discussion] ante0:
Do you remember your model+build?
[Huawei Mate 9 Guides, News, & Discussion] calchung:
As I remembered, it is bc636b183
[Huawei Mate 9 Guides, News, & Discussion] ante0:
Download this one: http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1366/g104/v88255/f2/full/update.zip

Extract update.app from the zip

Download Huawei Update Extractor: https://xdaforums.com/attachment.php?attachmentid=3262544&d=1429042973

Extract zip, open HuaweiUpdateExtractor.exe.

Click on the ".." button in the program, browse to and open your extracted update.app.

Right click on BOOT and click on Extract Selected. Select where to extract to. Flash boot.img with fastboot. Flash v15 i posted in twrp or Flash v14.3
[Huawei Mate 9 Guides, News, & Discussion] calchung:
[MENTION=2247733]ante0[/MENTION]

I found that I have the update.zip of the rom already in my pc, so I extracted the boot.img, and I flashed it in twrp. Then I reboot the recovery, and flashed the magisk.zip that u provided. But it failed.
[Huawei Mate 9 Guides, News, & Discussion] calchung:
Is it a must to flash the boot.img with fastboot? I flashed the boot.img in twrp and it seems sucessful. However, when I tried to flash your magisk.zip, it said my boot image is patched.

After that I reboot to system, but it jumps to Huawei eRecovery right after the "Your device is not safe" message. Does it mean that I need to reinstall everything and lose all my data?
[Huawei Mate 9 Guides, News, & Discussion] ante0:
If phone boots its probably something with v15. Go back to 14.3 until you can decrypt again. After that you can flash v14 again so you get decrypted /data
[Huawei Mate 9 Guides, News, & Discussion] calchung:
Update from previous reply: After that I reboot to system, but it jumps to Huawei eRecovery right after the "Your device is not safe" message. Does it mean that I need to reinstall everything and lose all my data?

Do you mean I should flash the magisk v14.3 to see if it can boot to the system? If I can, then flash the v14 to see if my internal sd is decrypted in twrp?

Sorry for my english because it is getting kind of complicated.
[Huawei Mate 9 Guides, News, & Discussion] ante0:
Flash boot using fastboot.

Then try v15 again.

But anyway, you are encrypted. If you can't copy stuff from /data, then format /data and copy it back you are forced to just backup using other means and format data the restore backup.

But try flash boot in fastboot, because I tried in twrp before and you have to unpack and repack in AIK before you can flash boot in twrp.
[Huawei Mate 9 Guides, News, & Discussion] calchung:
Flashed boot.img in fastboot but still cannot flash magisk 15 in twrp, same error.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot boot.img

target reported max download size of 471859200 bytes

sending 'boot' (16258 KB)...

OKAY [ 0.597s]

writing 'boot'...

OKAY [ 0.259s]

finished. total time: 0.862s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot

rebooting...

Update:

After magisk 15 failed, then I flashed magisk 14 to try, it worked and I reboot to system, and successful. But the sad thing is, I lost my data such as all apps data, chat record, every app is just like freshly installed. However it still recognized my pin, fingerprint, wallpaper. Went to twrp to check, it is still encrypted. It is a huge mistake to update to magisk 15. You would be having bootloop and lost your data.
[Huawei Mate 9 Guides, News, & Discussion] calchung:
[MENTION=2247733]ante0[/MENTION]

Strange things happen now. After my phone can boot into system, app data are missing, and I found that the free internal memory is only like 15gb out of 64gb. So I am quite sure that my old data are still in the phone, but I have no idea where are they. Checked in root explorer, the internal sd data is very new. I also went to twrp to check the internal sd, but the whole internal sd is blank in twrp.

Any idea?
[Huawei Mate 9 Guides, News, & Discussion] repoman728:
thanks alot for the guide

I hav done everything acc to your manual

I have mate 9 l29 c432b198 rooted with supersu and twrp 3110 from

https://xdaforums.com/mate-9/development/preliminary-twrp-3-1-1-0-mate-9-emui-8-t3687622 to install supersu

reg
[Huawei Mate 9 Guides, News, & Discussion] mw4jet:
I had success, sort of a noob at rooting, a few years ago I rooted an HTC Inspire and loaded a bunch of custom ROMS, then I rooted a Nexus 4 and flashed Ubuntu Touch Phone on it, that's something I wish was still in active development.....anyways

It took me a while but I finally came to understand the OP, thanks to the active participation of the OP! Thankfully the Huawei has that warning and ability to use WiFi to reflash I got myself into a boot-loop.

Anyway the files I used I found by going to that firmware page and found a download link at the bottom and ran the program from my pc, the files available in Jan 2018 include an update from 10/31/17 labeled FullOTA-MF-PV and it does not contain a public zip. My model is US MHA-L29C567B190. The 10/31 zip files are

Had to remove URLs as I haven't posted enough, LOL joined in 2014 and only posted twice...oh well.

I used the files from an earlier date that 10/31, I think May 17 the newest with public and data. Is that the best choice or should I have used the above zip? A question would be do you need to flash both public and hardware zips always?
[Huawei Mate 9 Guides, News, & Discussion] larryblynn000:
have a another NOOB question i have unlock BL installed twrp-3.0.2-2-hi3660.img , flashed SuperRoot_noverity_encryp, public and HW files shows i am rooted question is do i need to load PHH superuser???? Thanks for the help!
[Huawei Mate 9 Guides, News, & Discussion] CoreyFunroe:
help with flashing boot image on twrp

when I try to flash the boot image in twrp no boot partition is listed. There's system, data, vendor, and more. But no boot or recovery partitions are listed at all.
[Huawei Mate 9 Guides, News, & Discussion] SonOfTheRain:
Hello,

I'm trying to install Magisk after upgrade to Oreo 8.0.0.363(C432). I flashed TWRP 3.1.1-0, tried to install Magisk and it says "unable to detect boot image". Any help is appreciated.

Thanks
[Huawei Mate 9 Guides, News, & Discussion] aa225456:
signature vertified failure

Hello,I have some issues in steps 6,7

while i flash Public_data.zip&Full_HW_data.zip,there was always showing Error about signature vertified

I'm sure that the version is right(MHA-L29C636B366)

And I've several times.:(
[Huawei Mate 9 Guides, News, & Discussion] BIGWORM:
Thread closed per OP's request.
[Huawei Mate 9 Guides, News, & Discussion] grumpyg4:
Ok I will try that but would that erase anything I have stored in the phone? Thanks
[Huawei Mate 9 Guides, News, & Discussion] eddmecha:
no it won't erase BUT you need to format data if your data is still encrypted,Just remember not to boot into​ system after flashing boot.img.the steps are

boot to twrp

format data(if you are still encrypted)

flash stock boot.img (select flash image)

flash superRoot.zip

flash public data.zip

flash hw data.zip

boot into system

good luck
[Huawei Mate 9 Guides, News, & Discussion] grumpyg4:
Ok one last question, how do I know if my data is encrypted or not. Thanks
[Huawei Mate 9 Guides, News, & Discussion] eddmecha:
boot into twrp and select internal sd card and u will see Gibberish name on the folder,that means u r encrypted
[Huawei Mate 9 Guides, News, & Discussion] audioralf:
I have rooted like described in post 1. Root checkers prompt that I am rooted.

Data and sd is not encrypted.

Even TiBu says root ok.

But it can not can not install busybody.

TiBu can not restore system apps.

Total Commander cab not write or change anything within system.

But Es fileexporer is able to copy and set attributes.

So it seems I have no full root.

My device: Mate 9 superroot, Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 Guides, News, & Discussion] dexz:
I think because system partition is Read-Only.

You can try to install Termux from google play and type this command.

su

mount -o rw,remount /system

See if you can write anything in /system partition.

From what I checked in superoot.zip [MENTION=2247733]ante0[/MENTION] has #commented the command for RW.
[Huawei Mate 9 Guides, News, & Discussion] eddmecha:
hmm,which busybox did u try to install?i use busybox from meefik

i didnt use TiBu anymore now as i just use the build in backup app to backup and restore apps and data.
[Huawei Mate 9 Guides, News, & Discussion] ante0:
Having system always rw is a security risk if anything.

But correct. Stericsons busybox uses "remount,rw" instead of the other way, which just says device is busy. Same with Total Commander (at least according to a post in their forum).

One is always free to edit the script, but at your own risk. There's a lot it can do... For example just changing config.txt in the zip lets you stay encrypted etc.
[Huawei Mate 9 Guides, News, & Discussion] dexz:
Yes I'm with you on the security risk part. Was just checking on your superoot.zip for curiosity. :)
[Huawei Mate 9 Guides, News, & Discussion] audioralf:
Besides the busybox installer which fails also for other locations there are apps who try to copy a additional app to sysrem. For example 'gsam battery monitor' such has rootcompainion component. This fails on install.

So it would be nice to have the option or a script to get rw on system and back to read only.

My device: Mate 9 superroot, Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 Guides, News, & Discussion] eddmecha:
hi sorry but i just curious which bbox did u install,as u can see in the attachment i install bbox just fine
[Huawei Mate 9 Guides, News, & Discussion] audioralf:
I have the same. And pro version

My device: Mate 9 superroot, Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 Guides, News, & Discussion] eddmecha:
hmm thats weird
[Huawei Mate 9 Guides, News, & Discussion] grumpyg4:
Ok now I get error 139
[Huawei Mate 9 Guides, News, & Discussion] 5[Strogino]:
Use Root Explorer and turn System R/W on.

Then install BusyBox
[Huawei Mate 9 Guides, News, & Discussion] ante0:
Or just a terminal as Root explorer is paid.

Kind of annoying to run it each time though...

Just got SuperSU working (thanks [MENTION=2570493]dexz[/MENTION] for the zip). Going to modify the script some more to not mount system as rw on boot and su.d/init.d support. It's some weird SuperSU/Phh Superuser hybrid when you flash it but it works. :)
[Huawei Mate 9 Guides, News, & Discussion] audioralf:
Great. I had sucees with

su

mount -o rw,remount /system

To be able to use total commander as writing root explorer.

Even busybox installation was successful.

But this is temporary, and has to be repeated after each boot.

So your solution will be welcome.

My device: Mate 9 superroot, Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 Guides, News, & Discussion] ante0:
That's the way, if mount would allow remount,rw we wouldn't have any problems or if app devs tried both rw,remount and remount,rw. Or set it to always RW in the kernel.

OR use phh's built in init support.

(su --init /path/to/script)

Basically you could make a script that reads..

#!/system/bin/sh
mount -o rw,remount /system

and name it, for example, /data/rwmountscript

then initiate it by

su --init /data/rwmountscript

and now it runs at boot and sets /system to rw.

There are risks with having /system as read-write by default though.

To remove the script from init, run su --init '!/sdcard/rwmountscript'

Sauce:

https://xdaforums.com/showpost.php?p=69004883&postcount=1186
[Huawei Mate 9 Guides, News, & Discussion] audioralf:
Oops... I'm not so common with this. I understood that you could post a modified script with the option to have full root like as if were this option in the kernel.

My device: Mate 9 superroot, Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 Guides, News, & Discussion] dexz:
Great job man!! Yes agree. It's a hybrid and working. :laugh:
[Huawei Mate 9 Guides, News, & Discussion] setool3:
hi i want to know if

this method works for mate 9 L29C605B111 ?
[Huawei Mate 9 Guides, News, & Discussion] dexz:
It should work. You may try and report if is doesn't work.
[Huawei Mate 9 Guides, News, & Discussion] audioralf:
Could you please share it?

My device: Mate 9 superroot, Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 Guides, News, & Discussion] inet_pub:
New comer here, I tried to root few days ago by old method (decrypted boot image) on b158 which in turn FRP locked. The phone still with unlocked bootloader and can boot up fully or boot into Twrp, but cannot be rooted. eRecovery failed to download, unlock oem option is grey in developer option.

Is there any way to remove FRP lock or root? thx. my phone is L29c636
[Huawei Mate 9 Guides, News, & Discussion] dexz:
I have the file but it's for mate 8. You might need to ask from [MENTION=2247733]ante0[/MENTION] as he has modified it for mate 9.
[Huawei Mate 9 Guides, News, & Discussion] audioralf:
Ok. [MENTION=2247733]ante0[/MENTION] may I ask you again?

My device: Mate 9 superroot, Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 Guides, News, & Discussion] ante0:
https://www.dropbox.com/s/wl5owjl4rbuyr8g/SuperSU-v2.79-MATE9.zip?dl=0

It's lacking su.d (init.d). But I have an idea I'm going to test.

Flash back stock boot before flashing

Your device will reboot once after the boot anim, so don't worry! :P

It's in the launch_daemonsu script so it's supposed to do that.
[Huawei Mate 9 Guides, News, & Discussion] ante0:
New one with init.d support. Can't get /su/su.d to stick (it does stick but rewrites after each boot so files in folder are gone.

Anyhow, it creates /system/etc/init.d if it doesn't exist and any script you put in there will run at boot.

https://www.dropbox.com/s/si0ictoj4rls6lb/SuperSU-v2.79-MATE9-init.d_support.zip?dl=0
[Huawei Mate 9 Guides, News, & Discussion] gm007:
The new firmware finder app let you download all 3 files,so no need to do it manually.
[Huawei Mate 9 Guides, News, & Discussion] -Zork-:
Do this method work will all version of firmware?
[Huawei Mate 9 Guides, News, & Discussion] ante0:
It should yes. As long as the firmware is available on hwmt.ru, so check that first. If it's not you can't download the HW and Public zips which causes problems.
[Huawei Mate 9 Guides, News, & Discussion] larryblynn000:
couple of NOOB questions please

do i need to wipe cache between the different flashes or just data after i boot into TWRP and wipe data. Also is there a differnece between flashing with ADB and using TWRP to install a zip file? hope what im asking makes sense? thx
[Huawei Mate 9 Guides, News, & Discussion] eddmecha:
1-its optional for cache wiping at all.and you actually format data not wipe data bcoz wipe data won't clear the encryption.

2-never tried push zip using ADB yet but u can try it and let all of us know if it works o not. i think u can try by side load the zip thru adb.
[Huawei Mate 9 Guides, News, & Discussion] ante0:
Lol. Just noticed I quoted you xD

I should update page more often... No-one had replied when I replied, but apparently I replied to YOUR reply.

Edit: OH; quotes are broken.
[Huawei Mate 9 Guides, News, & Discussion] eddmecha:
haha its ok,i think i should edit my OP and add in your superSU as well
[Huawei Mate 9 Guides, News, & Discussion] larryblynn000:
ok i have bootloader unlocked downloaded twrp but when i go to flash using

fastboot flash recovery twrp-3.0.2-0-hi3660.img it says error cannot load twrp-3.0.2-0-hi3360.img what am i doing wrong in fastboot mode on phone and says unlocked phone and frp unlock. Helpppppppp please thx
[Huawei Mate 9 Guides, News, & Discussion] eddmecha:
did you place the twrp in the correct folder?
[Huawei Mate 9 Guides, News, & Discussion] larryblynn000:
yes ty my bad had to rename to twrp.img and it worked thanks for all your help you are a life saver!!!!!!!!!!!:)
[Huawei Mate 9 Guides, News, & Discussion] eddmecha:
glad it help.enjoy your phone!!