yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Thankyou for the info. So I should turn over to that thread right?

Btw I am facing an issue. I have uninstalled Huawei backup app after I bought the phone. Now I cant reinstall neither from playstore nor from apk. I need it for Hisuite to work (as we discussed for google play services and all). The error showing is in Playstore: "error occured 505", in apk: "the package conflicts with an existing package with same name". I cant find any app even in the disable category. Please help.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
This one https://play.google.com/store/apps/details?id=com.huawei.KoBackup ?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
yes! and also the latest apk from apk mirror as well. :crying:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Can you check in

/system/delapp/HwBackup_Local

?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
I tried with an old apk and it got installed. For now I am able to do the backup to pc. But when I tried to update that apk through playstore same old error reappears.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
It's weird though. We shouldn't be able to uninstall it as it resides in /system, yet we can.

Same goes for Compass. I did notice that Backup doesn't have the same icon as the one in the Playstore.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Also I cant find anything called /system/ in my phone. I am using default file manager to browse.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Ah, yeah, you need a root file manager for that :P

I think ES file explorer can do root.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
But I haven't rooted yet. Anyway I'll try rooting after clearing some doubts from you.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bRkiX:
just to make sure..

i have c432 with 156 build. (i have 10x zoom) but phone.. about shows build 126

upgraded from 126 to 156 via firmwarefinder..

am i okay to install decrypted boot for 156 version?

thnx
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Please crosscheck my step by step process as I understood from this thread. (sorry for some dumb questions as I am really inexperienced. )

Downloads:

1) TWRP & Superuser from 1st post (and PHH superuser from appstore after everything else or should I use provided beta?????)

2) Decrypted boot image for MHA-L29C185B158 (the one you provided)

3) Public and HW images (for missing Google & Huawei apps??)- I should download it after renaming it to my country version, right?

Process

1) Unlock bootloader.

2) Install TWRP using fastboot.

++Then as you said I should take a boot backup (Just in case) using TWRP right? How to do that?++

3) Boot into TWRP (volume up+power) Go to Wipe, Format Data, then type in yes. Then reboot recovery.- How to reboot recovery???

4)after I should flash decrypted image followed by superuser. --How to do this? By putting them in SD card?

5) [[Boot up fully. Go into the Play Store and download PHH Superuser. Or you can download the newer beta here. Install it like any other apk]]:---should I goto playstore or install apk?

I heard after rebooting no keyboards were available. So in order to rectify this issue at what stage should I flash PUBLIC and then HW?

In the 7th step it is written to "Take a backup of current ROM using TWRP". What is the pupose?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Yes, it should be ok.

Can you check what Kernel version in about says?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bRkiX:
kernel version: 4.1.18-g8704913 wed. jan. 18 2017

january 1st andeoid security patch.

so it is definitely updated only build number is wrong as it seems
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
pre 1. step, backup apps using HiSuite (Play store tends to disappear after you unlock bootloader, but ajsmsg has some gapps you can flash IF you need it. Shouldn't need if you backup apps using HiSuite).

Pre 2. step, put a micro sd in your phone. When you wipe data, your internal memory gets wiped too. So no point in storing stuff there now.

Pre 3. Prepare said micro sdcard with the decrypted boot, superuser.zip, HW zip and Public zip.

Downloads

1. Get either after you're done with everything. For the beta linked in this thread you need to go into Advanced settings - security and allow Unknown Sources then use File manager to install it. (Or download from this

thread after you've enabled unknown sources.

2. Correct

3. :

Here's HW zip for your phone build http://update.hicloud.com:8180/TDS/...f1/full/hw/meafnaf/update_full_hw_meafnaf.zip

and Public zip for your phone build http://update.hicloud.com:8180/TDS/...99/f1/full/public/update_data_full_public.zip

Process:

1. Correct (/data will wipe after you're done with this step)

2. correct (boot into fastboot mode again and 'fastboot flash recovery twrp.img')

To backup boot, simply go to Backup in TWRP and deselect everything but Boot. Select your micro sdcard as storage.

3. Correct. To reboot, do not push Reboot from the format screen. Go back to the TWRP start menu, hit Reboot there and select Reboot Recovery.

4. Go to Install, then tap Install Image at the bottom and select your decrypted boot image, then select 'boot' in the screen that follows. You might need to switch storage here to micro sdcard. Then when it's done, go back and select Install Zip at the bottom and select superuser.zip then install it.

5. Boot up fully yes. If no keyboard is present you could just skip the setup wizard and do that stuff later. I had no problems with missing keyboards.

Reboot back to TWRP and flash (Install) the Public zip first, then the HW zip.

Reboot again and add your Gmail account etc. Now you can install PHH's Superuser from either this thread or search for it in the Play Store.

If your play store is missing, restore it from HiSuite.

You should probably backup at least /data and /system in TWRP after you're done.

Just in case something should happen in the future.

---------- Post added at 12:28 AM ---------- Previous post was at 12:24 AM ----------

That's weird though.

But should be OK since boot is b156.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Thank you very much. But I am not able to unlock bootloader I typed in fastboot "fastboot devices" as in another mate 9 thread. Nothing happened. Then typed "fastboot device" and I am getting "waiting for any device". Please help
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
did you boot into fastboot?did you installed the latest adb driver?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
i downloaded and installed "adb&fastboot 1.4.2" from provided link. Am I missing something?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
did u boot into fastboot in your phone?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
No i didnt, do I need to do that?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
of coz u need to do that if not how do you push whatever u want into the phone?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Thankyou.

Now I am stuck with twrp. Getting "error: cannot load 'twrp-3.0.2-2-hi3660.img'". My phone is in fastboot mode, Phone & FRP unlocked. The image file provided in the first post is the one I am using. I even rename as above according to my file name.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
u dont need to rename it u just need to place the image in the correct folder.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
after referring to some websites I figured that thing out. For people like me without step by step instructions this is an impossible task. Thankyou for your support.

How to boot into TWRP now?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
power button + vol up without any usb cable plug in. hold until u see the huawei logo then release all button
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Thankyou everyone who helped me.

So now I have root, can I restore data from Hisuite backup?? Does it affect my root in any way. Any recommended root apps and suggestions to stay secure. ?

---------- Post added at 04:20 AM ---------- Previous post was at 04:17 AM ----------

Thankyou very much. Couldnt have done it without your help.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] xfive420:
After weeks of research and deliberation, I decided not to root. I didn't want to decrypt as it seems to cause all kinds of annoying problems, and while rooting without decrypting would allow me to backup and restore apps in TiBU, I still would not be able to use all features nor bypass tethering restrictions. I discovered that without root in Android 7.0 I can freeze system apps natively, plus I can still take app backups with hisuite or helium. I can't use TiBU profiles but at least my financial apps will continue to work. Maybe when we can get magisk or xposed working I'll take the plunge but until then I see very little benefit to rooting.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I think the only app that stops working when you have root is Android Pay. And Pokémon Go apparently. I'm sure there are more.

But I guess, if you don't have any use for root besides titanium backup there's no real reason to root.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
I found this blurb while googling:

I had the same error message, but these answers did not help. On a 4.3 nexus 7, I was using a user who was NOT the owner. I had uninstalled the older version but I kept getting the same message.

Solution: I had to login as the owner and go to Settings -> Apps, then swipe to the All tab. Scroll down to the very end of the list where the old versions are listed with a mark 'not installed'. Select it and press the 'settings' button in the top right corner and finally 'uninstall for all users'
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Huawei added their own App manager for this, so you can't do that. I have the same with the HwMirror app. I uninstalled it but it's still in /system/delapp/, so I'm guessing they're just symlinked or something. Because I can't find any other /data installed version of Backup.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Chris4877:
In Desperate Need of Help!

Hello, and greetings from Sydney, Australia! :D

My device and build are as follows: MHA-L09C346B136 (Huawei Mate 9, Single SIM, Vodafone Australia).

Please Note: Vodafone Australia officially began offering the Huawei Mate 9 only on 2017-02-06, and I guess that may be one reason why you don't yet have a decrypted boot image for this particular build. (Purely my own opinion, of course). Another possible reason might be that Australia is a bit of a backwater, commercially speaking, which is probably why most publicly available Android builds for this or any other make of smartphone are usually only suitable for devices supplied by carriers from the US, Canada, the UK, Europe or Asia. (Again, purely my own opinion). Nevertheless, my experience of at least 7 years tells me that it is a fact that it's very difficult, if not impossible, to find genuine, official builds for Australia or New Zealand for any device other than Samsung.

This is my current situation:

Bootloader is unlocked (code obtained with DC-Unlocker 2 Client)

TWRP (twrp-3.0.2-2-hi3660.img), is installed through fastboot.

SuperSU Pro, (all paid for, years ago), refuses to install properly, either through TWRP or through Google Play Store. (Whenever I open the SuperSU Pro app, I get a message saying that the SuperSU binary needs to be updated, but I can't seem to update it, regardless of which of the suggested methods I try).

Also, BusyBox Pro (by stericson), (also paid for, years ago), refuses to install, either through Google Play Store or through TWRP.

I did manage to install phh-superuser, but when I found that I couldn't get stericson's BusyBox Pro to install, I uninstalled it and attempted (unsuccessfully) to replace it with SuperSU Pro.

None of the decrypted boot images at the link quoted above looks anything like my particular build.

How can I go about obtaining a decrypted boot image suitable for my device?

If there is anything you need me to supply, (e.g., files, information, etc.), could you please let me know, (either in this thread, or by PM)?

For your information, I have previously owned and successfully rooted the following devices:

HTC Desire HD

Samsung Galaxy Note II

Samsung Galaxy Note 4

However, I'm totally at a loss with this Huawei: I simply have no idea what else to try.

Many thanks in advance for your help!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
If you don't have a decrypted boot.img for your phone you can flash this superuser zip in twrp on a stock boot. You have to wipe data first then flash superuser zip. It will decrypt data and root. I have copied and pasted the post below. Give thanks to the original poster

Or try this with a stock boot (not decrypted) https://www.dropbox.com/s/i6oh90c515gsjkd/SuperRoot_noverity_encryptable.zip?dl=0
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
SuperSU Systemless install (which is default), and Magisk Systemless (also default) won't install because Huawei didn't add loop support in the kernel. And both of those require loop support to work. System install just bricks /system for some reason. At least I can't get any ISO to mount as loop... And SuperSu and Magisk probably just use mount -o loop to mount.

You can install Stericsons BusyBox by mounting /system as read-write manually "mount -o rw,remount /system", I belive it uses the other "mount -o remount,rw /system" which just says /system is busy.

To fully "uninstall" PHH you can simply reflash your stock boot image.

But now to your problem. You can either backup your stock boot through TWRP and post it here, or use the highly untested https://www.dropbox.com/s/i6oh90c515gsjkd/SuperRoot_noverity_encryptable.zip?dl=0

(Only I, 5[Strogino] and eddmecha has used it so far, but it does work for us)

If you choose the SuperRoot you still need to follow the steps in first post, but instead of flashing decrypted boot and superuser.zip you just flash SuperRoot.

The only problem is, when you wipe data your /data/hw_init folder goes with the wipe, and there is no HW and Public zips for your model. Stuff tends to bug out a bit without that folder. You could backup your current /data/hw_init/ folder and set permissions manually after you have decrypted. I would probably do that.

Or you could skip decrypting (then SuperRoot's config.txt needs to be changed from nocrypt to crypt.) and lose the ability to backup /data in twrp.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] henrik.dk:
in other thread I could root the phone and it doesn't mention descrypt image. What is the difference? thanks.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Encryption on /data = no /data backup in TWRP.

No encryption on /data = backup of /data in TWRP. That's the difference :)

You can backup apps and such just fine without decryption, but no 1:1 full backup of the /data partition.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Chris4877:
Is the encryption of the /data partition the same as setting a restore password for a HiSuite backup?

Are these two things related in some way?

How does an encrypted /data partition work, anyway?

Is it something like Microsoft's BitLocker on NTFS?

Also, while we're on the topic of encryption, I have no password, PIN or fingerprint set on my phone, because it's NEVER out of my sight, (that is, except when it's in my pocket). ;)

Is that related in any way to the encryption of the /data partition?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Good lecture: https://source.android.com/security/encryption/file-based.html

I belive Huawei modified it some though, as it would require pin, password or fingerprint to fully encrypt. The flag in the fstab is different too. In AOSP it's "fileencryption", in emui5 it's "fileencryptioninline". I guess we'll find out when/if we get sources.

I guess it could be full-disk encryption too. But weird that they'd call it fileencryptioninline if it was.

That can be enabled even if you have no password/pin set.

Or it's a mix between the two.

https://source.android.com/security/encryption/full-disk.html
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Chris4877:
OK, thank you for that. :svetius: :)

I guess I've got quite a bit of reading to do! :confused:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
hi [MENTION=2247733]ante0[/MENTION] just to update you,the superRoot works like a charm on AL00c00B173.and the best thing is i can flash both the data zips without error 7..thanks for the help.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
So in other phones like Samsung when we root by installing TWRP and use superSU which type is happening? Encryption type or non encryption type?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
That depends. In most cases TWRP can handle the encryption by itself.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Back in the day I rooted one galaxy phone which was pretty easy (using odin-twrp-supersu). I was able to take nandroid backups as well. So you meant to say this issue is because Huawei made it difficult to root their phone?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Yeah. Well, they make it more difficult without source code.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
I see. Once TWRP officially available it'll like any other phones right(i meant TWRP will handle encryption with the source code and all)?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Any other device TWRP uses your set pin/password to decrypt, or if you have none set it uses the default password "default_password". This doesn't seem to be the way with Mate 9. I'm sure someone will figure it out before we get sources... I hope anyway.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Can this method done without flashing decrypted boot.img?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
from what I read from this thread it is possible but limited. I remember someone reporting some weird issues with titanium backup
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
yes it is u can rw system n get busybox n adawy working its just that ur /data is encrypted when u r in twrp

even when ur decrypted tibu still wont work well this is due to phh superuser.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
It's work for adway, but when I make a phone restart I should configure the adway again, same for busybox.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
well not for me previously when i was encrypted the settings sticks even i reboot multiple times..hmmm may i ask u flssh which twrp n root.zip?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
Same files on the first OP, unless there was an update on the files
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
'Don't work well' means? I did the backup and seems all the datas both system and others are bacjed up. I'll be thankful if you can explain clearly the limitations of these type of rooting considering my 0 experience in this area.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You don't need to decrypt to write to /system. But you should probably remove verity first.

And for Stericson busybox you need to remount system manually.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Abumarf:
[MENTION=1397125]ajsmsg78[/MENTION] I flashed both the public and HW zips in that order but I don't have the system update in the settings or as an app. What should I do?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
I am really not a fan of black bg on pull down quick settings in mate 9. Is there any hope for me to theme it? EMUI 4 stock allowed that but not EMUI 5.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I guess you could mod the framework. Or check the theme section on the Mate 9 part of xda. Not sure if any of those does that
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Noname2012:
Guys I think we need a Video Tutorial.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Try wiping "dalvik/ART cache" and "cache" in TWRP.

When Settings app crashes etc that seems to fix it.

Also, you did flash the correct Public and HW for your phone model, right?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Abumarf:
I cleared dalvik and cache. I'm not entirely sure about the Public and HW being correct. I used ones supplied by you earlier on in the forum. I wasn't able to find the zips. If you could help me out, I have a C567B138
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Ah, none exist for C567B138...

Do this. Open a root enabled file explorer (Like Root Explorer or ES File manager, for ES tap the "hamburger" menu button and click on Root), go to /data/hw_init/ and open dataversion.txt.

Then change the model it to MHA-L29C567B138

It should say ro.confg.hw_userdataversion=MHA-L29C567B138_DATA_hw_usa

And leave an empty row below that line.

Then reboot.

If it works I finally know what that text file does xD

Actually, can you link the post you took the files from?

It might be the wrong region...

Do you see CNN and Amazon in your app drawer?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
i am very happy that I spent 4 days rooting my phone. i learned a lot and my phone works great..
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Abumarf:
This is the one. I do have the CNN and Amazon apps here.

I went ahead and changed it in the hwinit file. It stays the same after reboot but seems to do nothing at all.

https://drive.google.com/file/d/0BwI6DTQJV37OeFktZDdnZmI2a1U/view?usp=drivesdk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Oh, that one.

Yeah thats for EU so probably does cause problems.

For one,

/data/hw_init/cust/hw/ needs a usa folder in it, but yours probably named eu now?

same in

/data/hw_init/version/special_cust/MHA-L29/hw/

I guess you could rename those to usa and then open dataversion.txt and change that line of text to your version.

Or just open dataversion.txt and change that to L29C567B138 and reboot.

If you notice more apps missing, like the ones in the eu/app/ folders you probably will have to rename eu to usa.

It's sad there is no data and public for C567B138, but there is for B167.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Abumarf:
You're a genius!!!! Thank you very very much. After renaming everything to MHAL29 and USA instead of MHAL09 and eu plus changing the dataversion, everything works fine. I applaud you my good sir!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Nice! The .txt seem to do nothing. Just changed it myself. It actually said B138 to begin with but im on B156. So the folders were probably the cause of your problem :)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Abumarf:
I have one more question for you. I'm trying to quick update to the B167. It takes me to TWRP and doesn't do anything. I couldn't find the update file and when I reboot I get the message "System update failed last time". What is the issue?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You need to flash stock recovery to update. I would think the recovery is the same for all models, but I will check if it is. So hold on if you don't have a backup of stock which you most likely not :P

Will update you in 45 mins or so.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] KOLIOSIS:
Yeah, I could use a copy of the stock recovery as well,if possible.

Would be very much appreciated (Model # MHAL29C567).