yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
Hi at first there is no "stupid question",secondly,well updating via OTA will go thru BUT it will break your root and recovery will be reverted back to stock.another thing to be take note is it will locked back your BL once u update official FW. Seniors do correct me if i m wrong Thanks!!:)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] duraaraa:
I think for any chance of the OTA to go through, TWRP must be replaced with the stock recovery. If the partitions are modified and the OTA can't patch them correctly, I think it might fail. Not having tried it this way myself, I can't be sure, though. Worst case scenario, just flash the full version.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] zhangyang_haha:
Does it support Mate9 Pro? They are pretty the same
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Try and report back
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Oweida:
I would try it in my mate 9 pro if I could back up my original recovery just in case I want to revert back ?

Any help?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Use Huawei upade extractor program to extract the official recovery from your rom
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Oweida:
I don't have the official rom downloaded the version is LON-AL00C00B156 if you could direct me to where I can download it.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tkkg1994:
Yes. It works

Sent from my SuperMan powered SM-G930F
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] oF2pks:
Just for info (?): about a double "redundant trigger..." in your TWRP3.0.3/ramdisk/init.rc

# Load properties from /system/ + /factory after fs mount. Place
# this in another action so that the load will be scheduled after the prior
# issued fs triggers have completed.
[B] trigger load_system_props_action[/B]

# Load properties, Android 6.0+
[B] trigger load_system_props_action[/B]

I have same 2x (for other device), and was wondering ?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
I have a question not related to the thread, I just need to know if the dual active or dual stand-by is it a hardware related to the kirin 960, or huawei just disable it from software, I saw the comparison between Kirin 950 and 960, almost both are same but 960 is better, so why there is no dual active in mate 9
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] nagpochenpo:
thanks to funkyhuawai and this thread - i have a nice rooted device. now the latest b126 update appears and while trying to update i get into twrp. so my noob question is, how do i apply the update?

thanks for your help :)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Governa:
It would be better if you created a new thread.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] gm007:
You need stock recovery to install official ota.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Expert guys here can reply with just one word without making a new thread

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

Flash your official recovery from bootloader using fastboot command

Fastboot flash recovery recovery.img
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] nagpochenpo:
Noob is questioning ;) Where do i get the b138 recovery.img? :confused:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Use Huawei update extractor to extract recovery.img from update.app file of b138
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] albertobom:
I need big help. I'VE unlock my bootloader and now I've no apps or gapps. Not even the keyboard. What to do?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
you can factory reset again and see,if still cannot get back all your gapps please report back here.TQ
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] albertobom:
Got worse now I've black screen. I don't know what went wrong ?

It's possible to flash system.img and data.img can someone please provide it for me, please. I don't know what to do.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
well i dont think there is a data.img,but system.img u still can flash.well u r on which model? c636?if yes then u might be able to dload the b110 files shared by one guy here in this forum but at another thread.i have tried it and it works like a charm but the downside u must use sd card
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] albertobom:
Im using c432 international... I really appreciate if someone could help me on this. Maybe make a system.img through recovery, idk. :(
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
well as for now if u really wanna revive it the fastest way is using funkyhuawei service u can search for the thread here
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] albertobom:
I already did that and didn't work. Flash b126 again and nothing I was on b138 I don't know if it matters.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Dude,

Just install data files from TWRP then flash official recovery and make a reset from official recovery that's it.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] albertobom:
Where to get them my friend?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Find the other thread of all firmware of mate 9, you find those files there
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] albertobom:
Oficial recovery is on the update.zip file correct? I'm downloading it right now. Wish me luck

---------- Post added at 09:43 AM ---------- Previous post was at 09:36 AM ----------

By the way how to enter TWRP properly? Can someone help me out. Thanks guys and sorry for being a pain in the .ss :o
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Pwr button + volume up with unplugged USB cable
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] fily1212:
Hello!

May I ask statistics for screen on time after rooting? This procedure make worse SOT? I want to root for "soft" mod: backup with titanium, ad away ecc...

It's written "v3.0.3-1 - MTP fully working (thanks to [MENTION=4435346]LastStandingDroid[/MENTION]'s helps), included FBE in boardconfig for future decrypt support, some other cleanups" : Also OTG? (in the past I read OTG not working)

Encryption is not supported yet!

This mean trustspace, or vault (to hide photo) or what? Will vault in file manager work?

Thanks!!! :laugh:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Trying to get root

Ok, I'm not going to just ask where a file is, but I will ask a couple questions I hope help others.

Ready to try to obtain root:

1) Question: Downgrade TWRP to 3.0.2.1 from the .3. Hopefully as easy as flashing backwards using TWRP (like flashing forward)?

2) Stuck: Write the superuser and install material.zip to external SD but it is all dr- no w to be found and can't create a new directory like I did on the internal SD. Help. Is there a simple way to w- on external SD?

Just need to be able to write files over to continue after TWRP roll back.

All set with bootloader unlocked and TWRP (although later rev that doesn't support getting root right now.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] zhangyang_haha:
tested, it works on Mate 9 pro. However, Mate9 pro does not support sd card. Cannot get root access. TWRP read everything in the internal storage as random code.........
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
yes everyone android N have this encrypted problem for the moment
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Use USB OTG instead of SD card
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] zhangyang_haha:
Tried, OTG does not work for me. TWRP cannot identify the usb disk. Maybe i should try type-c to otg instead of typec to m-usb to otg
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Worked for me, I purchased 2 ways USB stick from SanDisk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Sorry to ask again. Can I Install the 3.02.1 TWRP from within the 3.0.3.1 TWRP?

Working on OTG since I cannot get onto internal or external SD to backup, install phh superuser

---------- Post added at 02:52 PM ---------- Previous post was at 02:07 PM ----------

Cannot mount or pick OTG. When mounting it stays in screen with no exit unless dismount (only button anywhwere) is pushed.

Same. Known good sticks and microSD in USB adapters.

Will pick up a C to full USB for stick. May also be an issue going USB-C to micros-USB to Regular, e.g., stick.

Still would like to know if backwards TWRP flash OK
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
It's OK
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Thank you.

Seems I have a little more options under 3.0.2-2

Still no recognition of OTG. But do have ability to write backup to externalSD but craps out 8℅ through when generating key. (Encryption issue I assume even though TWRP backup to externalSD.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Disable md5 should make it. Shouldn't have to do with encryption since it's only data partition that's encrypted not any else
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
First, Thank you!!!

Good news it's not encrytion but crapped out at 8% of backing up just data with md5 generation off and about 49GB open room on the externalSD. Was hoping I could just chmod the externalSD but no joy.

I pulled out the externalSD to write superuser-r275.zip and Superuser_2.0_Beta_9.apk, but would feel better if I could do a backup prior to root.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Well, caution to the wind, installed the indicated r275.zip superuser and beta apk and got root. Yay. Cant install BusyBox, however, and cant get root explorer to do root.

---------- Post added 12th January 2017 at 12:16 AM ---------- Previous post was 11th January 2017 at 11:31 PM ----------

Ok. Update on no busybox. No busybox even changing target to a custom path. Update on backup. Still quits around 8℅ with a ForkTar(. Process error 255.

Cannot get any chmods to stick.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
So I have what I would call a temporary root, it will not let me add root and mount to file manager. It will not let me change permissions or install busybox (tried 3 apps including a flash.

Still cannot do a backup in TWRP.

Should I try production pph Superuser​. My preference is chain fire, but it says it needs to install a zip and it may not be compatible. I think the "root" cause is the permissions., buying a c to full size female interface OTG. I don't know how the heck that will help.

Help from you fine folks?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
You have system verify which cause it to stop u from modify it

I don't know why it stops on 8% u have storage left?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Question: Is there a way I can have the system verify why it stops me from modifying it? I really would like to get BusyBox up and running since so many programs needing root need it also.

On last question: I have over 50GB left on externalSD, using no MD5. I don't know why backup can even get to 8% given I can't write any files or chmod myself.

New questions:

a) Is there another Su that works? Systemless?

b) Is there a way to run SElinux permissive, and would it help anyways?

c) How do I get write permissions on external SD and I would think at the location where BusyBox needs to sit? (Custom path does not work)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Yes there's a thread for that

Then I don't know maybe bad storage?

Yes i have chainfire su

Yes u can change se Linux on boot to permissive

Don't know that one seems like there's a bug in twrp maybe? It maybe Unmounts the external storage?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
LastStandingDroid, thank you. I am grasping at straws. Storage fine, works rw fine with Note 4.

Main question: For chainfire su I assume it first asked to install a new binary at start. OK to proceed?

Is there a way to toggle permissive at boot? Init.d, Build.prop? Would it help?

Bonus tangent question: Is there a way to change permissions in adb/fastboot?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Nope chainfire must use different libraries which needs ramdisk unpack.

Yes I use init.d SDcard and apply it on boot just create a sh file with

su

setenforce 0

Yes adb shell

chmod xxxx if you're in recovery else do su first
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] calchung:
Just bought my mate 9 today, and read all posts in this thread.

Thanks all for the hardwork.

Can use Xposed on mate 9 after twrped n rooted?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] albertobom:
Not yet.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] calchung:
Is it because of android n? Or this device only?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] 5[Strogino]:
Please, write small guide to install chainfire su instead of phh

I'm digging some things in Mate 9 but faced with problems.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] fily1212:
Please, someone can answer me?

Thanks ^^
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
I'll do it when I have time

Don't know if SOT is different but I always let phone manager kill apps when screen locks itself. In my recovery usb otg works you could try if you have one and report back.

I doubt vault will be affected of encryption means that u can't encrypt u can't encypt backups I assume. Vault is most likely to woul anyway but I can't tell for sure
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jakeshekukanneh:
Will I be able to install Busybox with this root method?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Depends i have it working without issues
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jakeshekukanneh:
How do you have it working? I tried this root method but can't install busybox, it tells me it was unsuccessful on each try
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Which busybox did you try? I can use jrummy beta and it installs fine
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jakeshekukanneh:
I used the Busybox found in the Play Store, but I'll search for the one you mentioned.

Also, does Viper4Android by guitarheroded work?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
I don't use that one but yes it should I use official one 2.4.0.x so it will work
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jakeshekukanneh:
Do you mean this - the original one?

https://xdaforums.com/showthread.php?t=2191223
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
I mean https://play.google.com/store/apps/details?id=com.jrummy.busybox.installer
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jakeshekukanneh:
Sorry to bother you again, but nothing I do works. Busybox simply won't install

Turns out it won't install because I can't mount /system or even the root "/" filepath
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] me7tarfeek:
Same problem here..... I tried all but non worked....
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] DjBastard:
I have the same problem too, install busy box...

Please help

Thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] 5[Strogino]:
All problems with busybox linked to security.

I tried to modify system and cust partitions, but they reverted back after restart. There is new level of preventing modifications.

But... we have a chance.

There is insecured boot on chinese forum for chinese model on b156 rom.

Forum: http://cn.club.vmall.com/thread-11818713-1-1.html

Certainly, my international model did not boot after using this. So, need confirmation from user of model AL00, then build boot for model L29.

I unpacked boot from my model, changed ro.secure to 0, repacked, flashed, but phone did not boot. Dunno why, maybe toolkit does not support of Kirin.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Same here no issue with installing busybox, I don't know what's wrong with other guys

UPDATE: from BusyBox installer it's saying installed

But from root checker it's saying not installed
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
You have most likely a boot with verify that causes this and or system ro only
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
i cant even install supersu even it says successfully installed but when boot into system i cant update binary
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Count me in too on the no busybox install, tried everything including voodoo and standing on my head (if you knew me these would be a riotous pictures). Followed OP religiously. I'm using the 3 BusyBox install apps, none work to install.

I did get a direct USB-C to USB full size female which does mount properly and has correct permissions. Going into terminal and chmod'ing doesn't work on the internal or external SDcards.

phh Superuser is recognizing apps that call, but, for example in rootexplorer or filemanager I cannot read or create a file or directory for internal and only create new items in eternal SDcard.

Is there a ExternalSD or FolderMount or some other utility to change permissions if that is even the problem?

Does installing the chainfire su binary on top of phh work? Might it help?

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

Is there something we can change/set to stop that verify?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jr313:
We would need a kernel with no Dm-verity check I believe
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Thanks. Appreciate all the efforts. In addition to not installing BusyBox, and inability to write to existing directories on externalSD, I still get kicked out of backup in TWRP at about the 8% point.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
U can't it'll fail

Could u flash zip again and send recovery log here?

Phh patches it else you wouldn't be able to boot. You have system as ro only

Post boot and I can try fix
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] albertobom:
I saw that KangVip in China successfully got root in a custom rom. Maybe we should try to reach him and ask? :o
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
well I tried to find the log after flashing but it was no where to be found,is it because of the encryption made the log cannot be save?or did I*look in a wrong place?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
You could see where it is being saved

Did u try save it?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] mai55:
Not only KangVip.

http://cn.club.vmall.com/forum.php?mod=viewthread&tid=11516646

http://cn.club.vmall.com/thread-11818713-1-1.html
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] albertobom:
We need this information and this devs here on xda fast :o
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
ya i did..finally found it

Spoiler content hidden.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] mai55:
Chinese-English translation of Google

阿狼(Alang)

[Rec firmware] mate 9 has root and unlock the boot partition of the system boot

Many of my friends all feel the mate of the root is somewhat imperfect, the system partition has been locked unable to write something, even in recovery flash the system partition after restart or recovery of the original state.

Himself with many years of Android made firmware experience, re-compiled to unlock the Huawei boot partition and have root, open the system writable mount, you need friends your own get!

Warning:

this firmware only supports the Huawei mate9 B156 version of the system

, and is unlocked only after you can manually brush the boot in the fastboot mode can be decompressed directly after flashing, you can also through twrp recovery to manually flash it.

Finally still can not help sent a lot of“white”package, avoid those Junior players mistake it! The following are three ways that optional one.

A. Have root and s-off(perfect unlock)to unlock the boot. img

1. The phone is official unlock

2. Enter fastboot mode using fastboot flash boot boot_rooted. img. Or use TWRP recovery select Install the img mode to boot. http://pan.baidu.com/share/link?shareid=532497992&uk=3523631441

B. Through TWRP recovery directly restore to the boot partition of the backup file, unzip to the sd card enter the recovery directly restore.

http://pan.baidu.com/share/link?shareid=300905255&uk=3523631441

C. Pure root package, do not brush the boot partition, but joined himself to modify the s-off perfect unlock

Conditions of use and precautions:

1. The phone has been officially unlocked,

2. The phone has been flashed TWRP recovery

3. Into the recovery directly after brushing the root package.

4. A lot of people brush the failures are due to may be their own previous brush root package, This must be the original clean official system can brush success. Note

http://pan.baidu.com/share/link?shareid=9808688&uk=3523631441

Seems to forget to package Superuser. apk to everyone, the other version of superuser there may be a run error if afraid of a problem can be supporting the use of this version

http://pan.baidu.com/share/link?shareid=3303064070&uk=3523631441
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
I

I assume the script is the first two lines? Sorry for the noobish question.

Couple things. init.d support requires busybox in all the utilities I downloaded so it is like a catch 22.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] seniorstew:
So called the support line and they said they don't provide the unlock code.. I have the US Mate 9.. Any help? Thanks!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] smaurice2001:
Wow! rely useful. thanks for your great work
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jr313:
I have the US version also and got my unlock code the next day after following this thread https://xdaforums.com/showthread.php?t=3513755
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] seniorstew:
Did you use the normal way or the for now way?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jr313:
I went to the OP and clicked on the pastebin file and followed that to a T. When you go the website you can choose English or just follow the instructions how he has them. you're going to have e to make an account if you haven't already if not you may have e to wait the till tomorrow or the next day
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
I flashed boot.img of C185B138 on C185B126 and it's enter to bootloop, also FRP lock, bootlader does not accept any command, just relock command for bootloader and when I relocked it, it doesn't accept to unlock it again.

till now I could not find any solution so please do not try to flash boot.img from other version.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
I don't see any logs about the zip flash did u pull log after flash the zip?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] lorenzw:
I have mate 9 AL00 and i flashing twrp.v3.0.3-1 but install superuser r275 failed (error 7)

After install of TWRP needs it to reboot on twrp? I did not make it
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tkkg1994:
You need to use 3.0.2-2 as mentioned in OP for compatibility of sh (which gets replaced by mksh in 7.1 tree) hence it's not working anymore on latest source
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Interestingly enough using chainfire's FlashFire I did a backup. It fails after saving Data but saving data was the important part to me.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] fix-this!:
i can confirm busybox installs but disappears after reboot. same with adaway, doesnt stick. we need a custom kernel to enable read write.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
I can't get busybox to install even temporarily. That would allow the use if multiple utilities prior to reboot.