yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] nitrate:
The su binary is existing in sbin as well as system/xbin. They just differ in size (the one in system/xbin is twice the size).

Gesendet von meinem MHA-L29 mit Tapatalk 2
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
It's not supposed to be there. :eek:

That might be why it doesn't work. xD

Back it up just in case, then remove it from /system/xbin/ and reboot.

If you should bootloop (unlikely) we could just make a flashable zip to restore it.

Did you happen to try updating SuperSU or some other SU after wiping? Might just be something left over from that.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] nitrate:
I tried using SuperSU which failed.

Now this is the current progress:

I renamed the su binary in system/xbin to su_old and then rebooted.

After the reboot, i started TiBu. And voila it found root but complained that the su binary (the one in sbin) might not be functional for Android 4.3+ roms:

https://picload.org/image/rlodiwol/screenshot_20170305-200303.png
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Yeah, it does that for me too, but works just fine. I belive it uses SuperSU as base for the "functionality", as it's the most popular one/works for most devices.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] nitrate:
You've been gifted ;)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Oh shucks. That was a waste (I use Adaway xD).

But thanks!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] nitrate:
LOL
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] setool3:
i need twrp and root for my mate 9 L29C605B111 i wanna make sure if is possible please i don't want to brick my phone

thanks for the help (sorry for my bad english)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] infoenekas:
hi to all . thanks for your nice educations.

i need help

i unlook my mate 9 ( hma-L29)

install twrp.

now i want root my phone by Magisk on Android ( for enable ota updates in futher)

but when go to twrp, i see see many of folders by Long file names and obscure!!!

in first post i read that i had to decrypted by flash a file. for root by magisk,Necessary this step?if i flash decrypted file, ota updates works?

why i can not see files and zip file in memory in twrp?

thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] d_bo:
You keep coming to my rescue. You're a bit of a hero.

Public data and HW Data are from TWRP backups? I can see 'Product' as a choice on TWRP but now HW data...
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
First flash Public (MHA-L09C432B156) http://update.hicloud.com:8180/TDS/...69/f2/full/public/update_data_full_public.zip

Then HW (MHA-L09C432B156) http://update.hicloud.com:8180/TDS/...04/v75969/f2/full/hw/eu/update_full_hw_eu.zip

When you update with Funky or Firmware Finder these are downloaded and installed automatically, but when you Format Data the /data/hw_init/ folder is removed so you have to flash them after. The reason you flash Public first is because it wipes /data/hw_init/ when it installs so... If you'd flash HW first it'd be lost xD

---------- Post added at 10:27 PM ---------- Previous post was at 10:20 PM ----------

Magisk is not supported. I'm not sure if its "System" install is, haven't tested. I do know that Systemless is not, same with SuperSU. SuperSU force system install bricks.

The reason you're seeing gibberish is because /data is encrypted by default, to remove this you'd have to format data in TWRP then flash a decrypted boot image (it doesn't force encryption so not really decrypted.) to see files and to backup /data. In regular cases the encryption would be handled by TWRP but that's not possible yet.

For now only Phh's superuser work, until someone figures out how to get SuperSU or Magisk working.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] infoenekas:
thanks.how i flash a decrypted boot image?please say to me step by step.thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
What's your full model?

L29CxxxByyy

There is an easy way as I'm not at my computer, but I need to make sure your models HW data and Public data exists.

Also, you can OTA just fine, just need to reflash stock recovery when you do.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ejohn3288:
Can you decrypt MHA- L29C567B167
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] infoenekas:
mha-L29C185B158

MY BRO...I SUCCESS to flash descrypt image and then Superuser ...then wipes...then install apk

but root not work.. i can uninstall system app by an uninstaller system app

i install super su from google store....it wants update but faild...in next try i select from recovey...and now my phone not load:crying:....it stay on huawie logo...format data again ...but not usefull

help...please...i love this phone :crying::(

.thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
u cannot use supersu ,instead use phh superuser bcoz supersu is not supported

your step should be

1-UBL

2-flash twrp thru adb

3-reboot to twrp

4-format data

5-reboot into twrp thru reboot option in twrp

6-flash decrypt boot img

7-flash superuser.zip

8-flash hw data.zip n public.zip

9-reboot to system

10-install phh superuser from playstore
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] infoenekas:
thanks...

in the other words you say do all steps again...

but

how find hw data.zip n public.zip for my model?!

i use this topic :https://xdaforums.com/mate-9/development/root-root-mate-9-t3556590/post71116171#post71116171

but i do not know what put Instead region?(mu model is mha-L29C185B158 )

how i load download mode? i can not load it now!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] nitrate:
Are those for L29C432B156?

What are they used for and how to actually find them on per-model base?

Gesendet von meinem MHA-L29 mit Tapatalk 2
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] gm007:
Those files are the data and apps for each firmware.

Let me explain how you get the files:

First check the firmware for ur model here http://hwmt.ru/oth/HWFF/info/view.php?find_model=mha

Find a full firmware package.

in this example i will use L29C432B156.

Copy the link to ur browser and change at the end of the link update.zip to filelist.xml

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

Open it in ur browser, you will see the path of each file.

For data file it's update_full_hw_eu.zip and the path is hw/eu ,so replace filelist.xml in the link to /hw/eu/update_full_hw_eu.zip

You will see full link like this: http://update.hicloud.com:8180/TDS/...4/v75974/f2/full//hw/eu/update_full_hw_eu.zip

Do the same for public zip.

Hope it's clear.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Way easier than my previous "method". Had no idea about filelist.xml

They're data and Public zips. Settings, apps, etc. Without it you won't get System Update in settings and camera tends to break w/o it. Settings app itself tends to get iffy too if you don't flash it and wipe dalvik/art and cache.

Themes break without it. And you can't set intervalled wallpaper without it. So stuff do break. :P

The one you have quoted might be for C432B156, but better if you get your own if you need it.

When you update via Funky or Firmware Finder those are downloaded automatically, not sure of they are when you OTA as you can't find them using the OTA links on hwmt.ru.

And they're wiped (/data/hw_init/)when you unlock bootloader (/data wipe) or format Data. So that's why you should flash them after formatting data in twrp
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] infoenekas:
hi to all

i do not sure about my complete model . sure "mha-L29" only.

what is my region? is eu?

my phone stay on boot logo

i try to flash hw and public file. but i do not know what is my region?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
try to flash a fresh boot.img,do u have any backup in twrp before you flash the patched boot.img?if not then try to extract from update.app of your firmware
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] nitrate:
Ok, so what i did was: unlock Bootloader, flash TWRP, flash decrypted boot.img, wiped data, flashed Superuser.

I didn't flash any of those two files. Maybe that's the reason why "Update" doesn't open if i go to the settings and enter "Update" in the search box. The button appears as i'm about to enter the word "Update" into the box, but nothing happens if i hit it.

What happens if i go to the recovery and do flash any of those files? Will it wipe my device? Everything is running just fine but it might be that i missed something...

Thanks in advance.

Gesendet von meinem MHA-L29 mit Tapatalk 2
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Yup, that's why.

Just flash Public first then HW, it won't wipe anything.

Well, public does wipe but only the contents of /data/hw_init/ which should be empty. You could just check if it is before flashing. And follow [MENTION=4115953]gm007[/MENTION] 's post to getting hw and Public.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] setool3:
can i use twrp and root on my l29c605b111 with no issues ?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
You need to use all the files for C185B158
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] gm007:
I suggest you to rebrand ur phone to c636, cause if something wrong happen you can rescue ur phone.

https://xdaforums.com/mate-9/how-to/guide-rebrand-chinese-al00-mate9-to-t3554656/page28
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
Cad someone confirm please that he has been rooted and managed to get ota without using funkyhuawei?

My device: Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] gm007:
You can receive ota when rooted but you cannot install it.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You should be able to with stock recovery/boot?

That kind of defeats the purpose though I guess, as you'd have to decrypt (if you want to stay decrypted) and install superuser again.

Reading up on it now, Nexus 5/6 OTA's seem to check the integrity of /system, so if you have busybox etc installed it would fail and thus would not install OTA.

Only way to get OTA would be to flash stock system.img again, as the whole partition is checked (checksum, if no match it fails).

If this is the case with Mate 9 I do not know, but I'd guess it is. (and it might check other partitions too)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] nitrate:
I've been able to flash PUBLIC without any problems. But flashing HW gave me ERROR 7.

So, i rebooted and realized that ROOT was also lost. :confused:

How to flash HW?

Gesendet von meinem MHA-L29 mit Tapatalk 2
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
It does give errors. It tries to run commands that TWRP can't execute ('mountencrypt and update_huawei_pkg_from_ota_zip')

Root shouldn't be lost because of it, unless you flashed back stock boot?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] nitrate:
Oh, i think i found the solution... ;)

Gesendet von meinem MHA-L29 mit Tapatalk 2

---------- Post added at 08:25 PM ---------- Previous post was at 08:23 PM ----------

Well, Superuser told me that the binary needs to be updated. Some apps don't have root anymore. LOL :screwy:

Terminal tells me that the su-binary wasn't found upon entering "su" into the console.

Got it fixed: rebooted into TWRP and reflashed decrypted Boot and Superuser. Root is back.

Gesendet von meinem MHA-L29 mit Tapatalk 2
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] d_bo:
Worked perfectly. Thanks so much, again!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Still very weird that it got removed.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
I understand, so what alternative do we have, if ota dolad will fail? If we'll get an update in future, what will be the way to get it installed on a rooted device?

I am still in the state not having started the whole process.

I want to be sure to get further updates on the rooted device after I have done this.

I doubt we'll get a full alternative rom and a full fallback solution , since AJ send back his device today because of unsolvable brick.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] KOLIOSIS:
I bought the Connectify MAX package,but,I'm a bit stumped as to getting it set-up properly (for the wired connnection).

I'd be most grateful if you could PM (or right here) & get me pointed in the right direction.

EDIT:

I contacted the Connectify support team,they will get back w/me tomorrow (March 7,2017) after 9:00 a.m. EST.

(sent them a copy of the FunkyHuawei .pdf instructions,see how it goes........)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
i can confirm that u can ota withour problem,just that u need to flash back stock recovery n use full package instead of small patch ota(by selecting the 3 dots on top right)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
So if you flash stock n update ota then to re root you need to have the decrypted image for the new model number right?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
if u use superRoot.zip u DONT need to patch the boot.img
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
What, free version is enough!

What you do is go into your control panel - Networking, right click on your wired Internet connection - properties, select IPv4 and properties. Here you change the DNS to the funky DNS.

After that you might need to close the Hotspot and turn it back on again.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
So what is the purpose of decrypted boot image? As in the first post the OP clearly mentions to flash decrypted one followed by either superuser from store OR that attached superuser.zip!!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
zzz seems like u didn't read thru each and every post, [MENTION=2247733]ante0[/MENTION] have created a root.zip to make everyone to skip flashing a patch boot.img.

PLEASE READ PROPERLY BEFORE REPLYING WITH EXCLAMATION MARK.

i just wanted to help but since u think u know better, I won't be replying even if i knw the solution.just wait until aj help u patch ur boot.img everytime u update to a new update.fyi my reply is to help u,if u dint need my help please say so.

p/s i have been using superRoot.zip,it has been doing great,i tried on AL00C00B167,B173 L29C636B138,B158.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
I was exclaimed because I didn't know that option exists and so I put an exclamation mark. I don't understand how did it makes you think that I know everything while I was asking one of my many doubts.

I took 90% of the help from [MENTION=2247733]ante0[/MENTION]. He helped me through every point and I didn't remember any time he or anyone else mentioned a zip file which alone will root the device. My bad.

Please don't mind sharing a link to that zip file.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Chris4877:
I second that motion! :D
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
I returned my Mate 9. Does [MENTION=2247733]ante0[/MENTION] want to take over this thread?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I'll keep on helping where I can ?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] infoenekas:
hi.

thanks for this topic

when i want flash decrypted img from twrp, ask me partition for flash.which partition selected?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
boot image goes to 'boot' option. :)

OR flash this instead https://www.dropbox.com/s/i6oh90c515gsjkd/SuperRoot_noverity_encryptable.zip?dl=0

it decrypts and adds superuser, so you don't have to flash a decrypted boot.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] infoenekas:
thanks bro.

i do steps for rooting . when an app that need root , show access message and i allow it. but apps not work.for example can not remove some system app by remover.

why my root not work?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Which app are you using?

Probably because it's not using remount correctly.

For Mate 9 you can only use 'mount -o rw,remount /system".

If you use 'mount -o remount,rw /system' it will just say /system is busy and cannot remount. And that's why you can't install stericsons Busybox without using 'mount -o rw/remount /system' first.

Actually, you could try using that in a terminal app (su first) and see if it works after that.

When you're done 'mount -o ro,remount /system', to remount it as read-only.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
My fix was to set the kernel permissive including at boot. I use SELinuxModeChanger and got busybox and Titanium to work. Why? I have no idea.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bossei:
This didn't work for me. I got bootloops.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Did you Format Data?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bossei:
For whatever reason I thought the file did that for me. I used the original instructions and didn't get bootloops. I'm assuming that's still viable?

---------- Post added at 05:38 AM ---------- Previous post was at 05:34 AM ----------

Settings keep crashing now. I'm starting to think this isn't worth it. I've used this phone for couple of months with NO issues so this has to do with the rooting.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Yes, that's correct.

It does not format data on its own.

Wiping cache usually fixes Settings...

But then you got to flash the HW data and Public for your model. Because that affects themes and stuff.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bossei:
Where do I get HW data and Public for the l29 US version. I see my theme is different.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Full model?

Actually, the site you'd get them from is experiencing problems... http://hwmt.ru/hwmtsite/firmware-database/
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bossei:
I think so dual sim. I'm going to do reset my phone.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] infoenekas:
Hi.

Finally I can root my mate and work nice

I restore my date... But WiFi not work. I had to reset phone and want do all steps again. But I see now when go to bootloader, say "bootloader unlock" but "frp lock". When go to developer menu oem not work(not active for lock or unlock!)

Now what I do?

How unlock oem and frp?

Thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Try adding your Google account, or remove and add it again.

What FRP (Factory reset protection) does is protect your phone from a factory reset in case it gets stolen. Then the thief would have to enter your Google login to use the device after factory resetting.

And check this https://xdaforums.com/mate-9/help/mate-9-frp-lock-t3551806/

I don't know if relocking would allow you to enable OEM unlock again.

Like for me it's grayed out but enabled, it might just be that factory reset disables it but since your bootloader is unlocked it stays grayed out and disabled.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] infoenekas:
Thanks bro. Thanks

I do your steps. Add and remove and add again

But oem not active

Now what i do bro?

If you thinks it is not important, it is not for me too.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
I searched too many to fix this issue, and I didn't find any, the only thing you can do, if you have official recovery to use firmware finder and flash the same version you have (Full), if you're on twrp do not try to flash official recovery from twrp, there is other ways like adb commands, or some apps that using root too flash recovery without PC.

If you out of choices, use dc phonix, it can flash any *.img even bootloader and frp locked
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Did you try relock bootloader then unlock oem? I'm sure you've answered it before... I have a vague memory of me asking it before too xD
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
I had an frp lock twice, the first time I relocked the bootloader and then each command you enter it will fail aslo bootloader unlock.

Last time it's refused to relock bootloader as it mention root type is risk.

I found a command that should unlock the frp but it need a code and I don't know where to get it.

Let me remember the command and I post it here
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
Could you please explain a bit more about dc phoenix and give link to this.

And what is 'frp locked'

We know that AJ cancelled his development after not been able to flash anything via fastboot flash after restoring a image which did not fit exactly to what he had before on the device. As he is very experienced.

My device: Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
I guide some ppl to make the root method but with some points to be careful about.

Before starting the root you should remove your google account, screen lock, hicloud account and then make a reset from settings not from recovery, when it finish the reset and boot again finish your welcome settings without putting your gmail account, if it asked you you should skip, if there is no skip you should enter your email and make a reset again, after that do not forget to enable developer options, usb debugging and OEM Unlocking.

Then you are ready to root.

** A lot of formating or wiping from Twrp with google account logged in cause an frp lock, cause it cannot wipe your settings like fingerprint, you can test this.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Could it be your Gmail password, same as with the relock command?

But as you said, safest bet is probably to just use firmware finder and try that way. You'd need stock recovery though and that would be impossible if you can't flash anything :/

The other way is Funky, but that costs money but will probably always work.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
I tried gmail account, password and bootloader unlock code and didn't succeed.

You have 3 options now.

Offline update if your region is C636 or AL00.

Funkyhuawei but I don't recommend it as it waste of time, already donated for 5 points and started download and when it reached 90% the server went down.

Dc phonix

You can find it on dc-unlocker.com and it will make you to flash official recovery then you can complete by your self
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
sorry but may i knw how do you reset ur phone?thru twrp or thru settings?i would suggest to dload back your fw (if you r on either c636 or AL00) and redo everything from the start after finished updating.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] deecept:
Probably stupid question, but do we know anything about this working on the P9 Plus VIE-L09 on EMUI 5? I miss my TWRP
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You're free to try xD
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] deecept:
Would love to, but I have to dump the recover(ies?) and boot imgs from my fully working device - since no TWRP, no Nandroid backup option :(
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You can dd it from adb shell if you have root :)

Stock Recovery can be flashed back using fastboot.

Buuuut, probably not going to work. I belive this version of twrp was built from sources so probably specific to Mate 9.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] deecept:
No root, kinda why I wanna try this out :) I could try to boot from the TWRP image, without flashing it. Would at least be some sort of proof of concept, no?

EDIT:Weird, I get this when I try to boot .img

downloading 'boot.img'...

OKAY [ 0.478s]

booting...

FAILED (remote: Command not allowed)

finished. total time: 0.484s
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Do you have bootloader unlock and frp unlock?