yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Use external SD, /data (including internal SD) is encrypted by default and can't be read in twrp.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Philhnt:
Hi, I am trying to insatll TWRP but i keep getting this error

target reported max download size of 471859200 bytes

sending 'recovery' (26982 KB)...

OKAY [ 0.586s]

writing 'recovery'...

FAILED (remote: partition length get error)

finished. total time: 0.599s

I have been trying all sorts of things but not having much luck. I have even tried re locking my bootloader to start all again but i then get this error.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem relock

...

FAILED (remote: check password failed!)

finished. total time: 0.016s

Any ideas of what is going on.

Cheers
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
I assume you trying

Fastboot flash recovery imagename.img

When it is

Fastboot flash recovery_ramdisk imagename.img
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Philhnt:
I have tried renaming the img file, ive dragged the img file into the command terminal, all sorts but i keep getting the same error. ADB is obviously working because i can boot into rcovery, and see my device, it responds to comands but just wont flash the recovery.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Curing4:
This recovery can use without fear LON-L29
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cowboysgz:
I see there are a few diff. versions of twrp. Is this one good for any rom or it is most recommended to use the recovery file posted in the rom thread itself?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
You didn't get me

You need fastboot not adb

And is not recovery is ramdisk_recovery

To flash this for oreo it's

Fastboot flash recovery_ramdisk imagename.img

All I say is that it's not the file name that's the issue but they partition name doesn't exist anymore
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] aureliomilitao:
I can not back up with twrp, access is denied

do I have to check which folder options to back up?

do I have to put the Sdcard to work?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
Check mout internal SD. If you see stumbled directory names, then you'll.habe you update external SD

My device: Mate 9 supersu B360 Mediapad X2 GEM 701->703 B205 International(AJ mod)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] kacarot:
Someone knows yes It has a solution, see the internal sd folders from twrp, named with many numbers and letters followed: 4g6j5gj865hj886ghu77

You can not see them as they are actually named or the files inside, both in twrp 3.1.0.1 and in twrp 3.0.3.1

Greetings.

Enviado desde mi MHA-L29 mediante Tapatalk

---------- Post added at 08:09 AM ---------- Previous post was at 08:06 AM ----------

So for the folders of the internal sd from twrp to be seen normally, is it necessary to format the external sd?

Enviado desde mi MHA-L29 mediante Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
No, you need to hit Format -> Format Data -> Type 'yes'.

This will remove everything, including internal SD, so be sure to back up.

After this flash SuperSU2.82 SR5 or Magisk v14. (14.3+ does not remove the required encryption flags)

And you will have to flash your hw and public data zips for your firmware too.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] kacarot:
I have done, several times format data "yes" to then flase clean, the rom and supersu sr5 since Magisk does not work in the betas oreo, so I understand that the important thing is to follow the order of flaseos that you indicate ....?

Enviado desde mi MHA-L29 mediante Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
I'm not sure decryption works in Oreo. A lot of files are not in the same places as they are in Nougat.

Besides, this is the Nougat TWRP thread so thought you were having problems with Nougat :)

The only important thing is Format Data -> Flash SuperSU SR5 right after.

If you reboot to system between format and flash it will encrypt again.

But as I said, it may not work with Oreo...
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] kacarot:
Ups! Sorry and thanks!

Enviado desde mi MHA-L29 mediante Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] aureliomilitao:
how create a system.img huawei mate9 with TWRP?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
There's no need to flash supersu after decrypt because it works on encrypted also it doesn't matter if you hit decrypt and flash supersu since fstab isn't living In boot anymore it lives in vendor/etc

So your info is wrong (and I don't mind oreo changed some stuff here and there) so if you want to run decrypted you'd have to fix the fstab in vendor.

And even after that's done Magisk seems to not be working.

Hopefully I'll get my phone back tomorrow so I can explain more ;p
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
How is it wrong? He asked how to decrypt.

If you Format Data, then reboot, /data will be encrypted again.

This is how it is on Nougat anyway. That's why I said I'm not sure if it works on Oreo.

The SuperSU installer is supposed to look in /vendor/etc/ but... fstab.hi3660 is not there when you're in TwRP. It seems to be moved there while booting.

It's not in /odm/ either. Only location I find is directly in /, but that's added by recovery.

Avb and verify tags are still there in fstab in /vendor/etc/ when booted to system

Magisk not working is like you said before, loop device support is not enabled.

SuperSU installs to /sbin now, that's probably why it stops working after a while. You have to reboot to fix it.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Let me check when I get my phone back :) I can be wrong where is stored

---------- Post added at 12:11 PM ---------- Previous post was at 11:33 AM ----------

Let me check when I get my phone back :) I can be wrong where is stored
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Also AFAIK it doesn't really touch the fstab only checks your current state of it so it will use the fbe bypass file not actually mod it. Also it won't modify it since vendor (was at least) read only by default if you don't swipe to allow mod probably that's why it's not getting modified BUT I can't tell for sure
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Even with swipe to allow turned on and manually mounting /vendor, the supersu installer doesn't modify fstab. Which I guess it should if I don't tell the script to keep verity.

I removed it manually now.

I hope they turn on Loop support for release. I tried flashing Oreo kernel for AL00 but phone doesn't boot after, and I still couldn't mount as loop from TWRP... I don't think I'd need to build a new twrp either as kernel is not part of it anymore.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cowboysgz:
Guys... Is this twrp good for O build? I'm trying to upgrade to O on C636 but I want to unlock the BL, flash twrp anda flash arise and Dolby.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Does not work for oreo.

You can use this: https://mega.nz/#!BW5EhSpB!ewDfrlQC5-fQ1oHfEj2YOo-2rDyi6b-dUoM4qx13e9A

Or the one by mankindtw in the HWOTA8 zip: https://drive.google.com/open?id=0B2D9GdWntw69U3N2aDEzZjY2S1E

Or the one by duraaraa: https://drive.google.com/open?id=0B45NCsO2AL_1NEh2aDFLM3JlYkU

Partition table is messed up in mankindtw and duraaraa's builds though
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] cowboysgz:
Thanks! I read that the recovery path changed in Oreo right? In case there's an update how would I go about locking bl and having stock recovery? I'm thinking flashing everything again with hwota8?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Big-Blue:
Regardless of which file I attempt to flash, I always boot into Huawei eRecovery when booting while holding the VolUP button.

I've tried both the one in the OP and the one linked by [MENTION=2247733]ante0[/MENTION]. Writing to 'ramdisk_recovery' succeeds each time, but no change is apparent.

I'm using the Mate 9 MHA-L29 with phh's v9 Treble ROM.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] audioralf:
Remove USB cable to boot into TWRP

My device: Mate 9 supersu B360 Mediapad X2 GEM 701->703 B205 International(AJ mod)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
If you're flashing to ramdisk_recovery, that's why. It's recovery_ramdisk.

It should throw an partition length error though so you probably just wrote it wrong in your post.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Vv Bb:
Vv77577Vv@gmail.com
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] steve15f:
Hello

I have an Huawei Mate 9 with Oreo 8.0 and EMUI 8.0, TWRP 3.0.3-1

When i try to install "Update.zip" i have an error :

E:unknown command [errno]

Update process endedw ith ERROR: 9

Error installing zip fiile '/external_sf/update.zip'

My phone doesn't boot

If you can help

I have searched on the net but i found only the error 7

Thank you
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blackball:
You can't flash official firmware with twrp.

Gesendet von meinem VKY-L29 mit Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] steve15f:
Thank you for your reply !

But, my phone now is out service, how i can install the official firmware ? Or which firmware i can install with TWRP to restore my phone ?

I need to install the firmware MHA-L09C432 or MHA-L29C432 for use the dual SIM..

Thank you
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blackball:
There is a thread about update oreo. Search for mankindtw

Gesendet von meinem VKY-L29 mit Tapatalk
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] steve15f:
Sorry, my english is very bad, and i need some help to restart my Huawei, what is mankindtw

And why it's not possible to install an official firmware with twrp ? i have seen for update to OREO before the official update people use TWRP to install official firmware ?

Thank you
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] steve15f:
Sorry, my english is very bad, and i need some help to restart my Huawei, what is mankindtw

Thank you
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Marcuss4:
hi guys,

i have twrp installed and it is working fine.

but after a while or after some reboots my date gets encrypted automaticaly.

now i want to decrypt again but do i realy have to format data again to be decrypted again?

it it possible to stay decrypted?

is there an easy way to restore my data after i decrypted data?

thanks!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
You'd need to modify your boot image to remove the fstab flag "fileencryptioninline", or replace it with "encryptable".

SuperSU does this automatically (2.82 SR2+), Magisk used to do this but does not with latest release.

You can edit boot image manually too if you're not rooted, by extracting BOOT from your firmwares update.app and unpacking it using Android Image Kitchen

Open fstab.hi3660 in Notepad++ (or similar editor, not Notepad or Wordpad) and change "fileencryptioninline" to "encryptable", then repack image and flash using fastboot or in TWRP.

There is really no way to easily make encrypted to decrypted, unless you have the encryption keys...

But even then I don't know how to decrypt.

So you're left to format data again.

Also note that if you update, boot will be replaced, so you're encrypted again after updating firmware.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Marcuss4:
[MENTION=2247733]ante0[/MENTION] Thanks for the response!

Well thats a bummer. I am using custom rom romaur and i am rooted.

Unfortunately i am using magisk for root.

I thought it is possible to combine magisk with SuperSu right?

So if i format data to decrypt, then flash SuperSu i should stay decrypted?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
If you flash SuperSU, you will have SuperSU. There's no having both. But flash this instead, it will/should remove encryption:

https://mega.nz/#!gSogVZZK!KdPyNAy8bjQGikuQjkfIF6-PH7dND3fJVKBqSkgK5G8
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Marcuss4:
Great!

Did you make a custom framework for magisk?

When i flash this do still have to format data to remove encryption?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Nope. It's just removing fileencryption like it did up until 14.3.

You still have to format data.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Marcuss4:
Well ok! thanks for sharing this!!

I made a full backup with titanium, so i think thats the easiest way to get back my settings and apps after decrypting.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Rayson-z:
Can it support Mate 10 Pro EMUI 8 also?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
nope. No twrp for mate 10 yet.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] kikiri:
C:\adb>fastboot flash recovery twrp.img

target reported max download size of 471859200 bytes

sending 'recovery' (26982 KB)...

OKAY [ 0.583s]

writing 'recovery'...

FAILED (remote: partition length get error)

finished. total time: 0.599s
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Are you on Oreo?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] kikiri:
Oreo 8.0
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Use this one: https://mega.nz/#!4DYngAxL!OJEgQ4a4cSTypHgRBbMQbok2BRDuVHSDXNktAJ_PnKQ (it's 3.2.1 by [MENTION=477335]Blackball[/MENTION] but added fixlinks.sh so it can flash Magisk)

Or 3.0.3 from here: https://mega.nz/#!AWpymRbC!ncVMIZL177b2OssrjSuKVq2AyyxzUqj_BKfsMEAajhw (This is 3.0.3 by [MENTION=1097168]mankindtw[/MENTION] but added fixlinks.sh so it can flash Magisk)

fastboot flash recovery_ramdisk twrp.img

as of Oreo recovery partition is split into recovery_ramdisk, recovery_vendor and recovery_vbmeta.

You could use 3.1.1 from OP if you flash it with recovery_ramdisk, but you'd have trouble backing up recovery and boot.

(boot was split into ramdisk and kernel.)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] kikiri:
Thanks...
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] AterCZ:
Mha-l09c432b363 / mha-l09c432b366

Hi,

could I ask you if this guide works for these variants of firmware? MHA-L09C432B363 / MHA-L09C432B366 ? I'd love to root my phone, I'm just trying to be cautious :angel:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] AterCZ:
Can I use the OP guide for TWRP and then rooting but just use the [MENTION=1097168]mankindtw[/MENTION] recovery instead of the one in the OP? I'm running 8.0.0.366
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Unlock bootloader. (note that Huawei removed the unlock page, only way to get unlock code is by emailing them. And possibly through DC unlocker, though it's paid so email first).

Flash twrp by Pretoriano80, https://xdaforums.com/mate-9/development/recovery-twrp-3-2-1-0-t3783353

Download and flash Magisk from https://github.com/topjohnwu/Magisk/releases/download/v16.4/Magisk-v16.4.zip

And you're done.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] AterCZ:
Thank you so much. One more question - I've read a lot of things about decrypting data, then there was also something about rebranding the phone, I have no idea what either of those means. Should I be worried about something like that?

With Magisk - will I have to then install some kind of a root manager apk?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
That twrp I linked already has decryption, so you won't have to do anything.

And magisk comes with its own manager that's installed when you flash it.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] luyongfeng:
DEAR Mr.TKKG1994, would you please kindly add the :USB mass storage" function into the TWRP? Now, it is available in the menu, but after click and start it,

there is no re-action (If it works, there should be a removable flash disk appeared in the computer, but it does appear now).Would you please kindly make it workable?

Because UMS mode is much useful than MTP mode. Thank you very much.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
I had a create backup but when i turn back to my backup file, some apps don't working, like camera and file menager or some games. What should i do?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Gynsu2000:
Hi, little crosspost here :)

My MHA-L09 is in bootloop after a stupid xposed install without making a backup first. I can access TWRP 3.1.1 however when I try to install the latest firmware I get an error 9 (here is the full log: https://pastebin.com/Yc0bnbfk ).

As my phone was on Oreo, maybe I should update to 3.2.1 as [MENTION=2247733]ante0[/MENTION] mentioned in #968? Unfortunately the download link is down.

Another issue maybe?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] ante0:
Use https://xdaforums.com/mate-9/development/recovery-twrp-3-2-1-0-t3783353

The one you use doesn't have the required service running
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Caguayote:
does this command work for huawei mate 9 oreo i cannot boot my phone twrp stays on splash screen and fastboot rescue mode

shows phone unlocked

frp lock

it happens after i flash rresurrection remix rom

addosu

and hypper plus kernel

is it possible to get out of this?

thankyou very much
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tkkg1994:
I've told you I'm quite busy, sorry I couldn't test yet. This recovery does not even boot up, so don't flash anyone else with no experience, TWRP won't work after flashing this file!

to [MENTION=4435346]LastStandingDroid[/MENTION] It does not even boot into TWRP, just stuck at initial screen which you got when hitting combinations to get into recovery
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Oh ok thanks ill fix a new version from pc since my phone is messing up

---------- Post added at 11:41 PM ---------- Previous post was at 11:14 PM ----------

Here is another one. Added missing files in sbin and system/bin https://mega.nz/#!v0oG1aIB!6yVoE0xs3FDqZ7sUqKGHyd81mF-r6XLqKTeaJzs8K78

Should boot at least
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] hackslash:
Just for information.

MTP works by doing some slight ramdisk and system prop edits. See the commit here: https://github.com/Honor8Dev/twrp_d...mmit/5f898dfe558e247940cf81af68df01cc69297982

As for decryption, the decrypted data block is dm-5 but it still isn't working. Something isn't right but we'll get to that soon :)
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Oh I see.

[MENTION=6435663]hackslash[/MENTION] u have seen https://github.com/TeamWin/android_device_huawei_eva/commit/ae2fe44ad3ba642aeeccc933b3de10a84c3f41be

? Right it should already be in Huawei devices TWRP so it is for decryption (M)

i changed my fstab to dm-5 *without* luck (got same issues as encrypted devices get once booting into recovery) even if i'm on unecrypted. strangefully i got it to being displayed again, will downgrade and upgrade so i get encrypted storage to see if i can look into it since i use uncrypted storage
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] hackslash:
Great. There is something changed with decryption in Android N. Anyways, I'll take a look as soon as I get time (the End Semester Exams kill you). See the screenshot attached below for the decrypted block.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
yes i checked your commints, don't worry =) ah i see that tool to check it, will get it as well ;)

strange i thought the partition was ext4 maybe it was due to f2fs not supported in twrp ?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] dkionline:
No, it worked on M also with f2fs.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tkkg1994:
I'll flashed it real quick, did boot but without MTP. I will check the bellow commit of hackslash :)

Nice I'll take a quick look! Thank you for sharing

f2fs is supported in TWRP, at least I enabled it on mine on the mate 9
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Yes but it says ext4 in settins if u try do adv wipe
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tkkg1994:
Shows f2fs for me:

Or do you mean something else?

Sent from my SuperMan powered SM-G930F
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Nope that was exactly what I ment it displayed ext4 but don't worry I run Uncrypted anyway

Hmm how come you have battery stats available 0.0?

Has to be that you built from source?
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
I know this maybe known but just in case you want to unlock your bootloader immediately go to this site, log in by your huawei ID account and fill in your information then you will get your code

https://emui.huawei.com/en/plugin/unlock/detail
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Tkkg1994:
Hello all together

I've tried out some stuff with mtp, however it doesn't work whatever I do. I got at least usb storage working (but that does not help that much with encrypted data partition lol). So here is the changelog 3.0.3:

- Based on latest 7.1 tree

- Updated TWRP to official 3.0.3 (this is maybe one of the first unofficial releases here, so you will see all features present on new TWRP)

- As mentioned above usb storage working

- Some other small flags clean up

Download 3.0.3

Furthermore I setup a telegram chat were everyone can join through the following link:

Telegram Chat

I just set it up and it can be used to discuss and help each other. Have a nice day!
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] raychak:
I always got the following error message after entered all fields and submit:

"Please make sure the verification code and model number are correct. If your device has multiple IMEIs or MEIDs, please try another IMEI or MEID."

:confused: :confused:
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Your verification code is wrong also if u have dual SIM u need to enter both imeis
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] raychak:
Yes, I have dual sim L29. Do you means enter 2 IMEI together in a single field? Thanks
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] :
Don't remember. Or enter the IMEI 1 correctly make sure no small typo. I could help you get the code. But that's if u trust me to help u.
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Blue.Ember:
same as I got, I tried 1st IMEI and the 2nd one and it didn't help then I tried MIED also didn't work, so I used Huwaei code generator to get an new id with different model number then it's work and I got my booltloader code immediately

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

Dears I need a support from anyone, after I unlocked my bootloader the phone doesn't want to boot again, that's happened when it's make a reset by it self after unlock and it's fail, then I tried to make a reset again to make it success and it is, but after reboot it's keep looping on animation huawei logo.

i tried many roms and different ways but it's not working, so the only way remaining is to make restore for the system files from twrp recovery but I don't have these files, so could anyone support me and make a backup from twrp for system, product, vendor and data then upload it on mega or any other site.

my phone version is MHA-L29
[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Quizo:
i think i am going through this now. it boots into a blank setting. i do see menu buttons at the bottom but nothing else