yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Because it works in most cases. Only bug I've experienced so far is that I can't use Live wallpapers, and I'm not sure if that has to do with boot or with data wipe.

It's the same with the KangVIP, it works for most people and for some it breaks fingerprint.

This is just my opinion, as I'm not TS you'd have to ask ajsmsg78.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
I think you should edit some stuff here.

Kernel isn't changed so it decrypts data. It's ramdisk modifications because kernel already has its info about decryption.

Also what did u modify in the phh script? It's look basically the same as stock phh so I think u want to be clear about what u changed if any changes
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Nickco43:
I'm on C636 and the boot image messed up my device so much I had to use funkihuawei to fix my phone. Not ever dload would work.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
You have to flash stock recovery to update to B138 and then afterwards unlock bootloader and flash twrp again

---------- Post added at 01:19 PM ---------- Previous post was at 01:16 PM ----------

I have used this on L09C432B138 to gain full root. Had some errors but corrected them by flashing public and hw-eu zips in twrp. All good now. Best option until ajsmsg78 can provide decrypted boot images for the different versions of mate 9
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] druun:
How can i do to find the stock recovery for B126???
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
Download your firmware from http://hwmt.ru/hwmtsite/firmware-database/<br />

Search for your full model (MHA-LxxCzzzByyy) and download full update using the update link. Extract the zip. Download Huawei Update Extractor https://xdaforums.com/showthread.php?t=2433454. <br />

Open Extractor then open the UPDATE.APP file you extracted earlier. Right click on recovery and extract. <br />

<br />

If you want to flash it as well:<br />

Put phone in Fastboot mode, flash recovery (fastboot flash recovery extractedfile.img)

Sorry for copying above post but quickest way of answering this question
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] druun:
Tx.. i will try and give some news..
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tllim73:
Hi, Aj need your help to create a boot.img for L29C636B136.

Thanks in advance.

Here is the stock boot.img which I have extract from the full firmware.

https://drive.google.com/file/d/0B5gbvVTdGkZzNHVyaEtpR29oTnM/view?usp=drivesdk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
/scripts/bin

Bootimg-extract is changed

Bootimg-repack is changed

hidesu is missing

sepolicy-inject is changed

sepolicy-inject-v2 is changed

this is just by checking the filesizes.

Hidesu entry in changes.sh is removed.

The other scripts are identical.

So seems to be hidesu removed and binaries changed/updated
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] dkionline:
Its the official phh su, not a beta like we use.

In kernel just removed barrier=1
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Yeah, I was just checking the phh from the TWRP thread. It's identical to the official one.

Oh, I misread LastStandingDroid. He even said "it looks identical to stock phh" -.-

Sorry
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
Guys if you rebrand you will run into issues with apps. I had to manually move the missing apps to the cust and version folders. The problem is the version folder size is only around 25mb after rebranding and there are about 15 apps that were originally in there and you can only put back a few. This is why themes are missing etc... I'm still having issues going into developer options on KangVIP B167 even after rebranding to the AL00.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
If you feel like reporting it, don't threaten to, just do it. I do this to help people out, not to get bogus clicks. For those who rebranded, yes you're going to lose some functions. I need to make a boot.img thread with all the boot images that don't force encryption. I'll do that when I have time. Yes it gets full root, I can r/w to anything including system, cust, vendor, version etc. If you're getting r/o system then you're doing something wrong.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] albertobom:
I'm glad you are here with us my friend someone who really wants to help in return of nothing. Thank God there are guys like you in xda. I hope you can manage break these chains of ours devices. :fingers-crossed:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] dkionline:
This wont help people, they get in to errors soon. Developer options issue is due to keys cant generated cause of decryption.

The kernel wont do any cryption or whatever. You just handling with risk of ext4 and that can damage in a bad move. The better is remove dm-verity.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Thanks for the clarification. I think you should credit phh dev if you haven't yet.

Anyway good to see improvement on root great effort

---------- Post added at 08:08 PM ---------- Previous post was at 08:07 PM ----------

That's why I love to wipe honor 8 partition ? everything just works on it. At least on beta
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] albertobom:
My friend you should work with aj on this I see you have knowledge of some kind maybe you guys get there faster. Two heads think better than one :o
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Ok, found out why it was screwing with me. If you flash HW first, it makes everything work OK.

If you flash public after, the script in public uses the command "delete_recursive("/data/hw_init"). So everything from the HW zip goes poof. Lol.

I'm gonna merge the 2 instead and see if that fixes everything

Edit: merged zip worked. just removing delete_recursive would work too

Or if youre smart, flash public first....
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] xkeyblackx:
Work update with stock recovery?

Gesendet von meinem MHA-L09 mit Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Here is the zip containing:

BOOT.IMG

BOOT.img.header

For the MHA-L09C185B156.

Any chance of working your magic on this one?

PS Would I need to rebrand my MHA-L09C432 in order to flash this MHA-L09C185? I have current (minor) issues with my camera and hoping a full reflash of stock with the correct modified rooted boot.img will help....!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] druun:
So..it works..but! Il tried too flash twrp again to root.. And now.. Bootloop ans the phone is bricked..

Always root my phones since many years.. Huawei seems to be a big prob.. I think i need a full rom flashable.. But.. Dont know now.. Loosed :(
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
What did you do to bootloop it?

Just install recovery? :eek:

Sadly Huawei has only released one offline dload update, can't remember which it was.

Did you try with the app Firmware Finder to update?

This is a guide for the L29:

https://xdaforums.com/mate-9/how-to/guide-installing-b138-using-firmware-t3557089
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] druun:
Install twrp.. All was OK.. I made à wipe cache like the post 'full root Mate 9' said to try too root it again.. Bad idee.. Now i'm in Bootloop.. I tried again to flash twrp, boot. Img... Nothing..
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You shouldn't bootloop from wiping cache. You mean you clicked on Format Data?

Anyway, the phone should boot even after that. If you're on stock boot image it will just encrypt internal again.

If you're on any of the other boot images (B138 or B165 linked in the OP) you can just flash back stock boot using fastboot.

Also see my previous edited post.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] dkionline:
Thats why dm-verity isnt removed.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] xkeyblackx:
Damn thats realy bad :/ maybe u must unlock ur bootloadet agian?

How did u Flash the Update with stock recovery?

Gesendet von meinem MHA-L09 mit Tapatalk

---------- Post added at 11:37 PM ---------- Previous post was at 10:50 PM ----------

Can anyone tell me how i can Update to B138 with stock recovery?

Gesendet von meinem MHA-L09 mit Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You can't unless you get it as an OTA.

Only way right now is Firmware finder or FunkyHuawei.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] xkeyblackx:
Ok thanks

Gesendet von meinem MHA-L09 mit Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
Can I ask how you're flashing it? In TWRP it gives errors and through dload it doesn't work either. I've been manually installing it.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] dkionline:
Please point it out, what you changed in boot partition. The phh su is known as the latest stable, i see.

I had your problems with developer options and security settings too a month ago, that cant be changed until data got working due to encryption. Or i specify, the keys wont be written after decrypting.

I think your changes would help, to find the culprit in encryption of data, unless your open to share.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
I have flashed these zips in twrp, public first and then hw. Public flashes no errors, hw flashes with some errors. Upon booting up phone I get all my missing Huawei apps back and system update option in settings menu.

The only thing that seems to be missing is the magazine lock folder for the screen lock. I have a backup of the pictures in the magazine unlock folder and just manually add them afterwards.

All seems ok afterwards
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
Use Android Image Kitchen to extract the boot.img and edit the ramdisk/fstab.hi3660 file and change the fileencryptioninline to encryptable. (you'll see it in the userdata line) Then edit the split_img/boot.emmc.win-ramdisk.cpio.gz in linux (Linux can open that file like a zip) and change the same line in the fstab.hi6630 file. Then save the file and overwrite the existing file in Android Image Kitchen with the one you just edited in Linux, then repack the boot.img. Now the boot image will no longer force encryption so if you're decrypted your data will stay that way.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Like a regular flashable zip. Public installs fine, HW installs fine too but errors out because it tries to run Update.app with some weird command. It still flashes what it's supposed too though. If you flash HW before Public, public will remove what HW installed.

And they're supposed to install to /data/hw_init/.

When you're installing manually, do you chmod to 755 after, and chown "selabel" (I think that was the owner the script gave all files from HW and public) ?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
Yeah I do.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
What errors do you get other than "mountencrypt" and error status 7?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] druun:
Ok..

Thank's.. I spend a moment to find what was wrong... Pffff I made a "reset factory"..

I just read your message and a found the solution this night after flashing MATE_9_DECRYPTED_BOOT_B138.img my phone came back to life.. ;)

install twrp 3.0.2.2 again and root .

All work fine now.. I make my BACKUP now...

Thank's every body for help...
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
I'm fixing the script now so it doesn't give any errors.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Might be an idea to check if /data is actually mounted. Mine seems to be automatically and the script should toss errors if it wasn't.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
The mountencrypt command is useless so I removed it as is the second to last line which is what throws the error.

All of my files (with thanks to the original creators of course) will be stored here. New files, mods, etc will be updated accordingly.

https://www.androidfilehost.com/?w=files&flid=151828
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Twrp format data and wipe doesn't erase the data totally, my phone is working but I have FRP lock, and cannot enable it from developer option, I tried to flash official recovery from twrp as an advice from a friend but this deleted the twrp and didn't install official.

So now I can't flash anything from bootloader, don't have an official recovery so I can flash full rom, also don't have twrp so I can gain root again.

Anything else should I do to solve this
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
first of all u r on which build n region?L29Cxxx?if u r on C636 mayb u can try to dload using the offline b110 fw file from this thread https://xdaforums.com/mate-9/how-to/guide-rebrand-chinese-al00-mate9-to-t3554656

edit - to unbrick you just need the dload file and also the hw data zip ,let me know if u need assistance
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Dload method will not wotk specially for my situation cause it need an official recovery to install the update and I don't have, when I try to enter to recovery it's direct me to eRecovery, my build is L29C185
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] gm007:
Dload doesn't need recovery.img maybe it use recovery2.img cause it work even with twrp installed. But the problem with oeminfo.

You can try both c636 and AL.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
well actually dload will load even if u have twrp in ur recovery.

ok u said u wont boot to recovery,can you try again by doing

hold vol up + power until u see the huawei logo then let go all buttons it should direct u to recovery,but at the same time make sure your phone is not connected with any power outlet or pc.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Already did thay many times, I will try dload method as all of you says that can wotk even with twrp installed
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
but for your region there is no offline update file( yet) can be used to dload.now there is only 2 regions that habe the offline update file which is L29C636 and AL00C00.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
I will use C636 I think it will rebrand the phone but no issue I just want to remove frp lock and be able to flash from bootloader again, then I will try Firmware finder to rebrand it again to C185

I just hope that this can work
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
ok good luck then,but please dont forget u need to restore the oeminfo for c636 as well.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Wait what?!

It's not included in the update files !!!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
nope it have to be restore separately,jist follow th guide in the link given
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Atreillou:
Hello,

I unlocked the bootlaoder, installed twrp and the decrypted image file on my L29 C636B138.

First boot was ok but no huawei apps, and no keyboard (?) only google voice.

I installed gboard with an external keyboard to enter the wifi passphrase.

Then I tried to install the 2 zip from huawai from twrp, got some error (7 and /data mountencrypte) and now when I try to go back in twrp It try to install a miui update and tell me "Software install failed" after 5% and stop with only reboot system now option.

Do you have any idea ?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] gm007:
To enter twrp,you need to disconnect usb first,after press volume up +power till you see Huawei logo,than remove power button while keep pressing volume up.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
try to reset your phone thru settings>advance setting>backup reset>factory reset
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tigas001:
Can anyone confirm that it works on MHA-L29C432?

Also, will root be removed after update? Because there's a new update available for the Europe version
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Atreillou:
sorry, I didn't know for the USB first.... It works now.

I just need the huawei apps, I didn't find the modified files in ajsmsg78 share

And is it normal to not have a keyboard on first start ? it is propably in the huawei apps ?

---------- Post added at 02:08 PM ---------- Previous post was at 02:06 PM ----------

Don't work, when I start the reset I wait 10 s and settings apps crash

i need to use the data wipe in twrp
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Download your firmware from http://hwmt.ru/hwmtsite/firmware-database/

Search for your full model (MHA-LxxCzzzByyy) and download using the update link. Extract the zip. Download Huawei Update Extractor https://xdaforums.com/showthread.php?t=2433454.

Open Extractor then open the UPDATE.APP file you extracted earlier. Right click on recovery and extract.

If you want to flash it as well:

Put phone in Fastboot mode, flash recovery (fastboot flash recovery extractedfile.img).

And try the Firmware Finder guide in the "Guides" section. Link https://xdaforums.com/mate-9/how-to/guide-installing-b138-using-firmware-t3557089

Install public first, then HW.

But yeah, if you have USB plugged in it will go straight to update. The errors are normal as it can't use mountencrypt or asset update.app.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Noname2012:
Can you make a Video Tutorial please?

Gesendet von meinem MHA-L29 mit Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Yes, it works on B138 anyway.

It will be removed if boot.img is flashed, which it probably is. I'll check it out when I get home from work :)

But you could just reflash boot and install su again if it does, but probably a good idea to get a B156 boot first.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Atreillou:
I undersood my mistakes:

First, I tried without rebooting the device after the wipe data.

Then I tried after rebooting the device but on with the other order.

First time the /data was not created, that's why the script crashed....

second time I tried in the other order so the second script erase first's files.

Now everything is ok !! thanks to all !
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
FRP lock makes you unable to flash anything from bootloader
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Have you tried locking bootloader, then OEM unlock, then unlock bootloader again?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Did that on the previous device, it just able to flash bootloader lock, then it couldn't be unlocked again, so I replaced with this one from warranty company, the issue for this one isn't even able to flash bootloader lock

It's mentioned (root type is risk)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
have u tried to relock BL using SRK tools?i have been using that tool all this while
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
I always using manual code typing, don't like these type of tools
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Here is boot for MHA-L29C432B156, already decrypted and tested.

Add it to your repo if you want [MENTION=1397125]ajsmsg78[/MENTION]

https://www.dropbox.com/s/gm2f7ssnlu8nqkm/L29C432B156_decrypted.img?dl=0

Confirming that this works on B156 too.

Only way to install (besides OTA) is through FunkyHuawei. But it installs the full rom so everything is wiped, including bootloader unlock. FRP stayed unlocked though.

First I flashed back stock recovery and boot, just in case.

Flash using eRecovery through Funky proxy, which wiped all.

Unlock bootloader again, wiped again.

Flashed TWRP using fastboot, formatted Data.

Flashed B156 boot, then superuser.

Booted...

Went back to recovery because I had to flash Public and HW data.

Then booted and installed supersu and finally could restore using Titanium Backup.

I did notice though that Stericson BusyBox has trouble mounting system as r/w, went to root explorer and mounted it there, then I could install BusyBox.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ilos:
ante0 can you post Public and HW data for B156 please ?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] xfive420:
Let me just preface this by saying that while I've rooted my past 3 phones, I'm pretty lost here. So forgive me for being naive...

All I want to be able to do is get Titanium Backup working without messing anything else up. I wouldn't even install TWRP, except it seems to be required to flash superuser.

Could I just use the steps in the OP to fastboot flash TWRP, flash superuser, and install PHH Superuser? And skip the decrypted boot image stuff? Or would not decrypting cause TiBU backups to fail?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
here is the boot.img for L29C636B138

https://drive.google.com/folderview?id=0B-V-tWoUat7AYlJDeWNYbjJQeWc

hope you can help to patch so us with this build can get decrypted /data

Thanks In Advance
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] posydon1:
Yes correct, if you don't want decryption skip that part.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] xfive420:
So I can still backup and restore in TiBU without decrypting? Awesome. :)

On my old phone, I had stock + root and could even take OTA updates because of SuperSU's Survival Mode. That's exactly what I'd like to accomplish with the Mate 9. I was thinking that once rooted it should be possible to replace PHH with SuperSU (which has Survival Mode) and then put back the stock bootloader so I can take OTA updates. And wind up with everything working including the camera, all stock apps, fingerprint, and developer options in the settings. Theoretically I shouldn't even need to wipe my data and reinstall my apps, right? Or am I living in a dream world?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
https://www.androidfilehost.com/?fid=457095661767138346
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] posydon1:
Well once you unlock the bootloader your data gets wiped so there's that, but when you get past that you should be good.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
http://update.hicloud.com:8180/TDS/...74/f2/full/public/update_data_full_public.zip

http://update.hicloud.com:8180/TDS/...04/v75974/f2/full/hw/eu/update_full_hw_eu.zip
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
Do the Public and HW data zips change when the software is updated by Huawei?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I belive they're different between 138 and 156. There's also a file in there named dataversion.txt that contain this line

ro.confg.hw_userdataversion=MHA-L29C432B156_DATA_hw_eu

You can getprop it too so it's probably used for something.

Edit: they're basically the same except the dataversion line
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
Ok thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
i managed to get my /data decrypted and managed to perform backup n restore thru twrp.but when boot up after restore my camera.app n splash screen gone.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] pitapart:
Works for me . Thank you both for your help. :)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Check if you have /system/priv-app/HwCamera2/

Also, did you flash Public and HW? I know theme changes after you flash those. But splash should still show, and camera but with a different icon.

Also what model/build do you use?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] gm007:
I read somewhere,aj post that restoring version partition in twrp i broken, maybe that's why.