yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bejam:
Gave it ago and got stuck in a boot loop. Flashing back system and boot to the original fixed it. So no joy on mate 9 pro.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Are you decrypted? If not, that's probably why.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
What did u do? What u tried to flash

---------- Post added at 03:04 PM ---------- Previous post was at 03:03 PM ----------

Should have to do with Decrypt it's something else. Bad patch maybe. Phh is working with encrypted devices
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
SuperSU removes "encryption" (fileencryptioninline) from the fstab, so if your /data is encrypted it won't decrypt at boot and you get a bootloop.

One could just change the script to not remove encryption. :)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Paz9:
supersu root doesnt work with many apps, i removed it and installed phh instead and it works as it should.

somethings broken ??
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Can you give me a list of apps you can't use with SuperSU?

Except tibu and gsam battery, both of those are working for me.

Also, do you have SuperRoot installed now or "regular" Phh? If so from where?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Paz9:
Superroot sorry,

These are from the top of my head

Titanium backup 7.4.0.3 - only works with supersu newer versions do not but works fine in superroot

Gsam - same as above works in previous versions

Root explorer - only works in a few

Disable services - doesn't work

They all work fine once I flash superroot and use phh apk for root management

Im on c636b172
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
u r from which country?just wondering due to u r on the latest b172
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Paz9:
Australia

b172 is here http://hwmt.ru/oth/HWFF/info/view.php?find_model=
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I dunno what's wrong then. All of those work for me using SuperSU. Except for TiBu when it comes to apps not in /system/app or priv-app.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] gm007:
He has b172 that it's not release yet for public,could be they changed things in this new firmware.

Or it's an incomplete firmware missing updated hw_data.

And i think they patched something for root vulnerability
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Paz9:
HW_data was flashed post installing twrp (as is needed from wiping data)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I checked boot images and compared 176 to 156, not that much changed. A few lines here and there. One that caught my eye was persist.sys.huawei.debug.on, not sure what it does.

The RomAur seems to have problems with SuperSU as well. I should update to 176 just to check what's wrong.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Paz9:
strange, i wouldnt of thought much would change from 156/8 to 176
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Android security patches, but worth a shot anyway :)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Paz9:
why would they affect supersu root and not superroot?

let me look closer at my config it doesnt make sense.

edit: Definitely a supersu issue... i had a script that broke root that i thought may have caused the issue, removed it and still happens.

i can only root properly using the superroot method
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Will know soon. Setting up phone now after installing b176...

They did change one thing. Play store is installed as a system app now :eek:

It wasn't in b138, not sure about b156.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Question: When did you install SuperSU?

Right after 172?

And did you format before installing it?

I do notice that if you format data after installing SuperSU, the SuperSU.apk is lost as it's installed to /data.

TiBu will say you have root, which is true, but you don't have any SU manager so you can't approve/deny requests.

Meaning apps will just say no root blah blah.

Edit: TiBu sure is strange. I think it's built-in busybox is very outdated.

Wouldn't restore first. Tried everything. Then installed Stericson Busybox and it magically works again.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Paz9:
yes tried with wipe before and then did it without a wipe - same thing - supersu app is present both times though

busybox may be an issue but i already have jrummy bb working

the grant su dialog comes up as usual, i grant it, go to freeze an app and it says it froze it successfully - however the app doesnt go 'blue' to show it froze.

it says i have root and is working in some apps, but in others it refuses to work properly.

---------- Post added at 03:16 PM ---------- Previous post was at 03:15 PM ----------

sorry im on MHA-L29C636B172
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] nitrate:
Does anyone know if "suhide" by Chainfire is compatible with this release of SuperSU for the Mate 9?

Gesendet von meinem MHA-L29 mit Tapatalk 2
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
If you're trying to get Pokemon Go/Android Pay to work it won't, SafetyNet will still not pass.

Enabling it can be tricky. As we can't mount su.img, and /su is rewritten after each boot it needs to be included in the boot.img, and the scripts in SuperSU need to be edited as well.

So you can't install it with the suhide installer script.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Derpling:
Hi, i've flashed it, all boot well but i have no root, how to solve it? L29C636B172
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Is the SuperSU app there?

It should tell you it can't find the SU binary if it's missing.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Derpling:
Yes that's exactly what it says.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Try flashing back stock boot image in twrp (the one from Kang vip if that's what you use) then SuperSU on top of it.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] djnikkofb:
did you flash decrypted boot.img?

did you make a backup?

did you format data in TWRP first?

than factory reset?

than flash SuperSu from external SD, or OTG?

if no, than try those procedures...good luck.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] sashimiyarou:
I'm expecting Magisk.:D

A cold beer would hit the spot!:o

I can't register with papal of the United States.

It can't be donated by papal of Japan.

It felt empty.:(
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Beer will do the opposite xD

I have lots of stuff going on now so not much time to look into it... Bought a new car, in the process of selling my old car... Takes time if anything :/
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] wrecklesswun:
I ran across this as well, i got a busybox zip and flashed the zip.. Once done, Romtoolbox and TB now work
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] wrecklesswun:
just bought a new 2018 Audi S4 - know the feeling :)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tecalote:
[MENTION=2247733]ante0[/MENTION] Hello, I have updated this night SuperSU 2.82 for EMUI - could you please test it. It is now without patching with phh superuser - there are only the added lines in the script, because originial SuperSU works with Firmwares B3.8x - if vendor is mounted and boot is searched....

https://xdaforums.com/p9/development/root-supersu-2-81-emui-5-t3612258

But important ist complete Unroot from previous modified versions of SuperSU
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
It works!

You should check the last lines in your update-binary, it has phh code :P I thought I was flashing the old version first and looked around for an official 2.82 sr2. Then extracted your zip and noticed it has no superuser folder xD

I need to convince [MENTION=631273]Chainfire[/MENTION] to add/look for "fileencryptioninline" and remove when it patches the fstab. :P
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tecalote:
Yes, your right. I will add your suggestion to the post to Chainfire I did this morning.

And yes, I forgot to delete the not necessary Lines at the end..

I have tested several times to flash with different situations and then I was so happy seeing it works U completely forgot this cosmetics. :)

I'll do it tonight.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] skatebiker:
Maybe a somewhat stupid question: are updates still possible when this phone is rooted by this method ?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
No. Probably not anyway. It creates a folder in /system which means /system has been altered and OTA will most likely fail due to that. You can however do this:

Extract the 2.82 zip, open common folder. Open launch_demonsu.sh in a text editor (notepad++).

Remove this text from the bottom of that file:

mount -o rw,remount /system
if [ ! -e /system/etc/init.d ]; then
mkdir /system/etc/init.d
chown -R root.root /system/etc/init.d
chmod -R 755 /system/etc/init.d
fi

if [ -e /system/etc/init.d ]; then
for SH_FILE in /system/etc/init.d/*; do
sh $SH_FILE >/dev/null
done;
fi

mount -o ro,remount /system

Save and rezip everything. Now you should be good to go.

You will need to flash back stock recovery before installing OTA, else it will just boot you to twrp.

You can't make changes to /system, /product or /vendor. OTA will check those before installing. If crc doesn't match it will fail.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] thelongdiv:
Anyone else having issues with always getting "The SU binary needs to be updated. Continue?" message? It always fails and asks me to reboot. It doesn't function properly either, not opening for apps that request permission.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Are you using 2.79?

If you're on B182+ firmware you can flash https://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133 2.82 SR1. It should be installable normally now without needing PHH as base.

Make sure to flash back stock boot first and TWRP 3.1.0.

If not on B182+ flash 2.82 from my OP.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] -Zork-:
Want to upadte version 2.79 and made a clean install to update C432B186. So looking help which is the better version until now with SuperSU?

Regards
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ferry013:
Ante0 one q

I have l09c432b182 unlocked and twrp and auras rom and supersu 282 and problem with su (binary)

Can i just flash yours or something more? Please help i am noob
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
If you are on SuperSU 2.82 you are on latest one.

If it says it can't find binary, it's not installed correctly.

Official 2.82 can't be installed correctly because it doesn't find the boot partition, this is fixed in SR1.

If it does say binary is missing, flash TWRP 3.1.0 from the twrp thread.

Then take boot.img from the AurRom zip and copy to your phone, then flash to boot in twrp (Install -> install image -> select boot.img -> select boot partition).

Next flash SuperSU 2.82-SR1: http://download.chainfire.eu/1114/SuperSU/SR1-SuperSU-v2.82-SR1-20170608224931.zip
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ferry013:
This afternoon mate went crazy on me, restart and bootloop

Flashed again rom but now i am afraid to do anything with this piece of s.....

That is second time that hapaned to me

---------- Post added at 06:09 PM ---------- Previous post was at 06:05 PM ----------

Now i have 2.79 su and zero patience

Think i am gona wait for aur new rom

Like i said noob not the complete one but this is crazy compared to my G3
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] newyesor:
It is work on B183.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] st_voss:
Changes to /vendor count as modifying system?

Sigh, then I have recommended a wrong way of using AdAway with Magisk to people :(

Because on the Mate 9 /system/etc/hosts is a symbolic link to /vendor/etc/hosts I had recommended *not* to use Magisk's "systemless hosts file" option and set AdAways' hosts file location to /vendor/etc/hosts, i.e. let AdAway modify /vendor/etc/hosts.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Changes to /vendor counts as modifying vendor :P

But it does check vendor, system and product when installing OTA.

These are the lines in the updater-script of an OTA update:

assert(block_image_verify("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat"));
assert(block_image_verify("/dev/block/bootdevice/by-name/product", package_extract_file("product.transfer.list"), "product.new.dat", "product.patch.dat"));
assert(block_image_verify("/dev/block/bootdevice/by-name/vendor", package_extract_file("vendor.transfer.list"), "vendor.new.dat", "vendor.patch.dat"));

Instead of replacing files like it used to do (pre-android 5 I think), it treats /dev/block/bootdevice/by-name/system as a partition (which it is) and patches it.

This is just to save space and patch only what needs to be patched, rather than replacing a whole file it would just replace a few lines of code.

You could probably force it to install but chances are you'll end up with a corrupted /vendor, /system or /product.

I was wrong too... I use magisk systemless hosts and the hosts module, but what it does it replaces /vendor/etc/hosts with the one in /magisk/.core/hosts, so it's just as bad :P

I couldn't get it to install, because /magisk/.core/hosts was symlinked to /system/etc/hosts (I think anyway), when it tried to replace hosts in magisk it said the file-system is read-only. So I replaced it manually. And that apparently only copied hosts to vendor...

Edit: Disabling Systemless hosts and the hosts module restores the original hosts in /vendor/etc/
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] st_voss:
Thanks for the info about OTAs containing /system, /vendor and /product parts. I thought it would be just /system.

Regarding magisk systemless hosts and adaway:

With systemless hosts enabled Magisk will follow the symlink and add a bind mount for /vendor/etc/hosts instead of a bind mount for /system/etc/hosts.

At first I thought that this is the bug in Magisk. But it might actually work if systemless hosts is enabled and AdAway's hosts file points to /vendor/etc/hosts.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] superandroid2011:
Hi guys,

I whish to know how simple is to root M9.

I'm currently on MHA-L29C567B190 with unlocked bootloader (I never flashed anything to it, just unlocked it).

From this point, rooting it is as simples as Flashing TWRP 3.1.0 and than flashing SuperSU 2.82-SR1?

Is it just that?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Yes.

Make sure OEM unlock is enabled in dev options, if it's not you'll have to relock bootloader then enable it and unlock bootloader again.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] superandroid2011:
Thanks!

Worked very nicely.

The only tricky was to sideload "SuperSU 2.82" since I didn't have a sdcard available.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] superandroid2011:
Hi guys, after rooting I played around with size and density settings, on a next reboot, screen was messed without any possibility of inputing password for be able to login.

I did factory reset with TWRP but after that, I have a full black screen with only navigation buttons showing, nothing more...

I did a e-recovery and Huwaei downloaded firmware and applied it, but I still have the same black screen with only navigation buttons.

Any help?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Factory reset in TWRP (For Mate 9) usually leads to bad things if I remember correctly, it removes symlinks and stuff that it's not supposed to remove.

Try applying update using: https://xdaforums.com/mate-9/how-to/guide-mate-9-flash-update-package-t3593108
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] superandroid2011:
Well, after applying e-recovery from Huawei, when trying to boot into TWRP, it actually brought me to a recovery screen from Huawei. There I selected factory reset. The phone booted fine after that, but I probaby lost root and TWRP.

Thanks anyway, will save that link for future need!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
That was going to be my second suggestion.

After applying a firmware update (be it through e-Recovery, that link or any other method) root/twrp is lost and bootloader is locked again.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] SHAUN231:
anyone have the magisk link we can use. down in op
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Forgot to update OP.

Use this thread: https://xdaforums.com/mate-9/how-to/guild-mate-9-magisk-t3666540

It has a module needed to get Safetynet fully working.

If you want to stay encrypted, flash https://mega.nz/#!o4ESgABJ!DyUxQSKo8skyfv05sSuU7FjMmsyeckAO0KD_1dDIctw instead but download and flash the module from the thread above.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] SHAUN231:
I must be doing something wrong cause my TWRP will not even let me backup
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Unless you decrypted (Wipe - Format Data (This will remove everything)) you won't be able to backup /data.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] SHAUN231:
that must be it. I always get a splash screen when booting into twrp
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You can test by trying to explore /sdcard or /data/apps/, you'll see funny named folders.

If it's the splash screen about system being read only it will keep on displaying until you decrypt or flash a twrp recovery that doesn't save settings to /data. Mine saves to /cache instead of /data.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] SHAUN231:
thank you so much for all the info. I somehow got Magisk to work all I did say go to erocovery and download the stock and do everything from the start with unlocking the bootloader and flashed the magisk 13.6 you gave me. only issue is I can not get any type of security to work. no fingerprint, PIN or password
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tboooe:
Hello, I am on SU v2.82 SR1. Everything works great. No errors with upgrading binaries. Is there any benefit to upgrading to SR5?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Well, it's more recent. I don't think there are many benefits for Mate 9 though.

You could check changelog at https://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tboooe:
Thank you. I guess I will wait to update SU and TWRP together when I do the Oreo update then. My Mate 9 is working very well right now so I dont want to screw anything up!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] giusmobile63:
My mate 9 (L29c636b172) is well rooted with this procedure; https://xdaforums.com/mate-9/how-to/guide-how-to-root-mate-9-decrypt-data-t3569986 (PHH'S SUPERUSER).

everything works fine but I need to change to SUPERSU to give root permission to GMD GESTURE CONTROLL app (modified in System app to work on huawei phones). With PHH'S I cannot get them...

which procedure should I follow exactly, starting from this configuration? TWRP is 3.0.2-2

thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Flash this stock boot image in TWRP: https://mega.nz/#!hpsUkaZb!-8iEZTKUPSUVEhFV-hrTRRyvpNMA5U_0BlP7y-vJMKM (L29C636B172 boot image).

Then flash this: https://mega.nz/#!81lxgbBY!EN4mJQfKScQG34Wny3iIlB5EgVVvu9bkeciLSUHzm5s (If you followed the guide by eddmecha you are decrypted)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] giusmobile63:
Thanks a lot!!!!! Yes I followed his guide but for SUPEROOT instead of SUPERSU. So I just have to flash these 2 zip, no need to factory reset or something else?

I was thinking to wipe all from TWRP and follow again the procedure of eddmecha but the one for SUPERSU (the second one in his first post) but may be would not work...

I don' know.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
It's basically the same as the guide. You're only skipping decrypting as you already did that.

So just flash boot image to boot partition, then flash SuperSU zip.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] giusmobile63:
ok thanks, understand!

can you explain how to flash "in boot partition". not just flash with TWRP?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
In TWRP, tap Install - Install image - select boot image (BOOT_L29C636B172.img) - select boot partition.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] giusmobile63:
Ok, I'll try tomorrow and I'll let you know. thanks again!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] giusmobile63:
I did the flash but something went wrong; after rebooting (took 10 minutes) some settings and apperance went lost, all account disappear, root seems lost, in TWRP the folder sdcard is full of files with strange names (letters and number) and nothing else, so i cannot try to flash again from sdcard. I moved the the supersu zip file in external sd and flash it again but nothing change and root is not there...

what should I do?

I was thinking about repeting the complete procedure of Eddmecha but I don't know what to do before (wipe.... uninstall root app.....?)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Well, did you flash SuperSU that I linked in the previous post after boot image?

If you lost root it means you probably rebooted after flashing just boot image, as it re-encrypted (that's why it took long to boot). Or it gave errors when you flashed supersu .

Anyway, to re-decrypt, do eddmechas guide again but flash the supersu I linked as it's updated.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] giusmobile63:
I flashed both your files but may be something where wrong when I flash supersu. I have a nadroid complete backup (BOOT, SYSTEM,...etc) made through TWRP just a few days ago. Do you think is ok if I restore thi backup through TWRP by the moment and try to flash again boot image and supersu zip that you provide? would it work?

thanks

When I flash your supersu zip after the boot image, the phone automatically reboot after 3 seconds during the flashing and during booting the Huawei logo disappears and it appears an "android" written logo until the boot ends.

I did again the entire eddmecha procedure flashing his Supesu zip and manually reboot after the whole flash but Android logo is still there during boot and after all camera app disappear. What should I do? I restore my complete nandroid backup but still "android" on boot and no camera app. Almost all the folder in internal memory are empty...

Consider that I have a complete (boot, system, data....etc etc) backup to restore also in only some of the partition...

thanks for helping!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] giusmobile63:
When I flash your supersu zip after the boot image, the phone automatically reboot after 3 seconds during the flashing and during booting the Huawei logo disappears and it appears an "android" written logo until the boot ends.

I did again the entire eddmecha procedure flashing his Supesu zip and manually reboot after the whole flash but Android logo is still there during boot and after all camera app disappear. What should I do? I restore my complete nandroid backup but still "android" on boot and no camera app. Almost all the folder in internal memory are empty...

Consider that I have a complete (boot, system, data....etc etc) backup to restore also in only some of the partition...

thanks for helping!