yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
It won't help you. You can't backup anything in data until you have decrypted. Anyway, it's in /data/hw_init/

---------- Post added at 08:23 AM ---------- Previous post was at 08:19 AM ----------

And you flash BOTH update_data_full_public.zip and update_full_hw_<your region>.zip, right?

I'm still thinking something is wrong with the boot, but it's strange that it doesn't affect anything else in the camera.

When I try to repack the L09C432B156 boot it tells me it's a Loki image. That's the first I've seen so far.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Yeah flashed both files in the right order and used update_full_hw_eu (for my MHA-L09C432 - UK purchased).

Is it with me trying different boot img's (kernels)? As yeah I don't believe it's hardware fault with it working before and with other modes working without issue. Can't be software as I've got the right version for my phone.

Is there any other information I can provide, any more logcats? Any other steps to take, like reflash firmware/factory resets/different boot.img to try?

Really do appreciate all the help received from you guys
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Try the L29C432b158, it's in op.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
You mean try the full firmware or try just the boot.img from it?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Boot
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Ok will do.

Do I need to reflash and start a fresh, or could I just flash the boot from twrp?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Nah, just flash it. It's just to see if something's wrong with your boot. Might have to let you flash stock L09 boot then reboot recovery and dump it in TWRP and post here so I can rebuild, as the boot from the firmware is a Loki image for some reason. After you've done that you can reflash decrypted boot so you can use your phone decrypted. If you boot with an encrypted boot it will re-encrypt /data which means you'd have to format data again. But we can do that tonight if L29 works better for you, I'm at work now.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Ok many thanks.

So I'm currently unencrypted (going into security settings allows me to Encrypt if I chose) and so if I just reboot to two and flash the boot img, will it just boot up as normal? I at work and need my phone, is there any chance of a bootloop at all? Lol
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Worst case you get a bootloop, just go back to twrp and flash back your old boot. Or wait til you get home :) But yeah, if you flash a decrypted boot you stay decrypted.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Will try it now me thinks.

Did you mean to say 138 or 156?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
https://www.androidfilehost.com/?fid=817550096634747353

You use L09C432B156, right?

That's the one I use, L29C432B156. Backup your current boot. Flash and see if it does anything to camera. If not flash back your old boot
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Aye that's the one, just threw me when you said 158 just before!

Downloading now and will give this a go....

Edit: ahh sorry, you said use L09 and not the L29! So if I'm L09C432, will this work?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Autocorrect ?

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

Yes. If not flash back old boot. The Kang I used before was based on the Chinese boot I think and that worked fine.

Also. Did you ever wipe Dalvik / ART cache and Cache from twrp?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Yeah I've wiped that before, do you feel that would have had an impact at some point? Will flash soon
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
It does seem to break stuff if you don't (like Developer options). But if you have already it shouldn't have much impact.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Ok wish me luck, rebooting now...
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Report back ASAP! xD
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
No luck :(

It flashed ok, booted ok, got a notification from Superuser that the SU binary is out of date (?!) but night mode is no different and still gets stuck on processing :(

I know what it should do when it works, as it counts down from 10 seconds or something adjusting the ISO etc but mine just freezes on processing as soon as I attempt to take a picture

Update: yeah flashing that made me lose root
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
That's expected. It's not a pre-rooted image so you got to flash superuser.zip on top of it. Just restore your old boot. Could you go into /data/hw_init and take a screenshot there. And open dataversion.txt in that dir and screenshot?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
Ok restored backed up boot and got root back.

Here's the requested screens

(thank you so much for your help, really reassuring to have this help!)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
Got everything in and working,boots to recovery now. Whats with the language or gibberish in anything in the sdcard? It isn't english and cant tell what any of it means. But the exsd card is normal.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jayden2009:
Seems to me that this root method isn't going to work without any problems is it ? I want to root also just root so I can use emoji switcher ....

Verstuurd vanaf mijn MHA-L29 met Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
That looks OK. I wonder what's wrong. Try messing around with ISO. I saw somewhere that Night Shot + RAW could cause it to crash.

---------- Post added at 03:00 PM ---------- Previous post was at 02:58 PM ----------

It's because it's encrypted. You need to place stuff on an external sdcard.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] vipivj:
Guys

Is there any chance of a simple method (without breaking anything) to root in future? Or it'll be just as difficult as now on huawei devices? Is it because I read somewhere that huawei usually dont give out the necessary resources to public. Is it true? What about old huawei devices like p9 and mate 8? All have proper method to root easily or even after years of releasing still difficult?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
If they would release source for kernel it would be a lot easier.

But it will probably be a while before they do that.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
I figured that running the decripted files fixed that. lol
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tcchuin:
on mha-l29c636b158, unable to use fingerprint sensor and set passcode/enter developer option. I flashed the public.zip and hw for c636. Any idea how i can get those to work?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jayden2009:
What method did you guys used to get the bootloader unlocked ? The method in OP ?

Verstuurd vanaf mijn MHA-L29 met Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cd993:
I don't think I can change from raw when in night shot, and also when just taking normal pictures they work ok with or without raw.

Ahh I really don't know what else to try :(
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Try Wipe "Dalvik / ART Cache" and "Cache" in TWRP.

Fingerprint sensor is a known bug.

---------- Post added at 06:26 PM ---------- Previous post was at 06:07 PM ----------

Which boot image did you use? :eek:

The one in OP is for B138.

The one I posted earlier (like page 4 or something) I removed because it was incorrect.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] s2pfie:
can I request for encrypted&decrypted-boot-MHA-L29C636B158 please..thank you
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
are most having issues with the root? SU hates it, tried a couple others and same. Flashfire doesn't launch because of it. File explore cant even see the files on my sd card
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] jerry828:
thanks for share
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
Now I can't boot into recovery.....
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] wrecklesswun:
i was able to root, i have to wipe cache and data twice...fingerprint works, but i have c567 version.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You have to use PHH's Superuser app and the supplied superuser.zip, both in OP. You can't use SuperSU by chainfire, or Magisk. It says in OP exactly how you should do (except the HW_init install).

Flashfire does work if you open terminal and

This will set SELinux to permissive (temporarily)

Flash back recovery using fastboot, or make sure you don't have usb plugged in when you're trying to enter as that takes you to eRecovery.

[MENTION=1397125]ajsmsg78[/MENTION] isn't it easier to just edit superuser.zip's config.txt now to get nocrypt and noverity?

But ofc, you'd have to edit default.prop for adb pull/push. I guess one could modify the script to do that as well when it already unpacks boot.

And we'd still have to format data to decrypt /data.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Use the Rummy BusyBox installer and set SElinux permissive. It helped me.Just doing triple check

---------- Original added at 11:14 AM below ---------- Previous post was at 11:15 AM after ----------

My question:

MATE_9_DECRYPTED_BOOT_138.img originally posted in the thread, but no equivalent in the Android Filehost for the US L29C567B138 should work??? I do have root which works with most apps when SELinux Permissive is turned on.

Definitely don't want to rebrand but do want to load KangVIP Slim.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
I had issues with the one he put in the op. So thought I would try others, missed the part about SELinux. So if I delete the other SU go back to the referred one it will put SELinux ex back to normal? https://superuser.phh.me/ one of these?

A couple of times it didn't go into recovery but probably my fault not holding the buttons right.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
It will... Not.. It puts "su" SELinux to permissive. I'm going to see if I can get it enabled in init.d instead so it sets at boot.

Do not try to install SuperSU(Chainfire) as System, it just bootloops. Had to use Funky to get back xD Default is Systemless but that fails in recovery. Same with Magisk I guess, I didn't try System install there but probably doesn't work. This was with dm-verity disabled too.

Here's from PHH's superuser xda thread

Example: "eng noverity nocrypt" would set su SELinux to permissive, disable dm-verity and no encryption on /data.

I'm actually not sure about "eng", it might actually work. Just checked my zip and config.txt is empty there so I guess it could work with just "eng" instead of init.d.

Going to try that first.

https://xdaforums.com/android/software-hacking/wip-selinux-capable-superuser-t3216394

Edit: eng does not allow you to run Flashfire.

So got to set SELinux-Permissive instead.

Don't use this, doesn't seem to decrypt.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
ok, will try that. Tried busy box from remmy and it says I need root..... the other one I have always used doesn't instal either. Forgot whos but the popular one off the store

Do I have to do anything other than uninstall su and install the PHH one?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Just flash back your boot and install PHH's superuser.

Probably Stericson BusyBox, I need to set system rw before I can install that though, it doesn't install otherwise.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
Ok, either I missed it or I can't tell whats what. lol How do you know which is "eng noverity nocrypt? Was on that thread last night but wasn't sure which one to use from the download page.

---------- Post added at 09:25 AM ---------- Previous post was at 09:13 AM ----------

Flash back to boot, meaning go back and flash the rom again like its new with the bootloader? Or just flashing superuser from adb? Sorry just want to make sure I do it right. I sometimes these terms throw me off. lol Thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Dont do this yes. I just flashed back my stock boot, installed superuser with eng, nocrypt, noverity and rebooted. Got to lockscreen and couldnt get past it.

Rebooted again and I was encrypted. Currently restoring data. Not sure why it did this :eek:

So just flash back decrypted boot image and then run superuser from the OP in this thread.

Then we'll have to find some way of setting SELinux to permissive.

There's an app called Universal init.d in the Playstore that might work.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
Ok, got it. That's why I figure I better ask . lol :good::eek:

---------- Post added at 09:44 AM ---------- Previous post was at 09:34 AM ----------

Did you post the decrypted boot image for L29C567B138 here or on the other thread? Looking for it but not seeing it.

---------- Post added at 09:59 AM ---------- Previous post was at 09:44 AM ----------

Or if anyone has the link to that decrypted boot loader. I can't find it here or on my pc......
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
I actually couldnt find it, specific to the US model on Filehost, so I just posted a download to what I believe is a virgin boot.img for the US model for AJor others to do their magic.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
I know I got it from somewhere. I Think I found the image in my recycle bin. Name is decrypted img but no more info. Has to be it....

---------- Post added at 11:02 AM ---------- Previous post was at 10:12 AM ----------

found them https://xdaforums.com/mate-9/development/boot-force-encryption-boot-images-t3558679/page3
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
I flashed the decryptive bootloader booted into recovery to flash the su. Error 1 upload proceedure ended with error 1. Am I suppose to oem unlock too? Thought no since I did that the first time. with the decyptive bootloader shouldn't my files in internal memory be readable?

---------- Post added at 01:23 PM ---------- Previous post was at 01:09 PM ----------

I went back to flash the encrypted bootloader again but it won't flash it. lets me reboot bootloader via adb recognises it but wont flash says cant determine image filename

---------- Post added at 01:35 PM ---------- Previous post was at 01:23 PM ----------

how come I can't boot into recovery from bootloader but can reboot? was going to try sideloading but wont let me. Still cant get it to flash the decrypted bl image
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
When you say bootloader, do you mean twrp?

Also, place files on external sd card as your internal is encrypted.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
The su was installed in my ex sd card but an error applies when trying to instal it. I was going to try and side load it but that didn't work either.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
And you have TWRP 3.0.2-2?

Wont work in 3.0.3-1.

It also gives errors if you already patched the boot.img.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] s2pfie:
can someone please provide encrypted&decrypted boot loader for mh-l29c636b158 variant. Thanks in advance!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] dkionline:
@ajsmsg78 it works well on P9, just tested it.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
yes just reinstalled it to make sure. rebooted, booted to recovery to flash the su. error again and won't instal it. Like before, going to try uninstalling it then redownloading

---------- Post added at 03:53 PM ---------- Previous post was at 03:43 PM ----------

will not let me flash su in recovery. updater process ended up with ERROR:1 Its in my ex sd card.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
If you're getting an error when installing Superuser you have to use the 3.0.2 TWRP not the 3.0.3 version.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
it lest me flash the apk from the phone.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ajsmsg78:
US MHA-L29C567B138 Decrypted boot:

https://www.androidfilehost.com/?fid=745425885120710249
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
ohhh ok, will try that. Tried installing via OTG and same error. I am using 3.0.2-2

---------- Post added at 04:14 PM ---------- Previous post was at 04:09 PM ----------

---------- Post added at 04:16 PM ---------- Previous post was at 04:14 PM ----------

that file is an img file when I hit the link, not an APK

---------- Post added at 04:27 PM ---------- Previous post was at 04:16 PM ----------

Just tried flashing su in 3.0.3 and samd damn error :1
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
iinm error 1 means you already rooted.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
but I can't instal SU. Hell who knows then. lol I get warnings that my device isn't roooted. root explorer does it all the time, titanium backup shows no files when I try to find or delete something.....
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
well its either you have installed a patched boot or you have rooted before you flash to this version of root.zip,and probably you are partially root thus the error 1 pops up,
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
Maybe I am just wrong. flashfire says root is there but access can not be aquired. Says super user ohh is found and my SELinux is permissive. smh so it is fine?

---------- Post added at 05:24 PM ---------- Previous post was at 05:19 PM ----------

yeah I think I am partially rooted. I wasn't rooted before trying this. How does this get fixed?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
well what i did was flash a clean boot(unpatched) of your fw build then wipe dalvik and reboot back to recovery and flash the compatible twrp+superuser.zip (in this case you can flash the 3.0.2 + phh zip)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
so the encrypted boot? If I get this right, flash the stock boot, wipe dalvik and reboot to recovery to flash the twrp? Would I not flash the encrypted boot then go through the twrp superuser files?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
well if you have the patched boot img,then the steps would be

1-flash the twrp then reboot back to recovery

2-format data thru recovery and reboot back to recovery

3-flash patched boot img thru recovery

4-flash root zip

5 boot to system and install phh superuser thru playstore

then you are fully rooted with decryption internal :good:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
yes I have it, ok thanks. So I basically encrypted the system along the way so the wiping step would get me back on track?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
yeah..good luck
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
haha thanks :)

---------- Post added at 05:55 PM ---------- Previous post was at 05:51 PM ----------

root zip is the PHH super user zip correct?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
yes..
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
Sweet, now it seems to be stuck in boot loop. Just shows the Huawei flower thing constantly.

---------- Post added at 06:36 PM ---------- Previous post was at 06:13 PM ----------

Ok, I am able to get into twrp. Now what should I do? factory reset? I don't want to f this thing up more. Don't understand why it would boot loop after those steps you gave me.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
hmm,have u try to wipe dalvik cache?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Thank you. This did get my camera back and ability to go into Developer menu without crashing.

---------- Post added at 09:43 PM ---------- Previous post was at 09:37 PM ----------

Thank you. Though a VERY reputable source told me any C138 decrypted boot.img should wortk on the US model, would help in flashing other ROMs, e.g., KangVIP slim?installing this boot.img
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
was thinking that but wanted to wait. lolDoes the wipe screen always say wipe data, cache and dalvik, not internal storage. Thin most of the time this is all thats needed? Never noticed it probably......:confused:

---------- Post added at 06:47 PM ---------- Previous post was at 06:43 PM ----------

didn't seem to work

there is a backup in twrp from feb 21 06-57-16_MRD90M-test keys what is that?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
ohh btw u did flash have the correct boot img rite?and did u format data by typing "yes" before flashing the patch boot?bcoz if you didn't format data then it will loop sames goes if you flash the wrong boot
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
yes I formatted data by typing yes, and the decrypted boot img ? I had both from a thread on here, encypted and decrypted

---------- Post added at 06:53 PM ---------- Previous post was at 06:53 PM ----------

for my model
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
i see ,so you flashed the decrypted boot after you format your data correct?this should made you boot into system since the steps is correct.mayb you can try to wipe dalvik cache.and try to boot to system again.if still fail then try to reflash your original unpatched boot img.hope this helps.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
I don't have the original one on my phones sd card, its on my PC. it doesn't see my phone in recovery through adb
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
if thats the case maybe you can use an OTG to flash the clean boot.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
ahh, didn't think of that. what do I need for that ?

just tried the steps again, wiping caches each time still no boot up
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
flash a fresh boot img will make the phone to get out from looping.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
I can also get into eRecovery. says download latest version and recovery, reboot and shutdown

---------- Post added at 07:17 PM ---------- Previous post was at 07:16 PM ----------

decryptive?

---------- Post added at 07:25 PM ---------- Previous post was at 07:17 PM ----------

Ok have fresh ones but not sure how to do it? I download the new boot img to twrp then format, reboot , flash new img, clean cache reboot then super user? Or is the last reboot not necessary?

---------- Post added at 07:44 PM ---------- Previous post was at 07:25 PM ----------

well I installed it from OTG. wiped data, rebooted, intsaled boot, rebooted then su and wiped caches. no difference

---------- Post added at 08:15 PM ---------- Previous post was at 07:44 PM ----------

Ok, I got it into bootloader, pc sees it. What should I do?

---------- Post added at 08:20 PM ---------- Previous post was at 08:15 PM ----------

it says android reboot reason, bootloader, N\A reboot_enter_fastboot_common_func

ok, what does that mean? no bootloader or has that message always been there? still says unlocked
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
sorry for the late reply,

well actually after you flash the fresh boot u dont need to wipe/format data,just flash the boot and reboot