yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] lanfur:
thanks:)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
[MENTION=6435663]hackslash[/MENTION] [MENTION=5899304]Tkkg1994[/MENTION]

And sbin & lib64 are all from stock Huawei.

That's how he got mtp working. About adb it's due to he is using stock binary file that's why he gets the dialog
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] 5[Strogino]:
I think it's possible.

On Huawei P9 Lite users can simply get root WITHOUT unblocking bootloader. And they can after root unblock bootloader via system changes even (without Huawei side)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
nope ,just dload and update to b158 thru system update.and remember to update to the last fw before unlocking BL ,bcoz once u update ur BL will be lock back.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] s2pfie:
thanks again..can you teach me how to do this: "download c636 offline firmware,and flash it from an sd card using 3 buttons method by dload folder"..what i did is i extracted the 3 files from dload folder and put it to the extsdcard then press vol up+vol dn+power then it boot to installing update but software install failed. the update package does not exist. did i do something wrong? or should it be dload folder in the root of extsd card not extract all the files to extsdcard?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
u need to extract the until dload folder n put it in ur root of ur ext card,bcoz if you put in internal storage it won't be recognised due to encryption.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] s2pfie:
thank you so much. i revived my m9 haha..im now downloading the update. do you know the path where update files are being downloaded? can i copy it and be used for flashing through 3 buttons method whenever i need it? is it flashable also? and do i still have my twrp after reviving my phone? i didn't check it yet coz im still dloading the update. tnx
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
1- for now only b110 can be flash using 3 button method

2-no now ur recovery is stock,so after u finish update to b158 u may proceed to unlock ur BL and reflash twrp
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] s2pfie:
i see..will do that bro! can i flash the latest version 3.0.3-1? and oh by the way..how can i get rid of the warning message everytime my phone boots with unlocked bootloader?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
erm for twrp i am using rayglobe's twrp (mate 9 test) and his mate9 pro root.zip.

and for the ubl warning idk how to make it disappear.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] s2pfie:
copy that bro..thanks for all your help..
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
no problem,i will find the link for rayglobe's twrp n the root zip when i get home later

reminder dont wipe anything in twrp except dalvik cache only
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
Whenever I try to flash the su in recovery I get it failed ERROR 1. Tried it from sideload, 3.0.3 and 3.0.2 . Reinstalled a decypted bootloader etc. Tried it with a OTG too
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] GH04ST:
Hi there.

I get this when I go to flash the recovery on my australian mate 9.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp.img

target reported max download size of 471859200 bytes

sending 'recovery' (19870 KB)...

OKAY [ 0.428s]

writing 'recovery'...

OKAY [ 0.180s]

finished. total time: 0.615s

When I try and reboot into recovery I get the Huawei recovery with the reboot, download recovery and shutdown options. No TWRP. Any idea why this could be happening?

Any help would be greatly appreciated.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] erikclaw:
remove the usb cable if it is on the phone. Makes it boot into ercovery I believe
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] GH04ST:
I did try that. It still boots to the standard recovery. When I do it

After I have to manually put it into bootloader as I can no longer do it via cmd as phone no longer shows up on fastboot devices. It shows up after manually putting into bootloader mode.

I then get this error while trying to boot into recovery from there

C:\adb>fastboot boot twrp1.img

downloading 'boot.img'...

OKAY [ 0.429s]

booting...

FAILED (remote: Command not allowed)

finished. total time: 0.458s

I have followed everything and can't figure out what is going on.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] 5[Strogino]:
You have wrong recovery or you pressed wrong buttons to boot into recovery.

What exactly model and firmware do you have? (Settings / About phone / Build number )

How you enter into recovery?

Did you try adb command: adb reboot recovery ?

Where you got this recovery?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] GH04ST:
Buttons wise I turned the phone off and held down both the volume up and down with power. I did try it with cmd with the adb line and that failed with the text I pasted above.

Here are my details.

Build: MHA-L29C636B158

Model: MHA-L29

I got the recovery from the OP in this thread. It is for a model Mate 9.

I was thinking it could be the wrong recovery but there are two in this OP and I downloaded both and was able to flash them each at different times but unable to boot into them either manually or via cmd

Thanks for the help as I am lost at what to do next.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] MeHMeTDaLGiC:
I'm getting the same mistake. I tried everything but it did not.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] 5[Strogino]:
I did not find that you ran "adb reboot recovery"

And to boot into recovery you should press only VolumeUp and Power (when not connected to PC)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Yep, Vol Up + Down + Power = eRecovery "download and install latest version" mode thingie.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] GH04ST:
Ah ok. I will give that a shot.

No wonder I could not get that right. Sorry that did fix it. I am able to boot into recovery now. Thank you.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] tkalfaoglu:
TWRP installed fine, but complains of read only

HELPP!

Hi there. TWRP installed fine (after I unlocked the bootloader from huawei's site), but it nags every time it starts, saying that system is read only shall I fix it. I slide it to fix, but it doesn't help; same thing at every twrp startup.

Afterwards, I tried installing supersu with it; that appears to go alright, it reboots, but no su binary to be found anywhere.

I tried superuser.zip as well; that gave an ERROR 1..

Therefore, rooting fails.

Any ideas what to do? It seems they patched up something with the latest android :(
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
At e recovery go into shutdown

Then try the 3 fingered salute method

With the USB-C cord in CONNECTED to a computer that you fastboot from, hold down the 3 keys. (To a computer, not only a charger). It should come back to the regular prompt but keep holding. It will appear to reboot again but should go into TWRP.

This has workrd for me after a few issues being stuck at eRecovery. YMMV
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] soft-touch:
Power off your device (without usb to pc), hold "Vol down" button then connect usb from phone to pc (without releasing Vol down button), zoooooooom you are in fastboot mode.

That's method I always use.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
Thats definitely to fastboot. How do you get to custom recovery from there? The opposite key, vol up, regarless of usb cable connection should go into TWRP. Unfortunately not the case (for me) . To get to TWRP need to use the 3 finger method (from e recovery or from fastboot simple reboot)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Androwar:
If you encounter buttons problems to enter recovery, I suggest to rollback to stock to correct, we don't know what future problems you will have with buttons
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] JATCHUHAN:
To get to TWRP press volume up and power then let go of both when Huawei logo comes. Don't use USB cable
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Androwar:
I think something reversed the buttons order, that why I suggest rollback to stock to correct things
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
As I said that is the easy way when you have a clean shutdown and reboot. It you are in an e-Recovery "bootloop", i.e., every boot leads there and frustratingly there was no us firmware when dumped there, the ONLY way I could get back to TWRP was Vol +, Vol -, Power together, cycles twice (a.k.a., the 3 fingered method or 3 fingered salute) with cable plugged in (not to a charger). It's like a super secret handshake that has save me great distress (and swearing like the best sailor).

Why is this relevant: the poster could not get to TWRP and was stuck in a eRecovery and Vol+ no cable was NOT working. Only trying to help, not to be taught the "right" way to do things. ;) What is the fun in that. It saved me a dozen hours of frustration at least.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Vol up + power is recovery, regardless of what you have. Vol up + down + power is recovery2, or "Download latest" eRecovery. That will always be there unless you overwrite recovery2. Vol down + power is Fastboot. From fastboot it is impossible to get to recovery.

I did however have problems like you, I couldn't get to twrp using Vol up + power, had to do all keys at once. But that went away for some reason.

Vol up + power + USB plugged in goes to recovery2.

If you can boot I suggest just using "adb reboot recovery".
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rudolpht:
So in my case TWRP must have been on recovery 2? I love to learn.

Great point, if can fastboot, "adb reboot recovery" is more direct (and reliable)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
That or something messed up key binds. Not sure if you can flash recovery2, and I don't want to find out xD.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
This should be possible on all Huawei devices.

On my X2 I usually installed TWRP on recovery2 via

fastboot flash recovery2 twrpxxxx.img

You can undo that via

fastboot flash recovery2 recovery2.img

recovery2.img can be extracted from update.app

I received my MHA-L29C432 yesterday and still checking all stock B156 functionality and hardware before coming into the game here.

Is it correct, that people who were reporting only be able to boot into e-recovery, also weren't able to boot into fastboot?

I guess this should always be possible.

Then it would be possible to install TWRP on recovery2 to repair the damage.

My device: Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
well actually i encounter yesterday,cannot boot into fastboot n twrp,it keeps booting into erecovery,then i fully shutdown the phone by choosing shutdown in erecovery then i tried enter fastboot again by holding vol down n plug usb to pc,hence i found out that my BL was lock which to my conclusion it block user from entering twrp to further modfied the system files or something equivalent.once i unlock BL i managed to boot into twrp by pressing vol up + power without even flashing twrp.meaning twrp is still intact its just the BL is locked.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
Good to know. But how did you came into situation, that the bootloader was locked again?

My device: Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
its just a gut feeling..
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I think he means what did you do to Lock the bootloader again? As you'd have to unlock it to flash TWRP.

If you flash with Firmware Finder or Funky it locks, but that also flashes stock recovery.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
ohh sorry it seems i misunderstood his question, mine is different situation,i flashed the oeminfo of another region just bcoz i wanted to flash a custom rom but after flashing both oeminfo n the rom ot went to bootloop,and tried to boot into twrp o fastboot failed big time
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] duraaraa:
One should never, ever overwrite recovery2. That's the one thing keeping the phone from bricking completely.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
but cant we just reflash back the recovery2 using the recovery2 IMG extracted from update.app?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] duraaraa:
I don't think you can with fastboot. I think you'd need to do it with TWRP.

Recovery2 handles eRecovery and DLOAD recovery. These are the two ways to completely restore the system to stock. I don't think any benefit of not having to re-flash and re-flash original recovery is worth the risk of overwriting recovery2.

Note: Technically, there is another restoration method, via Fastboot and HiSuite. But it's not officially supported on the Mate 9. It can be made to work under some circumstances, but not really recommended.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
You can flash recovery2 via fastboot.

Fastboot flash recovery2 recovery.img

Recovery2.img can be extracted from update.app.

I usually overwrite recovery2 on x2 and can dload and can perform factory reset and dload with standard recovery in recovery 1.

This is the benefit.

There were indeed reports, that people came into situation, that they only were able to boot into e-recovery. This is when the bootloader closes for some reason.

But boot into bootloader/ fastboot should also be ever possible. Unlock again, and TWRP would start.

My device: Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] henrik.dk:
I tried to go through the unlock bootloader

1. could not find the oem unlock option in the development option

2. fastboot device list no device even though I have downloaded "ADB and Fastboot drivers"

3. no place to find huawei driver but if I use adb device then phone is listed.

Please help. Thank you very much.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
Install hisuite for fastboot driver.

Type: fastboot devices,

If you still don't get reply, then check into device manager which entry is added, when you boot the phone into bootloader mode.

The check the driver. It must be ' adb single sooner interface'

If you can't change driver you must set windows into 'test mode' to be able to accept unsigned drivers.

My device: Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] henrik.dk:
thank you. doesn't work. Still doesn't work with hisuite installed.

I am on windows 10. Is that the issue?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] MeHMeTDaLGiC:
Try it in Windows 7. It was not in Windows 10, but it was in Windows 7.

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

3.0.2.2 Recovery setup. But in the backup phase I get error:255 error. What would be the reason?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
Yes. Windows 10 forces driver signification since an update about 3 months ago. Set it back to the mode we had before, (search Google for test mode windows) to get back the update driver menu.

My device: Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Chris4877:
phhusson.free.fr/superuser-r275.zip seems to be a dead link. :(

Anyone know if this file is hosted anywhere else?

Thanks

---------- Post added at 11:22 ---------- Previous post was at 11:13 ----------

Just found a download mirror:

http://downloadmirror.co/Utk/superuser-r275.zip

Why didn't I just f*****ng Google it before posting the original message? :rolleyes:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] KOLIOSIS:
Does anyone have the stock recovery .img?

I'm trying to flash the UPDATE .APP using a dialer code & it takes me to TWRP,so,just wanna go with stock recovery, see if it will install.

I'm not hung up on having the latest/greatest update, just trying to flash this to fix my camera (approx 5 camera related .apks are corrupted/broke) & was hoping flashing this would help.

Already tried via eRecovery & it's a no-go.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] gm007:
Flash hw_data zip for the firmware you are using in twrp.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] KOLIOSIS:
I've tried that (to fix the camera), it's still broke.

(MHA-L29C567)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
what did u do until ur cam broke?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] KOLIOSIS:
I'm not exactly sure when the camera broke, sometime between when rooting (1st thread on rooting,still encrypted) or,when installing a decrypted boot .img,which may not have been specific to the C567 model.

I have since used the model specific decrypted boot image,but, the camera is still broke.

I believe there's one or two others here in the same situation.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
is either u update ur phone if there is any avaiable update or just use the paid service to reflash ur fw(if you cannot wait)now there is 1 superoot.zip can help decrypt ur /data without needing a patched boot.img.i can assure it work bcoz i just used that superoot.zip on my rebranded AL00C00B173 yesterday.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] KOLIOSIS:
Got the link to the superoot.zip?

Also,the stock recovery .img if possible.

THX.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] eddmecha:
stock recovery u need to extract from your build update.app.for superoot.zip i will find the link

edit

https://xdaforums.com/mate-9/development/root-root-mate-9-t3556590/post71240915

the link is at page 53.good luck as now i m the 3rd person used it so far
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] oF2pks:
Maybe 6GB ram will remind huawei' executives that kernel sources is a duty...

What a miss for the very first linux 4.x android release !
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bossei:
Can someone confirm if they got root using these instructions for the L29 on latest firmware for US variant
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Valuta:
These are not root instructions. These are instructions for unlocking your bootloader and flashing TWRP to your recovery.

Edit: never mind, forgot about the last instruction set.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Paz9:
difference between twrp 3031 and 3021?

why does it say phh compatibility ?

doesnt phh root work when installed on 3031?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Morfy01:
hi, this recovery works on mate 9 lite BLL-L23 ?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
When you boot your phone in fastboot on USB connecton a new device appears in device manager.

What's it's name?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
On my Windows something is installed that makes to install windows the wrong driver, even if I had installed Hisuite.

Huawei devices in bootloader mode are detected as "LeMobile Android Device" and below that "Android Bootloader Interface"

To solve that:

Right click with mouse on "Android Bootloader Interface" and you should get an option to update driver.

If not, you have to follow the instructions to set your Windows into the "test mode". You can keep this mode for nomal work. It is like all the years before Microsoft changed windows to force driver-signature-verification. The former mode is called "test mode". Thats all.

If you can change driver then select "manual seek on your computer"

Then "Select from List"

After this the device is detected as "Android Phone" and below that as "Android Sooner Single ADB Interface"

Then fastboot will work as expected.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
It's because of multiple driver for the same hardware-id on your computer and Microsofts selection of the wrong one. Follow my instructions above to change driver manually.

My device: Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bRkiX:
L29c432B156

succesfuly flashed twrp and phh on fw 126 then flashed stock recovery back to achieve update 156

updated to 156 and now trying same procedure again but fails on twrp flash (fastboot flash recovery command)

is there some new security in 156? how to flash twrp?

thnx
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] hondajohn88:
The update probably relocked the bootloader. Double check that.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bRkiX:
it clearly says in recovery phone unlocked.. and when booting i get that nasty red letters saying phone unsafe and stuff..

should i issue unlock command in fastboot anyway?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] hondajohn88:
Ah, ok. If it said it's unlocked, I don't think there's a need to send that command again. Are all the partitions mounting?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
Even if it says 'unlocked' it can be partial relocked via installing procedures you did before. This error you describe is typically to a locked bootloader.

It's worth to enter the fastboot unlock again. Simply use your unlock key again.

My device: Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] bRkiX:
hm.. how would i check that? i type fastboot devices.. device is present.

then i send fastboot flash recovery and them it says write failed
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] rndchef:
Me again. Have successfully installed TWRP but cannot boot into it. Hold the buttons, get the menu saying press volume up to enter erecovery or power to reboot. Cannot get it into TWRP to flash superuser. Hardest damn phone to root I have seen in 10 years. Really appreciate all the work the smart folks do around here making this SH$T easy for us. Any help?

---------- Post added at 01:54 PM ---------- Previous post was at 01:45 PM ----------

fastboot reboot bootloader

should say unlocked on the white screen.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
it would be nice, if you report how you solved your previous problem. We gave you serveal hints .

To start TWRP you must unplug USB. Then start device while holding volume up key.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] rndchef:
Thanks for the TWRP suggestion. I was doing it but not holding long enough.

I don't think you are referring to me on the report solve comment as I posted what I did to get unlocked.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] infoenekas:
Hi.

If i flash twrp only without root, OTA update works?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] gm007:
No you need stock recovery for ota to work.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] newyesor:
Hi,I am can not backup rom and data in twrp because error code 255.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Alonso15BV:
Hi, friends!

TWRP has the ability to install .img files. And there is a list of partitions that you can flash. Question:

Does this TWRP function work now? Or is this done for the future and you can not use it? (Bootloader unlocked, phone rooting & decrypted boot)

Thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
/data needs to be decrypted before TWRP can back it up.

check this https://xdaforums.com/mate-9/how-to/guide-how-to-root-mate-9-decrypt-data-t3569986

(SuperRoot = PHH su. SuperSU = Chainfire su.)

for Step 6 and 7, use this post as reference: https://xdaforums.com/showpost.php?p=71302827&postcount=627

So you'd have to wipe your /data before you can back it up... I guess you could back up using HiSuite before decrypting to get apps and sms and that stuff