yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Just a tip, wipe dalvik & cache after flashing, fixed some small bugs for me (Not being able to get into developer options)

Also, RSA breaks if you flash the wrong boot image (165 on 138) so no adb
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Yes!!!!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Ckao:
So does this work if RSA break...Sorry I'm a noob. Is this process safe to root? Which one should image should I flash

..The latest one I'm assuming.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
What model are you using?

Check Settings - About - Build number

MHA-L29...

About safeness, worst case you can use FunkyHuawei to restore (Unless you're using the US C567, and it's not a free service). But restoring stock boot using fastboot should be enough, and you would do a data wipe in vain.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Ckao:
View attachment 4041592
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] talstar:
*in that way we don't need to have the boodloader unlocked ??
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
So... To be clear for the folks that need clarity (me) to prevent messing up a device without a downloadable full ROM (though I'll do a full TWRP Backup to the best of my ability post step one), the current US only build appropriate boot image is B138?

Thank you for the screenshot. Ready to pop open the new device box and unlock the bootloader and fastboot. This helps so I'm flashing the correct modified boot.img in recovery.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jr313:
Yes you must unlock your bootloader in order to flash TWRP and install root.

---------- Post added at 07:33 PM ---------- Previous post was at 07:32 PM ----------

Time to break my mate 9 back out and root it again. Thank you!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
[MENTION=1397125]ajsmsg78[/MENTION] the boot images cause a bootloop for MHA-L29C185 could you please make a special boot file for it, here is the link for C185B138

https://mega.nz/#!PsxGhJ7R!iN7g1OaEbaw-4jXvj9cXhA_wfXwoaDN8Fgs8X7PrTCc
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] samnahata:
Will you be supporting M9P ?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Nickco43:
This boot looped my MHA-L29C636B138.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
Yeah when I get home I'll take care of it. Make sure your data is decrypted before you flash the boot.img. I had no issues with any boot images on my C567 US version.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
I'm gonna fix that in the boot.img. I had issues with adb being unauthorized but realized what the issue was.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
No I can only support the phone that I own. However, if you need a boot.img decrypted send me the file and I'll do it.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] samnahata:
Sure, i would love to help the community. Could you kindly explain to me how i can extract this boot.img?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
In TWRP do a backup of you rom then go into your sdcard then into TWRP, then backups, then the next folder with all the numbers then into the name of your backup then send me the boot.emmc.win file.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] samnahata:
Thank you. I will get on it and send it to you ASAP.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
Fixed adb on B365.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] xkeyblackx:
[MENTION=1397125]ajsmsg78[/MENTION]can u pls decrypte this boot.img its from

MHA-L09C432B156

https://www.dropbox.com/s/55y2kvapz1n5zk7/BOOT.img?dl=0

Gesendet von meinem MHA-L09 mit Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] htcdesire-hd:
I would also like to have this version encrypted :)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
https://www.dropbox.com/s/ngxtbu9sz819cvi/decrypted-boot-MHA-L09C432B156.img?dl=0

here you go.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
Yeah leave ro.adb.secure=1 alone. When changed to 0 adb won't authorize.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] htcdesire-hd:
Thank you! I hope i dont need adb services :D
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I just tested, mine authorizes. But I also tried with your image from the other thread before and it won't let me remount. It asks to run adb root, then remount. But that just ends up in a loop :eek:

adb works fine, just not those commands :P

They can be done manually through shell anyway so doesn't really matter
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
Yeah I was using 0 but had to change it back to 1 to get adb to authorize.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I thought setting it to 0 was the way to do it, atleast it used to be :eek:

Can't remember ever using "adb root" before.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Apologize if this has been asked (particularly if I was the one who asked it). Can this method be modified to include a Chainfire full root and SuperSU app/settings?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] xkeyblackx:
Ok themes dont work anymore with this boot.img or bc root

Gesendet von meinem MHA-L09 mit Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You just flashed the boot.img or format data as well?

Bc root?

If you formatted you must flash back public then hw.

http://update.hicloud.com:8180/TDS/...69/f2/full/public/update_data_full_public.zip

http://update.hicloud.com:8180/TDS/...04/v75969/f2/full/hw/eu/update_full_hw_eu.zip
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] xkeyblackx:
Ok work now thanks

Gesendet von meinem MHA-L09 mit Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] zat0x:
Is it possible to return the mate 9 to fully stock ? Lets say i need to send it back for warranty or sell it to somebody ? Will there be some traces in the BL ?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I did notice BL was Locked after flashing B156 with Funky... But OEM was still unlocked, but I think I could relock it from settings so it should be possible to get rid of any trace. Not sure if there's any counter or anything like Knox has.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
I think the modified boot.img disable OEM Unlocking function in the developer options, it will be hidden after finishing the root steps, and the only way to make it active again is to flash new full firmware by Funkyhuawei or Firmware Finder, it's not an issue if it's enabled and not active, but the issue in my situation that it's turned off by it self and you cannot turn it on, now I can't flash anything from bootloader due to FRP lock, and not able to flash bew firmware too, and please do bot try to flash official recovery from twrp recovery as I did, cause I lost both, I don't have any recovery now.

It's better to make some more modifications on boot.img
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
What happens when you try to boot recovery with USB plugged in? Even when you have Twrp it should go to eRecovery. At least it does for me. So even if your recovery partition is corrupt it should work. From there you should be able to flash using Funky. Or rebrand if your model is not available with funky. Sorry if you have answered this already.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Rebrand with offline package not possible cause I need to restore Oeminfo by twrp in beginning, I can log in to eRecovery, but I don't know if Funkyhuawei will work for me or not, I tried firmware finder and downloaded the full firmware but when it restarts it's not going to update screen, it's directly went to eRecovery.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I have 2 credits left for funky, if your router is not DNS locked you can have 1. Or you can use Connectify-Me to set up a Hotspot on your Pc/laptop and set DNS on your computer, that way it will use the DNS even if your router is DNS locked.

Lmk if you want to try :)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
I really appreciate your support, let me first consume all ideas that I have then I will contact with you.

Thanks again
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bryancotton84:
Does the built in Huawei backup/restore method work after root? I ask because it's the only thing I have backing up all my data and would like to restore it once I'm rooted and unsecured. Thanks!

Also what is needed for you [MENTION=1397125]ajsmsg78[/MENTION] to decrypt my boot image. I don't see it listed.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
yes it works ,
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Download your models firmware from http://hwmt.ru/hwmtsite/firmware-database/

Extract BOOT using Huawei Firmware Extractor https://xdaforums.com/showthread.php?t=2433454 then upload the extracted Boot to a file sharing site like Dropbox.

Or tell me your Model and I'll do it xD
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bryancotton84:
Awesome man thanks! I'm not home at the moment but it's MHA-L29C567B138.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Ah, that's a problem. No updates exist for C567 yet. Make a backup of Boot in twrp, then upload that and post link here.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bryancotton84:
It's never easy for me lol. I'll get started when I get home. Thanks again.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] xfive420:
In another thread a user reported that he couldn't remove system apps with just root installed, without decrypting. He had to decrypt for TiBU to be able to remove them. I'd like TiBU to just work, so if I have to decrypt I will. But if it's not necessary I don't want to bother since it seems to be the cause of all the other random issues people seem to be having.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] posydon1:
I think it may work for some and my not work for others but it worked for me. Only way to know is if you try it.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I just tested installing it... It just reboots device when you install.

If you add the file /data/.supersu with the text "SYSTEMLESS=false"

it installs fine but bootloops.

This was using a bootimage that has no verify flags in fstab

Dont try this, cant unmount system so cant restore twrp backup. Not sure if that would fix it anyway...
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bryancotton84:
Still waiting on DC unlocker to send my password. How long is this supposed to take?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Took 6 hours for me I think. But I used some other service as the free way refused to work.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Nickco43:
Could someone make a C636B158 boot image?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I assumed you meant the MHA-L29, no other 636b158 exist :P

-redacted for now, seems to be something wrong with this boot-
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Sorry for the hassle and thanks for the try, very much. I'm sure you guys will do it down the road.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Has anyone else had camera issues following this method? This isn't to say this method is flawed, only from my experience I seem to have isolated the cause of my issue of the night shot mode crashing. I started a fresh with MHA-L09C432B156 and all was well, camera worked as it should. Followed this method and once wiping data in TWRP, I later discovered that whilst I had successfully rooted/decrypted vital files in the hw_init (from /data folder) had been deleted as themes were not applying. I flashed the hw_init.zip folder and that fixed the theme issue, but then that caused the camera issue!

I can't seem to win and I apologise for having to ask, have posted this ongoing issue around these forums out of desperation. Though I just hope someone is able to help and also anyone in a similar situation can hopefully find a solution in it too.

I may try do it all again and just skip the decrypted boot.img part (and wiping of the data in TWRP), as somewhere along the way some file (or something?!) is having an affect on the camera.... Couldn't seen to find any files within the hw_init folder that related to camera, and annoyingly even when I manually deleted all those files again (just through a file manager) and rebooted, it didn't help my issue....

Any suggestions much appreciated
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
Have you tried to flash public and hw-data eu files in that order in twrp. Had camera issues also but flashing those files seems to have fixed it
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
well u can try to flash the data.zip (2 files) then reboot n see,if still cannot then u may need to reflash ur fw again to fix that.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Flash:

First flash public: http://update.hicloud.com:8180/TDS/...69/f2/full/public/update_data_full_public.zip

Then flash HW: http://update.hicloud.com:8180/TDS/...04/v75969/f2/full/hw/eu/update_full_hw_eu.zip

It's important that you flash public first because it deletes everything in the hw_init folder, unless you edit the script.

The reason... When you flash a full firmware using Funky or Firmware Finder both of those files get downloaded and flashed automatically.

When you format data all of that gets removed, that's why you have to flash them.

I have checked both actually for something related to camera and couldn't find anything...

dataversion.txt might be what causes it as it has a model string in it. If you flash the wrong HW that string would be wrong.

Also make sure you're using the boot.img for your phone model, else that might break something (like fingerprint sensor does for some phones using the Kang VIP boot)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Nickco43:
It worked!

---------- Post added at 12:34 PM ---------- Previous post was at 12:05 PM ----------

My settings app keeps crashing.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Try wipe dalvik & cache from TWRP Wipe - Advanced - Check dalvik and cache (nothing else!).

I know Dev options does that for me and wiping dalvik & cache fixes it.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Nickco43:
It still is crashing.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
And you have a MHA-L29C636B158?

And formatted Data to decrypt, then installed the HW and Public zips (It's not in ajsmsg78s post but mostly mandatory)?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Nickco43:
My data is decrypted and I tried flashing the two zips you posted as a reply to someone. The first one flashed and the second one failed.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
That might be why. They're kind of model unique

What region is your phone?

Is it rebranded?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Nickco43:
It's the MHA-L29C636B158. It has not been rebranded.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Do this and post your Region here:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Nickco43:
Vendor: hw

Country: spcseas
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Flash public first. You will get errors but just ignore those, they install anyway.

http://update.hicloud.com:8180/TDS/...77/f1/full/public/update_data_full_public.zip

http://update.hicloud.com:8180/TDS/...f1/full/hw/spcseas/update_full_hw_spcseas.zip
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Thanks very much for this guys, currently reflashing via Funky right now, will let you know how I get on....
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
How to get the HW Data and Public Data zips for your model of Mate 9

First off, open your dialer and enter *#*#2846579#*#*.

Press "3. Network Information Query" then on "4. Vendor Country Info".

Check your region here (mine's EU so I'll use that in this post)

Next, go to "Settings" then "About" in your phone and look at "Build Number". Mine is MHA-L29C432B156.

After we have established build go to http://hwmt.ru/hwmtsite/firmware-database/ and enter your Build Number in the

search box and click on Find Model.

Rightclick the "update" link in the FULL row and copy it then paste into browser (don't press enter) or open Notepad and paste into that.

For MHA-L29C432B156 we get the link

http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1366/g104/v75974/f2/full/update.zip

Now we want the HW Data zip.

Simply replace "update.zip" in the link with

hw/(insert region here)/update_full_hw_(insert region here).zip

For my phone I'd get the link

http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1366/g104/v75974/f2/full/hw/eu/update_full_hw_eu.zip

Now we can hit enter to download if you chose to paste link into browser or copy and paste from Notepad.

For the Public Data zip we simply have to replace "update.zip" with

public/update_data_full_public.zip

So full link for me would be

http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1366/g104/v75974/f2/full/public/update_data_full_public.zip

Hit enter if you edited link there or copy and paste from Notepad.

Don't use the HW or Public links from this post unless you have a MHA-L29C432B156.

When you have downloaded both, put them on your sdcard and flash in TWRP.

You will see errors when flashing, but it's normal.

After both are flashed Themes and stuff like that should work.

If you can't get into "Developer Options", go to TWRP and wipe "Dalvik / ART Cache" and "Cache".
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
IT WORKED!!

Well, I just did a factory reset via TWRP, flashed the files in order as instructed, rebooted and BOOM!

Camera works without issue :) can FINALLY see what this beast can do!

Definitely weird how things can occur like this, how one mode can be affected causing such issues, the pictures even in normal mode were quite grainy but now already I've seen a major improvement!

Many thanks all
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Oh my days it's broken again now!?

All was well, all I did was set my apps p (nothing camera related?!) and I couldn;t help but test the Night Mode and it's crashing again?!

I've installed adaway and busybox, a theme, surely they don't have an impact?

I've attached a log. Interestingly when searching for "camera" I can see the following errors (amongst other things...):

- can not get key (cameracharcteristics)

- device error

- dsm_camera_user has error

Anyone with the technical knowledge what these camera errors mean!?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
From what I can see.

It seems to crash because it can't input META data in the image for some reason.

Can you take regular pictures?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Thank you for getting back to me.

Yes, just tested the following and they are all fine:

- normal (auto)

- wide aperture mode

- HDR

- Beauty

- light painting

Just dam night mode gets stuck on "processing" :( It was working and now it's not - I have no idea what could specifically influence 1 aspect like like

Really at a loss what to try next?!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Try uninstalling that theme you installed. It showed some theme errors too in log.

I mean, it's worth a shot
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Just tried that and also changed the default DPI (back to large) but still crashes :( just going through the logcat, hmm stuff like this perhaps:

SilentCameraCharacteristics - can not get key

VendroTagDescript - 'donotsupportHwCamera' does not exist

Can't get service HwBDService

dsm_camera_user has error (927003016) reported

There is something going on here but I haven't a clue what or why :(
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
By the way, which boot.img did you flash?

the one I posted to xkeyblack?

I'm trying to build a new one from update.app but it keeps complaining that i need aboot.img from a device.

If you happen to have backed up boot when you reflashed, please upload it.

Also. I watched some old post you made, did you rebrand?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
If you go to product/app what do you have in there?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Yesterday I had reflashed via funky and the decrypted boot for MHA-L09C432B156. Today I just factory reset via twrp and flashed the hw_init and got it working, and mysteriously it stopped again. Really can't pinpoint anything that could be conflicting with it.

I have no boot backup im afraid. Is it worth me trying to flash another? Perhaps start a fresh and not decrypting, just start stock, twrp and root?

Just annoying how it was working and now not!

No I've not rebranded. Always been MHA-L09C432

I've attached a screen shot to show this, not sure if any thing is missing from there?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
I can't get my pc to recognise my phone in fastboot. nothing comes up when i enter fastboot devices in command prompt
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Did you enabled USB debugging and OEM UNLOCKING from developer options, also it's better to install Hisuite to get the phone driver
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
Did all that, not the hisuit though. But the driver isn't the reason cause my pc sees the phone. Just not through adb and command prompt

Got that app now I see what you mean. lol trying that now
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
a question,y do u need to flash the hw_init again?afaik if you have reflash ur fw it should have been in the initial fw.have u ever think that mayb ur hw_init is the culprit?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
It told me that adb driver is already installed when I attempted to instal it
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tigas001:
Where can I get my HW and Public? I want to back it up before flashing the boot and wiping the data
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
plus I called for the bootloader unlock code from that app and they said they don't give them out. voids warranty
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tigas001:
Just fill in the request in the website and it gives you the code automatically, those support guys are jerks!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
I did the one on the website and haven't hear anything but a a verification code. Umm how many numbers is the unlock code? 6? I may have read the email wrong lol, thinking they were confirming

---------- Post added at 07:30 PM ---------- Previous post was at 06:34 PM ----------

what would cause the message waiting on device when trying to reboot bootloader in command prompt? Can get it to see it but then run into this
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
looking at a video, they log in to the Huawei site, click unlock bootloader on a page, I never see the page you agree to unlock it or the one to enter your info
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
I flashed the fw_init after the decrypted boot flashing, and the required wiping of data in TWRP. As themes weren't working and by flashing the fw_init it restored the theme function.

I'm at a loss!