yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] rbt001:
sorry but just to be clear.... you were on stock AL00 boot and got full root?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
yes
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] rbt001:
ok, and then you patched using the superuser.zip file from post #1?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
what do u mean by patch using superuser.zip?.i root my al00 following the OP tut except i skip step 3 & 4 due to lack of boot.img that time.and i managed to get full root.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Format Data.

Reboot recovery using the reboot recovery button in TWRP.

Flash decrypted boot.

Flash Superuser.

Reboot.

That's the order you should follow. I'm not sure if anything wrong with the boot images.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] rbt001:
yes, that's what I've been doing. Unfortunately it boot loops.

---------- Post added at 12:27 PM ---------- Previous post was at 12:26 PM ----------

yes, that's what I meant....unfortunately it doesn't give me full root
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
After rebooting recovery, check that you can see stuff in Internal Memory when touching Install.

Or use Advanced -Filemanager in TWRP and go to /data.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] rbt001:
yes, it's decrypted...

anyway it's okay... I'm not too worried about being decrypted. I just wanted to have full root including busybox. However it seems I must wait for the next method to come along. Which is okay. Thanks all for your time and effort.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
This a very helpful conversation because I have definitely tripped backwards somehow. Would restoring to older known good boot and data partitions work?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
I sent this as PM: But my phone uses L29C185B138 , can I flash it with any of the decrypted images you provided?

Many thanks, -t

---------- Post added at 02:04 PM ---------- Previous post was at 01:56 PM ----------

Guys I have L29C185B138 and I never seen the partitions encrypted. Is that normal? I mean I installed TWRP, and I could browse the internal memory -- most of the directories were empty however.. I wonder if TWRP was never able to mount some stuff.. TWRP complained of the system being unmodified every time tho.

---------- Post added at 02:38 PM ---------- Previous post was at 02:04 PM ----------

Followup: Although my phone is L29C185B138, I just flashed it with decrypted-boot-MHA-L29C432B156.img , seems ok :)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
It turns out there are a few issues with setting the boot partition to decrypted-boot-MHA-L29C432B156.img and the other partitions to L29C185B138.. That is, setting the PIN code crashes Settings program.. :)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jayden2009:
Don't have those problems all is running fine and smooth like baby buds ??

Verstuurd vanaf mijn MHA-L29 met Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
Sorry -- I just clarified my above post by updating it.. Some of my phone was running different code..

I tried setting the system partition to MHA-L29C432B156, but I got a bootloop..

-t
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
What do you mean? Flashed the system.img from C432 to C185? If that's the case, the decrypted boots here still have verity enabled, it's probably triggered when you flash system from a different model.

I can decrypt 185 for you, posting when it's done.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
I wanted to root my 138 phone (L29C185B138), but unfortunately only C432's was decrypted and available, so I used that instead.

It "almost" works, but the problem with the PIN code crashing was a biggie, so I went back to all-138 now. Stock..

If you can decrypt C185 that would be great.. many thanks!

-t
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
https://www.dropbox.com/s/k7nks0jkt1o8akz/noverity-decrypted-boot-L29C185B138.img?dl=0

Backup your stock boot just in case :P
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
Many thanks! That's great :)

-t
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] aznboix:
can some one tell me step 4? how do i flash the decrypted .img file? it's same precedure as flashing recovery?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jayden2009:
IMG file you flash in recovery

Verstuurd vanaf mijn MHA-L29 met Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
In TWRP, tap install then the button named Install Image. Then select boot img there and select Boot from the partition list that appears.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] aznboix:
do i have to wipe data and cache again? after rebooting, I have to install the keyboard and all apps on my own right?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
Usually google re-installs them for you; but the settings are lost.. you better make a backup and restore them yourself.. And if you get thousands of contacts (duplicates) as a result, there is an option in Contacts app that can merge (delete duplicates)..
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
I find the Huawei Backup is pretty good (also use Titanium, etc), but just went back and redencrypted then restored camera. Even after I let Google restore when doing post initial boot setup (wireless, Google account, etc) I do the Huawei restore because it saves the state data of contacts, phone, messages, for each app better. Need to of course backed old setup before wiping data.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Use the button named Format Data.

Else you will end up with a soft-brick.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bohby:
Hi,

Can I use decrypted-boot-MHA-AL00C00B167.img if my phone version is MHA-AL00C00B156?

Thank you.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] aznboix:
Done, everything works except the theme. It won't change to any other downloaded and applied theme...Also, it doesn't have the stock file browser.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] night_wind:
The same situation for me. Themes don't work, also I don't have the file explorer, and there is not any update option in the settings.

Is it supposed to be like this?

My Firmware: MHA-L29C567B138

I've downloaded "decrypted-boot-MHA-L29C567B138.img"
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
I wonder if some Google Play programs can make up for these shortcomings. Can you install Fx file manager for example, and some "theme editor" ?

---------- Post added at 04:10 AM ---------- Previous post was at 04:04 AM ----------

FAIL warning: The superuser.zip does not work with L29C185B138 decrypted firmware..

It gives an Error 1 during its application and you end up with no root afterwards. (Even if you use the older TWRP, same error)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] night_wind:
I have the root and I can install anything from Google Play.

The biggest question for me is how to install the stock firmware back without the Update App?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
Download the stock firmware, use the huawei extractor (use the GUI version; not the one that needs Perl; its much better) to get the *.IMG files, then use fastboot to flash the partitions. that's what I did yesterday..

Or, use TWRP to do this (put the IMG files on SD card first).. Assuming you gonna keep the recovery partition with twrp..

But you'll be sorry without the Lucky Patcher. The ads are so annoying in all apps :(
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] night_wind:
Is it safe to flash the whole firmware through the fastboot or TWRP?

What I tried so far:

1. Flashed my previous boot.img

2. Formatted and wiped everything from TWRP

2. Booted normally

3. Flashed stocked recovery

4. Wiped from stocked recovery

So I still don't have Update app. What could I do?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] aznboix:
So it works like stock ? Without bugs?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
It should - you are just restoring the same thing back..
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
I so far flashed my boot, recovery and system images to my phone, no problems. Boot and system need to be at the same version AFAIK
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
What, lucky patcher is functional in Android 7? Thought it wasn't since it is an xposed module... Though standalone xD

Thanks.

---------- Post added at 09:13 AM ---------- Previous post was at 09:12 AM ----------

Why not try using Firmware Finder?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
After you have wiped data and flashed decrypted boot.img and superuser you also need to flash the public and hw-data zips for your version of firmware to get theme and update in settings and stock huawei apps installed
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
Where do you flash those? Do they have partitions of their own?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
You flash them from twrp. First flash public zip then hw-data zip. You will get an error with the hw-data zip but that is fine. Boot your phone and you should get themes, update in settings and huawei apps back
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
I want to root my phone but can't find a decrypted boot for the model mha-L29c185b158.

Is the OP updated with all the improvements suggested in this thread? If not which instruction should I follow to get root without breaking anything? Sorry for such questions am new to rooting. Thanks.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
There is none for the C567B138 though. I guess one could flash the ones for C567B167 and change the dataversion.txt under /data/hw_init. I'm not sure what that file is used for but I guess it's used for something. Maybe for updating?

Actually, I just checked my data version.txt and I updated through Funky and it still says B138 and I'm on 156. So maybe it doesn't matter. Make a backup of data first just in case.

For the brave on C567B138

Public for b167

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

HW for b167

http://update.hicloud.com:8180/TDS/.../v76459/f2/full/hw/usa/update_full_hw_usa.zip
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] aznboix:
where do i get these 2 files? i'm on l29636b158
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
I have copied and pasted this reply, sorry to the original poster

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

Now we want the HW Data zip.

Simply replace "update.zip" in the link with

For my phone I'd get the link

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

So full link for me would be

Hit enter if you edited link there or copy and paste from Notepad.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Could you please make a decrypted boot for MHA-L29 C185B158?

If I flash a decrypted image then next time I want to update the firmware how to do it? Do I need to get it decrypted every single time there's an update?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Yes.

There is an easier way (to use superuser.zip only).

But needs to be modified. I'll look into it

also here:

https://www.dropbox.com/s/66pknwx8dv8gj1n/noverity-decrypted-boot-MHA-L29C185B158.img?dl=0

backup stock boot in TWRP just in case.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] backb0ne5p1d0r:
I have some questions..any help would be really appreciated.

I did use search and went through the posts but I am still confused.

I rebranded my L09C185 into L26C636.

I do not have any TWRP backups of my old software.

The reason I rebranded is to unbrick because after unlocking the bootloader, most system apps were lost for some reason. (All Google apps and services, including the keyboard. I was only left with the basic apps like dialer, calculator, messages..etc). Then I clicked "Factory Reset" from settings and it caused a bootloop. I didn't even have TWRP installed yet. So I just rebranded to fix it.

My question is, if I wanted to get full root on my rebranded phone, do I follow all these steps normally, or are there any extra steps required?

Also, does anyone have suggestions on what to do if I lost my system apps again after unlocking the bootloader?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Afaik Unlocking bootloader shouldn't Delete any system app.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I'm not sure if there are any extra steps, or if you have to flash Public and HW for your stock model (before rebrand). [MENTION=1397125]ajsmsg78[/MENTION] might know.

I do know though that my Google services disappeared after unlocking the first time (had to use Funky to get them back by reinstalling everything). Second time I backed everything up in HiSuite, and restored Playstore from there. Only Playstore and Google Sevices seemed to disappear for me. So backup in HiSuite before unlocking.

Playstore is installed to /data/app so it's not a system app.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Sorry i didn't get you. Could you explain please.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
It's not ready yet. I need to modify the script some, so for now we have to use boot images. When it's done you can just flash superuser.zip and it will edit the boot image for us. It has that function already, but Huawei changed some text strings so those need to be edited before you can use it.

And I need to add some stuff so it edits default.prop to allow us to use adb fully.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Didn't know that before. Also about the Hisuite thing that you mentioned. If this question didn't come I would have unlocked without a hisuite backup. Thank you.

Btw why don't OP update the first page with all these infos? Otherwise people who are not experts like me will struggle on the way trying.

---------- Post added at 06:26 PM ---------- Previous post was at 06:25 PM ----------

OMG. Then it'll be super easy to root, right? Thank you for your efforts.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
It doesn't seem to be on all devices. Only for some for some reason.

Also, this thread assumes you unlocked already.

Only step you need to skip is flashing the boot image. :P

So not really that much different

And it was already done by [MENTION=2043143]5[Strogino][/MENTION]
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
When you unlock your bootloader the first thing I would do if you bootloop is boot into fastboot mode and install TWRP then flash my Huawei gapps zip which will put the Google Apps back in. At least get twrp installed so you have more options.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Back when I lost my playstore I tried to install OpenGapps, but I think those install to /system, which would've triggered verity (I guess). Bootloop after that xD
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
My flashable gapps are the ones that come with the phone so they should work without issues. I tested them when I rebranded to the AL00.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Yeah, this was before you released them.

But after that I noticed HiSuite backed Playstore up so I knew it wasn't a system app.

Weird that they don't release the phone with it in /system

But I guess it's because the Chinese version doesn't have it so they just add it after.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
I have one problem left, the gallery always complains that there is not enough space and if i would like to clean up the storage. Naturally I have plenty of space. If i click cancel, it closes.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Try clearing cache of it in Settings - Apps.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
Thanks, I tried that. No luck.. I'm suspecting a bad image causing it to crash. I will try to clean it up today.

---------- Post added at 04:01 AM ---------- Previous post was at 03:23 AM ----------

On my firmware, the superuser.zip fails with error 1. Therefore no rooting is possible. Will there be an updated superuser, or should I look at alternatives like kingroot?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You're not rooted already or have Twrp 3.0.3?

If yes to any of those, try a clean boot with Twrp 3.0.2 :P

Or try this with a stock boot (not decrypted) https://www.dropbox.com/s/i6oh90c515gsjkd/SuperRoot_noverity_encryptable.zip?dl=0
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
I followed the thread on page 1, installed the twrp 3.0.2 but superuser.zip failed, most likely because of my phone version.

A kind user decrypted boot for my version and I have that flashed right now.

I wonder if i can just copy the su binary manually using twrp..
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
What phone version is it?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
MHA-L29C185B138

....is my current version..
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] soft-touch:
That was my former brand before I rebranded.

The Superuser.zip file flashed without any error.

I never get problem with it at anytime
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
That is so odd - I just re-tried all the superuser.zip scripts I have (now I have 3), and they all failed with ERROR 1.

I'm still using the old twrp; the one that's suppose to be compatible.

I think my system partition is read only; TWRP always complains when it first starts up.

I can browse the system partition, even scanned thru all the /sbin/ files, did not see "su" listed.. hundreds others exist :)

---------- Post added at 11:16 AM ---------- Previous post was at 10:46 AM ----------

I just noticed that when I connect the phone to my PC, the internal storage appears encyrpted.. :(
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Shouldn't be a problem as long as you use the superuser.zip provided in the first post.

Try the one I posted, it might work.

---------- Post added at 11:28 AM ---------- Previous post was at 11:27 AM ----------

It decrypts on boot though so you wouldn't notice. If you browse internal in TWRP you will notice.

You did format data in TWRP, right?

System is always RO unless you make it RW in the kernel, which isn't recommended btw. You can mount it rw in TWRP.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
I did so many things, even causing bootloops over the last several days.. Now, it doesn't decrypt I guess - because as I mentioned; when I plug the phone in, while the phone is on, not in twrp or anything, the internal storage appears encrypted to the PC.. I better start this whole thing over.. -t
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You wouldnt boot if you used a decrypted boot and /data was encrypted.

Can you screenshot your internal on your pc?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
Rooting MHA-L29C185B138

I just started again from scratch.. Formatted data.

I followed the first post, install TWRP's old version, I substituted the boot partition that a friend here had provided the c185b138 boot, (scroll back a few pages for the link).. superuser.zip application went fine; wiped cache/dalvik.

booted up, restored from huawei backup, ran root checker "sorry your device is not properly rooted."

Argh :(

-turgut
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Did you install PHH's Superuser Apk from 1dt post or Playstore?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
I am so very dumb; I thought that was some utility to keep the "su" binary up to date..

I just installed it and it WORKS GREAT.. Ahem, only themes do not apply, but who cares..

Thank you so much everyone, I finally have root on a lovely phone.. :)

-turgut
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
hi i have tried to flash ur superoot.zip on AL00 just now,i did that just to test out if ur root.zip works then it would have been a easy root with decrypt boot,but sadly it doesnt boots to system it just stuck at huawei logo.i did a fresh restore after rebrand from C636 to AL00 (again) haha..anyway thanks for the hard work.i m glad to be ur beta test if you have any new patch root.zip haha..cheers.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Hi,

Did you succeed to root as mentioned above?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You did format data though? All the zip does is replaces fileencryptioninline with encryptable, removes verity and edits 3 lines in default.prop.

Nothing else.

If you don't format it tries to boot an encrypted /data without decrypting. So that would most likely end in a bootloop.

I guess the zip could format data too but I haven't looked into that yet. And it would probably just make people angry when they flash and /data is wiped xD
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
no i did not format data and bcoz i didnt bootloop it just stuck at huawei logo.. anyway will try it again later and report back.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Great. Nice to have guinea pigs. Lol

Nah, I did test it yesterday, but I stayed in TWRP all the time. Basically flashed stock, rebooted recovery, flashed zip, rebooted recovery, dumped boot and checked that it had changed everything it was supposed to change. I didn't want to have to restore /data between tests if it hadn't worked so didn't test it fully with Format Data and that. Takes too long to restore.

But I will in 20 minutes, for science
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Science complete. It works.

You still have to Format Data and install Public and HW, but saves you the trouble of finding/requesting/flashing a decrypted image :)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
Good to know. I used your zip a few weeks ago but went into bootloop as I didn't know you needed to format data first. Have now downloaded again for safe keeping to reuse when the next update arrives and I need to unlock bootloader, decrypt and root again. Thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Its already done on mate 9? Then why don't he publish it?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
He did post it in the TWRP thread.

I couldn't get it to flash first, but now it works apparently.

I just modified his script a bit, so the credit is all his :P

But as I said earlier, you still have to unlock BL, flash TWRP, Format Data, reboot recovery, then flash superroot, and install PHH's Superuser apk.