[RECOVERY] [UNOFFICIAL] [9.0] [3.2.1-0] TWRP Pie

ajsmsg78

Senior Member
Dec 6, 2008
5,060
4,524
253
Selden, NY
Here is TWRP for the Mate 9. This works on Android Pie (EMUI 9.0). I ported it over from the Mate 20 X and themed it with my Black & Blue theme. Thank you to @freeza for the original recovery. Flash this in adb with the fastboot flash recovery_ramdisk twrpxxxxxx.img. Then in TWRP you can flash this TWRP image file to erecovery_ramdisk and then flash the rooted recovery_ramdisk to recovery_ramdisk. Then you'll have root on regular recovery and TWRP on erecovery. To be rooted when you boot you have to hold in volume up at boot. It will boot normally into Android and you'll be rooted. If you don't hold in volume up while booting you'll be booted normally with no root. To enter TWRP boot with the USB cable plugged into your computer and hold in volume up. If you don't want to do this then simply choose either root or TWRP and flash the appropriate img file to recovery_ramdisk. Decryption will not work on EMUI 9.1.



TWRP

L29C636B159 Rooted Recovery Image
 

Attachments

Last edited:

aureliomilitao

Senior Member
Mar 12, 2013
1,061
55
0
Belo Horizonte
for install this m9 twrp
fastboot flash recovery_ramdisk twrpm9.img ok
for enter twrp after ?
only turn On and press volume+ ???
with twrp no possible root correct ?

the original recovery is recovery_ramdis.img extract update.app ??
 

ajsmsg78

Senior Member
Dec 6, 2008
5,060
4,524
253
Selden, NY
for install this m9 twrp
fastboot flash recovery_ramdisk twrpm9.img ok
for enter twrp after ?
only turn On and press volume+ ???
with twrp no possible root correct ?

the original recovery is recovery_ramdis.img extract update.app ??
Yes you're correct but you can technically have both root and twrp. If you fastboot flash just twrp then volume up + power will boot you into twrp. If you want root and twrp then first fastboot flash twrp then boot into twrp then go to install then choose Image then browse to the twrp image then hit ok then choose erecovery_ramdisk. This will install twrp on the erecovery ramdisk partition. Then hit install then Image then browse to the rooted recovery_ramdisk then hit ok and choose to install it to recovery_ramdisk. This is the only way to have root and twrp right now.

After you do this, volume up will boot with root and volume up with the USB cable plugged in will boot into twrp.
 
Last edited:
  • Like
Reactions: Tecalote

ajsmsg78

Senior Member
Dec 6, 2008
5,060
4,524
253
Selden, NY
huuuumm
for twrp + root
need install twrp in recovery_ramdisk partition and magisk in erecovery partition?

You can do it either way. It's easier to install root in the recovery_ramdisk so if you restart your phone you can press volume up before it boots and you'll be rooted. To get a rooted boot.img you have to have your original boot.img on your internal storage and install Magisk Manager and choose "Patch boot image" to have Magisk Manager create a Magisk patched boot image, then you can flash that in twrp to either recovery_ramdisk or erecovery_ramdisk.
 

aureliomilitao

Senior Member
Mar 12, 2013
1,061
55
0
Belo Horizonte
You can do it either way. It's easier to install root in the recovery_ramdisk so if you restart your phone you can press volume up before it boots and you'll be rooted. To get a rooted boot.img you have to have your original boot.img on your internal storage and install Magisk Manager and choose "Patch boot image" to have Magisk Manager create a Magisk patched boot image, then you can flash that in twrp to either recovery_ramdisk or erecovery_ramdisk.
ok but
for enter twrp is boot and volume +
for enter root need boot and volume + ( no enter recovery) boot system root direct
so
how enter twrp and root together ?
 

ajsmsg78

Senior Member
Dec 6, 2008
5,060
4,524
253
Selden, NY
Does it support decryption?
I've always been decrypted so I haven't tested that but I don't think TWRP supports decryption on Pie yet. If you do a data format and modify the vendor/fstab and remove the forceencrypt then you'll be decrypted and stay decrypted until you flash back the stock rom in erecovery.
 
Last edited:

Midnightkey

Member
Mar 22, 2018
10
0
1
How can i handel the root permissions? in magisk manager i dont have the SU menu

Gesendet von meinem MHA-L29 mit Tapatalk

---------- Post added at 06:48 AM ---------- Previous post was at 06:38 AM ----------

I can't decrypt my device,what can I do?
I think u must do an factory reset in twrp, so save everything in the internal storage

Gesendet von meinem MHA-L29 mit Tapatalk
 
Last edited:

ajsmsg78

Senior Member
Dec 6, 2008
5,060
4,524
253
Selden, NY
To remove encryption you need to edit vendor/etc/fstab.hi3660. Copy it to your pc or open it any text editing app and remove the forceencrypt line. Then put it back in vendor/etc. Then boot into twrp and format data by going to wipe, format data and typing in YES. This will remove encryption and because you just modified the fstab file you'll stay decrypted. Twrp will now also see your internal storage correctly as well.
 
Last edited:
  • Like
Reactions: zgfg and suarez1907

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Hi all, here is a with Magisk v19 patched recovery_ramdisk.img
- which is not depended to a specific EMUI 9 firmware or cust - so it should work on all current and future EMUI 9 Firmwares and models of MHA (L29, L09, AL00, TL00): https://www.androidfilehost.com/?fid=1395089523397933251

If you like to use it:
0) Delete Magisk Manager before flashing the patched recovery_ramdisk.img
1) Flash patched recovery_ramdisk and boot with disconected USB and Vol+ and Powerbutton to system
2) Install then newest Magisk Manager from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
3) Enable permission for storage in Settings/Apps/Apps/ Magisk Manager
4) Switch automatic battery management in Settings/Battery/App launch/ Magisk Manager to manual - and make sure, all three options are enabled: Auto-Launch, Secondary launch and Run in background
5) Open now Magisk Manager first time and accept the "additional setup" - Magisk will download and flash a additional zip for the "workspace environment"

Many thanks to @ajsmsg78 for this EMUI 9 TWRP for Mate 9 :)

I made a Thread on Android Hilfe de for German speaking users with credits for this new TWRP: https://www.android-hilfe.de/forum/root-custom-roms-modding-fuer-huawei-mate-9.3022/root-fuer-mate-9-mha-l29-und-mha-l09-emui-9_android-pie.908543.html
 

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Does back up and restore in TWRP working now? right now i cant see some easy solution if i bricked/bootlooped my phone.

thanks.
Backup/Restore is working. If you use original Huawei Firmware, you cannot backup/restore data (but everything else) except you would format data (to remove encryption as mentioned - but if you are new to this things, I would not recommend since you can use Huawei Backup or Titanium Backup for Backup/Restore data)

---------- Post added at 04:32 AM ---------- Previous post was at 04:30 AM ----------

Thank you very much for your VERY detailed and comprehensive tutorial (using google translate ;) )
With HWOTA9 i upgraded my MHA-L29C432 from oreo to pie 9.0.1.158, and with your guide i succeed to root (without TWRP) :good: :victory:
You are welcome :) If you like to have EMUI 9 /Mate 9 Callrecorder, you can install this Magisk Module: https://www.android-hilfe.de/forum/root-custom-roms-modding-fuer-huawei-mate-9.3022/pie-huawei-call-recorder-fuer-mate-9-emui-9.909715.html