yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] badnaffy:
https://emui.huawei.com/en/plugin/unlock/detail

You have to register you new.. (do not take your existing ID if already have an existing, make really a new, and important leave Hong Kong as location). After completion of the registration copy and paste the above page again insert and you come directly on the Unlock side. Enter the data and the unlock code is displayed immediately.

Sorry for my bad English.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
If I pick TWRP 3.0.3-1, which SU do I use?

Also, anyone know why my phone fails to reset after unlocking my bootloader?

It goes to 1%, then fails. The only thing it removes is my Play Store (Which I backed up) so easily recoverable.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] mai55:
register and log https://emui.huawei.com/en/plugin/unlock/index
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
U must use 3.0.2
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Yeah, that's what I did. Was just wondering if it was possible since a few things were fixed in that release. Not that it really matters, not much yet to flash anyway xD
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] gm007:
Is it possible to flash update.zip in twrp or just hw_data.zip?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] 5[Strogino]:
Possible, but not for update.app file inside of update.zip. Everything else could be flashed.

There are some errors while flashing cause lack of kernel source code. I wrote to support and to additional email, but no success. Support is absolutely useless. They are working by clear instructions. No instruction = no answer.

UPDATE:

Please, use email from attached archive to request open source code for Mate 9 / Mate 9 Pro. May be, we can force Huawei to publish kernel source quickly.

And use subject "Open Source Codes Issue"

https://xdaforums.com/attachment.php?attachmentid=4027420&stc=1&d=1486111703
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jcrompton:
Return to Stock for Return

Sorry if this has been asked and answered .... But I wanted to be sure from those that have been at this for longer how easy it is to reload the stock recovery and re-lock the bootloader for return to Seller. ???

I just got my Mate 9 this AM from Amazon and they have a generous return policy ... I just wanna be sure I can make it stock!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Hi, is there a reason (apologies if I've missed something obvious here...) why the flashed TWRP doesn't stick? Bootloader is unlocked, I ensure debuggin mode activated, it flashes without error but when I reboot to recovery it's still the stock one? I have L09 international version. Tried Twrp-3.0.3-1 and 3.0.2-2

Any help appreciated!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] htcdesire-hd:
How to backup with TWRP

Hi all,

sorry if my question already posed but how can i backup with TWRP without errors?

I tried to install TWRP 3.0.3-1 but while backup data there always occur the error message "creatTarFork() process ended with ERROR: 255"...

How can i solve this and how can i backup my Mate 9 reliably with TWRP?

Thank you!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
I played with permissions in SolidExplorer but only could backup to the root of the ExternalSD (sometimes) and a OTG USB stick where I transferred files that I copied to the computer and back to the stick. Rumor: I understand that making TB a system app helps also.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] gm007:
I want to know this as well.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tkkg1994:
You can backup all partitions except /data

Since it's encrypted and yet can't be read you will get this error trying to backup data

Sent from my SuperMan powered SM-G930F
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] gm007:
So till now there is no way to backup data even with boot.img floating around?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] htcdesire-hd:
Thank you for the answer...

Do i understand right, if i restore everything via TWRP except of data partition, everything works, but all user data are wiped an when restoring apps and settings via Titanium Backup there no problems and data loss?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
If you don't care about root you can back up your data. How I did it is I backed up my stock rom when I got the phone (everything except data) Then I modded the stock boot.img to not force encryption which I can share if you guys want. Then in TWRP I went to Wipe then Format data and typed in yes. That will decrypt your data. Then I restored the stock rom and flashed the decrypted boot.img. Then I was decrypted, twrp could see my internal storage and was able to back up data. The key is to never boot up with an encrypted boot.img so you stay decrypted.

HRT Team (Kangvip) modded the boot.img with root but they never disabled encryption. (sometimes they just don't think) I tried modding their boot.img but because it's "wrrapped" with SuperSU I got errors unpacking it. You can't even unpack their system.img without errors. If I could find a way to properly unpack it then I can make it not force encryption and still have root which is what we need right now. Then everyone can just flash that boot.img and stay decrypted. Then twrp would work fine until we have a build that supports encryption.

Android is open source and it always bugs me when people don't share their ways of doing things.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] 5[Strogino]:
Please share your experience about deactivating encryption.

Is it decrypted boot? https://xdaforums.com/mate-9/development/custom-roms-t3532039/post70960593#post70960593

Update:
[MENTION=1397125]ajsmsg78[/MENTION]

Thank you very much for your finding.

I unpacked your boot and found what can turn encryption off. I thought about attribute in fstab, but i could not get it right way.

Now i've got unencrypted /data and TWRP that able to save settings, view internal /sdcard partition without gibberish symbols)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
In the ramdisk fstab.hi3660 edit the line that says:

/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,discard,inline_data,inline_xattr

wait,check,fileencryptioninline

Change the fileencryptioninline to encryptable. Then do the same with the .gz file in the split_img in Linux.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vwdubb:
Forgive me if this is the wrong place to post and/or off topic but has anyone played with DPI? 367 is beautiful and doesn't seem to break anything.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
So is there a downloadable boot.img with the change incorporated. If I just received a new Mate 9 after unlocking the Bootloader would I fastboot this boot.img and the rayglobe twrp?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
I run my DPI at 320 and everything works. The setting for DPI is also in developer options under Smallest Width. The higher you go the lower the DPI. It's built into Nougat.

Fastboot flash the TWRP from this thread (Rayglobe's is for the Mate 9 Pro) then boot into TWRP, Wipe Data, then flash the boot.img from within TWRP (choose install image instead of install zip)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
btw is root still intact after flashing the patched boot.img?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
You can't have root and the decrpyted boot.img at the same time yet. You can either flash the rooted boot or the decrypted boot. I'm working on that.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
i see ok,i guess everybody here is waiting for your good news :laugh: thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] 5[Strogino]:
What's problem?

I have root and decrypted boot/data both.

P.s. info:

- phh root and superuser

- decrypted boot with encryptable in fstab

- TWRP 3.0.3-rayglobe

Only one version of TWRP, that installs phhroot without errors and has working Mtp.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
by that u mean you can see all your files in twrp?bcoz i m using rayglobe's twrp n i have phh root but i have an encrypted data as well as cannot make a full nandroid backup.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] opasha:
phh root and his superuser is not FULL root. That's the problem. :)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] 5[Strogino]:
Yes. I can see all files in TWRP.

I have root and using su in terminal.

---------- Post added at 01:08 PM ---------- Previous post was at 01:07 PM ----------

How to check full Root? ;)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] opasha:
So, the issue with phh was that we could not write anything to system. And even if we could modify anything within TWRP file manager, nothing would stick after a reboot. Also, the same thing would occur for adaway and some other root programs....after the app gets closed or after a few hours, it would stop working and only a reboot would fix it temporarily. FULL root is where everything sticks despite reboots and also allows you to literally read/WRITE in every file category...most importantly system/app where YOUTUBE etc is located if you are trying to use adfree youtube, etc.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] 5[Strogino]:
Before reboot and after...

Notice file hello.opasha)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
well for me i would try to install busy box and also try to create a file in /system if partial root it would failed,well this is a basic thing if you didnt know how to check full root the manual way i dont think you deserve to commment on others :silly::laugh:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] opasha:
That's very interesting. You seem to have full root for sure since you can write to system. Have you tried to add a modified app to system/app and see if it stays after reboot? Youtube is the one that always comes back.

I wonder what the differences are. Myself and other have followed the OP's instruction for root multiple times and attained our temporary root that allows us to use titanium etc, but apps like adaway lose their ability even when modifying to vendor/etc/hosts for custom target. Very very strange behavior.

Maybe a dev can chime in and explain the differences? I'm stumped since you have full root. Was your boot.img stock when you rooted with phh superuser.zip and his apk? Mine was. Flashing the modified boot.img in this thread gave me full root only.

EDIT: as mentioned above, busybox is necessary (thanks for the reminder bro, that totally slipped my mind!). See if you can install stephen's busybox...that will 100% fail...then try meefik's busybox. If that fails, then you definitely don't have full root.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] 5[Strogino]:
The key thing - phhroot zip archive, that installs root.

It is more powerful that you can see at first sight.

Tkkg1994 found that it can be used for root

Alan (from Chinese forum) modified it to turn dm-verity off (system read/write)

Ajmsg78 found how decrypt /data in boot

Rayglobe built TWRP, that can install phhroot without errors and able to connect by Mtp

I did nothing special, just fused this knowledge and checked.

https://yadi.sk/d/Pbef4xiw3Dt3nd

https://yadi.sk/d/ugvNUVIU3Dt43F

First you need flash stock Boot

Then TWRP and superuser_noverity_encryptable

Then if you want decrypt data, you should format data and don't use stock Boot.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I, for one, can't get this to install

Flash stock Boot.

Flash TWRP 3.0.3 Rayglobe,

install superuser_noverity = Error 1
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
I know that Rayglobe TWRP was supposed to be cross compatible. Not to muck up this thread more, is there a more appropriate TWRP for the non-pro mate.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
I tried Rayglobe's and couldn't mount anything. Use the generic one in this thread. I could not install Phh Superuser with either TWRP, just gives an error.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] 5[Strogino]:
What version do you have? Settings / About phone / Build number
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
MHA-L29B432C138, but I think something's up with my boot. Flashed back stock from update.app (Full) now and I go straight to eRecovery. Yesterday I only tried with my Twrp backup (which should be stock). Could FULL vs OTA update.app have anything to do with it? I did recover from a brick using funkyHuawei before, and not sure if that installs full or OTA.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] 5[Strogino]:
Hmm, very strange.

I have same version and boot, I flashed twrp and superuser successfully. I got error 1 on other twrp versions.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I'm dumb. Of course it's not stock that I have, I backed it up before flashing the Kang boot. So mines phh patched already...

But it's weird that I can't flash back stock from the firmware update without going straight to eRecovery

Edit: Figured it out. Gotta flash from fastboot, else it won't work.

Edit 2: Installed fine now, but bootloops and back to eRecovery with "something very bad happened to your phone" xD

Oh well
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
Thanks for the info. That TWRP installs fine. MTP works. The Superroot file installs fine. Data is decrypted. When I restart there is no root. When I install SuperSU it complains that the SuperSU Binary needs to be updated but that fails. So it's like partial root.

EDIT: Got everything working. I'm gonna make a How To thread with the proper order to root with each file everyone needs. Thanks.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Make it fast! ??

Mine actually booted once with those files, then I rebooted and got thrown to eRecovery for some reason. I probably did something wrong.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Hi there, apologies for the duplicated-posting in this and other threads, but I'm checking to see if anyone who has rooted with the Mate9_test.img has had any weird issues with the camera? I've factory reset and reflashed my firmware MHA-L09C432B138 via Funky Huawei, but the Night Shot mode of my camera crashes on "processing" - though all other modes/functions seem to work without issue?

I am tempted to try flash an alternative way from the Mate9_test.img / phh root (mate_9_pro_root.zip flashed in TWRP) and instead try flash the patched boot.img?

Any suggestions would be welcomed!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] mai55:
KangVIP posted today SuperSU

Donwload: https://drive.google.com/file/d/0BxUuiDq_FRA_N183QjhZa1hWT1k/view?usp=sharing
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
That's the SuperSU you can download from the play store.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
There must be a technical reason why AJ uses a different superuser app. There were problems on accessing the internal sd. Maybe we can later exchange it with supersu.

My device: Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] xkeyblackx:
I have flashd the twrp 3.0.2-1 but when i trie to install the su.zip it start to install but bevor finish device reboot and i have no root can anyone help me pls?

Gesendet von meinem MHA-L09 mit Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
if it reboot before finish means its not compatible thats y u don have root after boot into system
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] xkeyblackx:
Ok thanks

U mean the su.zip istn compatible?

Gesendet von meinem MHA-L09 mit Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
its either the zip not compatible with your twrp n vice versa,
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] xkeyblackx:
How i can find a compatible version?

Gesendet von meinem MHA-L09 mit Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
actually u can check back the OP first post,he stated clearly which zip should use.good luck

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

just use the r275 zip with 3.0.2.2 twrp this should get u root access,but bear in mind this is not fully root,u cant install adaway/or busybox
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
AJ stated in full root post to use twrp 3022 and his super user zip for phh superuser. I have used these to decrypt data and gain full root and install busybox. Can't post link but look for full root post
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] htcdesire-hd:
Today I installed B156 on my MHA-L09C432 and though I followed the instructions I am not able to boot into TWRP-Recovery (neither 3.0.3-1 nor 3.0.2-1/2).

There always appears the standard Huawei recovery...

Does anyone else have this problem with this version?

How can I solve this problem?

Thank you for your help in advance!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
You may have flashed the stock recovery with the update. May have to unlock bootloader and fastboot flash twrp again

Also how did you install B156, was it OTA or firmware finder or Funkyhuawei? Thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
If MTP was working on the 3.0.2-2 version that would be great. Is there any way of fixing it?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] htcdesire-hd:
I installed this version via FunkyHuawei after much troubles...

Bootloader was unlocked and I tried to flash it multiple times with usb connected and not in different variations but its still not booting :eek:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Remove USB cable, it goes to eRecovery if you have USB in and use Volume Up + power. Alternative way to keep cable in is to use adb reboot recovery.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] htcdesire-hd:
Thank you very much, worked with ADB :)

After all i can set up my phone proper!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Androwar:
Flashing via funkyhuawei licks the bootloader ,;)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] wrecklesswun:
it would seem this doesn't work on c56 version.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] s2pfie:
hi everyone. please help..i installed twrp and wiped internal storage. now i got my phone bricked. do i need to do the whole process in this thread https://xdaforums.com/mate-9/how-to/guide-rebrand-chinese-al00-mate9-to-t3554656 of just flash some of the files in twrp? thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
firstly which build is ur r on ? L29CxxxBxxx?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] s2pfie:
L29c636b158
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
if thats the case,just dl the c636b110 dload back to b110 then update to b158 then unlock bl n flash twrp.remember not to wipe/format anything in twrp unless u have the patched boot.img flsshed.bcoz when u format every thing will be gone.but u can factory reset thru system settigs
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] s2pfie:
thank you for fast response. do I still need to flash hw_data also?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] opasha:
Ah, I see. Thank you for the explanation. So root is limited until a kernel source becomes available. Any guesses until when that may or may not be possible?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tkkg1994:
Try to request kernel source from huawei. That's what I have done already.

The more people write them the better!

Sent from my SuperMan powered SM-G930F
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] opasha:
What do you recommend writing and to which email? The same Huawei email we have used to request our bootloader unlock?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] hackslash:
Getting MTP to work will be tricky (I think so).

Huawei is now using configfs to manage all usb devices using the usb_gadget implementation. Instead of writing to /sys/class/android_usb... where TWRP generally searches for, the whole bus files are written to /config/usb_gadget/g1.

It's going to be a game (since I'm trying to figure out the same with Honor 8) but a one we can definitely win. (Check the .rc file here https://github.com/Honor8Dev/twrp_d...lob/master/recovery/root/init.usb.configfs.rc). The only thing is to add support for configfs in TWRP (maybe?).
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] opasha:
Is there any way to modify/remove/rename/install to system apps yet? I want to delete youtube.apk and install youtube with built in adaway. Only way to do this is use this apk within system/app or to have xposed (obviously not available yet). Any advice is appreciated. Thanks.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tkkg1994:
That I sadly don't know. On samsung we have a website for requesting source code. On huawei no idea. I just wrote an email as well

I will try to get mtp working for our device, that would be awesome and a big step forward! :)

Yes they use the new partitions... need to rethink everything

You can do that all in TWRP. Everything changed in twrp will stay as you changed it. You can do that under advanced option file manager
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] opasha:
Thanks for the reply. I thought so. :good:

Can you or anyone tell me what differences there would be at using phh superuser vs chainfire? Should be no difference right?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] hackslash:
Obviously not that big difference if your use is general. phh works fine here without any problem.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] opasha:
Good to know. Any advice on a youtube ad-free workaround? They don't seem to understand what I'm talking about here: http://xdaforums.com/android/apps-g...ree-youtube-apks-t3449312/page40#post70073469
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] schmulx:
Installing TWRP worked well. Then I wiped everything and flashed via fastboot recovery, boot, vendor and system. After the reboot it seems, that nothing happens and the device strated with the old version, that was installed before.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tkkg1994:
That would be what you want. Since you did nothing to the /data partition all will stay the same. You just reflashed all stock files
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] schmulx:
I am to dumb die this. I tried to change my device to a European Version, which not worked completely. So I tried to unlock the bootloader and Flash a European Rom. That didn't work, so I tried to wipe the phone with TWRP and flash the four Images, to get a clean version. What should I had to do to manage this?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tkkg1994:
Many changes are in cust and under data as well

Sent from my SuperMan powered SM-G930F
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
P9 lite has it. It needs to add thus to init.rc as well

Still can't get it recognised ?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Well yeah

Cust has been shrinked

They added a vendor partition (which cause miss fortune) for some apps in recovery.

They also added product and version which wasn't really neede if u ask me.

They messed with the system completely. Split it up in more peacep then needed. What's next one partition for every file ðŸ˜‘ man (@.@)/ is what my brain says

The vendor block might be N related since I seen thus on nexus. If I ain't wrong.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] lanfur:
only root

hallo, i have a question

is it possible to root the mate 9 without unlock the bootloader and install the recovery (TWRP)

only a simple root..

thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] duraaraa:
Not possible :(