TWRP for EMUI 9 Android Pie with decryption - Huawei Mate 9 Questions & Answers

I've installed EMUI 9 on my MAte 9 (the beta project) and tried TWRP 3.2.1 Oreo FBE by @ante0
Sadly decryption does not work (TWRP does not even ask for PIN) and cannot install anything (like Magisk) :/ I've attached recovery.log from TWRP, maybe someone could take a look that's wrong, what has to be done to make TWRP working? @ante0 ?

rufik said:
I've installed EMUI 9 on my MAte 9 (the beta project) and tried TWRP 3.2.1 Oreo FBE by @ante0
Sadly decryption does not work (TWRP does not even ask for PIN) and cannot install anything (like Magisk) :/ I've attached recovery.log from TWRP, maybe someone could take a look that's wrong, what has to be done to make TWRP working? @ante0 ?
Click to expand...
Click to collapse
Oreo is for Oreo. Emui9 handles decryption differently.
However, Magisk will not install regardless if you have TWRP or not. You will need to patch recovery_ramdisk (extract from stock update.app) in Magisk Manager, flash patched_boot.img to recovery_ramdisk using fastboot then boot to recovery when you want Magisk.
This is because Emui9 has no ramdisk partition.
Magisk recovery ramdisk will boot to system with Magisk instead of boot to recovery.
Use this as reference (do not flash the ramdisks in that thread as they're for BLA/ALP) https://forum.xda-developers.com/mate-10/how-to/guide-magisk-root-mate-10-pro-t3886967

OK, thanks for explanation. What I need is to download EMUI 9 firmware (Full OTA)...hard to find because it's beta stage.
So TWRP is useless right now. Is it possible to create working TWRP FBE for Mate 9 Pie?

no possible so ... update pie fir pie....no twrp no HuRupdater

Related

Upgrade to OOS 5.1.6 from 5.1.5 using unofficial TWRP

I am using the Oos 5.1.5 and running unofficial TWRP 3.2.1-0 (i think, but sure its the unofficial build). I am rooted using magisk 16.4.
I want to upgrade to oos 5.1.6 using the zip file and also be rooted and also upgrade to twrp official version for oneplus 6 (if its better than unofficial).
So i want to upgrade to oos 5.1.6 using the twrp through the oos zip file.
If its possible please guide me. Btw i dont want to lose twrp or root or magisk......
Thank you in advance.....
I have upgraded my device using vpn for my phone now frequently freezes after so.e time of usage. I need to than power off and on the phome again.
You will lose twrp, root and magisk when you upgrade - it is unavoidable because of how the A/B partitions work. However , it's easy to get back.
There are multiple how-to guides in the Guides forum. Here's one: https://forum.xda-developers.com/oneplus-6/how-to/how-to-update-oos-5-1-6-install-t3801822
Just download the full zip locally. Flash it in twrp. Boot into fastboot. Flash twrp boot img through adb command which boots you into temporary official twrp. Then flash the official OP5 twrp zip which your can find through Google. Reflash magisk.
Suraj6ironman said:
I am using the Oos 5.1.5 and running unofficial TWRP 3.2.1-0 (i think, but sure its the unofficial build). I am rooted using magisk 16.4.
I want to upgrade to oos 5.1.6 using the zip file and also be rooted and also upgrade to twrp official version for oneplus 6 (if its better than unofficial).
So i want to upgrade to oos 5.1.6 using the twrp through the oos zip file.
If its possible please guide me. Btw i dont want to lose twrp or root or magisk......
Thank you in advance.....
Click to expand...
Click to collapse
Reboot recovery
Flash twrp installer zip (official)
Reboot twrp
Flash 5.1.6 full rom
Flash twrp installer zip ( official)
Flash magisk 16.0
Wipe cache/davlik
Reboot system

Oreo: TWRP + Magisk

Hi, finally my BLN-L21 have an Oreo rom (thank to @shashank1320 ), but i need a TWRP and a Magisk fully working on my phone... :angel: Supersu is accepted but i prefer Magisk
Link, link please!!! :highfive:
Thanks...
For TWRP use the one available in the elemental ROM thread. The only problem is that it doesn't mount internal so you will need an SD card to flash anything. This is because EMUI 8 is encrypted and TWRP doesn't have decryption support. For Magisk, use latest zip download from official thread. Also keep in mind that there is no sound mod available for stock EMUI 8 and that the command to flash TWRP is: fastboot flash recovery_ramdisk RECOVERY-V2.img (nameofimage.img)
Good Luck!!
No problem for sound mod, i only need magisk for root permission to use Adaway... No other app !!!
I'll try as you advised me, i hope everything goes well ...
Ok, work well! Now my 6x are rooted!

Recovery for PIE update MIUI10

This work is not mine. Just sharing.
Most of the users of whyred has updated to miui10 pie update 9.3.28 but finding data encrypted on recovery boot.and are unable to decrypt it.
Try this recovery file in the link and the data partition works fine without any password problem.
TWRP
https://github.com/GuaiYiHu/android...2.3.0-whyred/TWRP-20190330-3.2.3.0-whyred.img
Orangefox TWRP
https://sourceforge.net/projects/or...OrangeFox-R9.0-2-whyred-MIUI-Pie.zip/download
(This version not compatible with oreo so use it for miui pie only)
https://youtu.be/1WnxULKjgdE
For xposed on miui 10 see here:
https://forum.xda-developers.com/re...ment/modified-xposed-miui10-oreo-8-1-t3913160
gursewak.10 said:
This work is not mine. Just sharing.
Most of the users of whyred has updated to miui10 pie update 9.3.28 but finding data encrypted on recovery boot.and are unable to decrypt it.
Try this recovery file in the link and the data partition works fine without any password problem.
https://github.com/GuaiYiHu/android...2.3.0-whyred/TWRP-20190330-3.2.3.0-whyred.img
https://youtu.be/1WnxULKjgdE
For xposed on miui 10 see here:
https://forum.xda-developers.com/re...ment/modified-xposed-miui10-oreo-8-1-t3913160
Click to expand...
Click to collapse
So from what I've read, if you flash the rom first, then update your recovery you should be good?
Sent from my Redmi Note 5 using Tapatalk
OrangeFox
gsmyth said:
So from what I've read, if you flash the rom first, then update your recovery you should be good?
Sent from my Redmi Note 5 using Tapatalk
Click to expand...
Click to collapse
Yeah sure
gursewak.10 said:
This work is not mine. Just sharing.
Most of the users of whyred has updated to miui10 pie update 9.3.28 but finding data encrypted on recovery boot.and are unable to decrypt it.
Try this recovery file in the link and the data partition works fine without any password problem.
https://github.com/GuaiYiHu/android...2.3.0-whyred/TWRP-20190330-3.2.3.0-whyred.img
For xposed on miui 10 see here:
https://forum.xda-developers.com/re...ment/modified-xposed-miui10-oreo-8-1-t3913160
Click to expand...
Click to collapse
does this version support f2fs? Thanks in advance.
sushuguru said:
does this version support f2fs? Thanks in advance.
Click to expand...
Click to collapse
Yes it supports.
Remember to backup internal storage before changing file system.
Thanks bro it works like charm
Working good but after the restart the twrp is gone, stock recovery gets replaced
I tried to flash then no-verity-opt-encrypt-6.0.zip but getting error not installing
Please tell me what to do now, twrp is replacing by stock recovery
Update - It is resolved now, I flashed magisk over it and twrp is not replaced anymore
gursewak.10 said:
This work is not mine. Just sharing.
Most of the users of whyred has updated to miui10 pie update 9.3.28 but finding data encrypted on recovery boot.and are unable to decrypt it.
Try this recovery file in the link and the data partition works fine without any password problem.
TWRP
https://github.com/GuaiYiHu/android...2.3.0-whyred/TWRP-20190330-3.2.3.0-whyred.img
Orangefox TWRP
https://sourceforge.net/projects/or...OrangeFox-R9.0-2-whyred-MIUI-Pie.zip/download
(This version not compatible with oreo so use it for miui pie only)
https://youtu.be/1WnxULKjgdE
For xposed on miui 10 see here:
https://forum.xda-developers.com/re...ment/modified-xposed-miui10-oreo-8-1-t3913160
Click to expand...
Click to collapse
Thank you for sharing.
Can I install it without magisk?Will it be gone after the device restarted without installing magisk?
Just info : Link updated https://github.com/GuaiYiHu/android...2.3.0-whyred/TWRP-20190330-3.2.3.0-whyred.img
it's a recovery so magisk is your choice if you want it or not.
ashish1989 said:
Working good but after the restart the twrp is gone, stock recovery gets replaced
I tried to flash then no-verity-opt-encrypt-6.0.zip but getting error not installing
Please tell me what to do now, twrp is replacing by stock recovery
Update - It is resolved now, I flashed magisk over it and twrp is not replaced anymore
Click to expand...
Click to collapse
I had this problem before. when you flash twrp, try to reboot to twrp again. then the twrp won't be flashed by stock recovery.

[TUTORIAL_5/11/2019] Switch from TWRP_rooted OOS 9.0.9 to TWRP_rooted OOS 10 stable

Requirements:
1)Make sure you have working TWRP in your OOS pie 9.0.9
2)Download latest bluespark TWRP from the link https://github.com/engstk/android_device_oneplus_enchilada/releases
3)Download Magisk 20.1 from the link https://github.com/topjohnwu/Magisk/releases/download/v20.1/Magisk-v20.1.zip
4)Download android 10 stable rom
Procedure:
1)Boot in to TWRP recovery from your OOS 9.0.9
2)Flash latest bluespark TWRP_twrp-3.3.1-x_blu_spark_v9.107_op6.zip(downloaded from above link)
3)Reboot recovery
4)Flash OOS 10 stable rom
5)Flash latest bluespark TWRP(again)
6)Reboot recovery
7)Flash magisk 20.1
8)Reboot recovery
9)Reboot system
freeshared said:
Procedure:
1)Boot in to TWRP recovery from your OOS 9.0.9
2)Flash latest bluespark TWRP (downloaded from above link)
3)Reboot recovery
4)Flash OOS 10 stable rom
5) Reboot recovery
6)Flash magisk 20.1
7)Reboot recovery
8)Reboot system
Click to expand...
Click to collapse
you should flash twrp again after step 4, otherwise you will face yourself in stock recovery and you won't be able to flash magisk afterwards.
mcdachpappe said:
you should flash twrp again after step 4, otherwise you will face yourself in stock recovery and you won't be able to flash magisk afterwards.
Click to expand...
Click to collapse
Thanks,forgot typing that step in hurry,now updated
Code:
Error applying update: 7 (ErrorCode::kInstallDeviceOpenError)
Updater process ended with ERROR: 1
This is when flashing OOS stable 10 zip. What is wrong?
Kpenguin.5284 said:
Code:
Error applying update: 7 (ErrorCode::kInstallDeviceOpenError)
Updater process ended with ERROR: 1
This is when flashing OOS stable 10 zip. What is wrong?
Click to expand...
Click to collapse
Had the same issue. You have to be on a TWRP meant for android Q.
https://forum.xda-developers.com/oneplus-6/how-to/how-to-flash-twrp-magisk-android-10-t3988213
Follow this guide for TWRP, if it doesn't boot after using the slightly different ADB command they have, flash 9.0.9, do a local upgrade to A10 through OOS updater, then boot into the TWRP I linked, and then optionally (not neccessary, but going to 10 from 9 without a clean install felt wrong for me), do a clean install of A10 by doing wipe cache, data, and system, and then installing/flashing the A10 zip.
Once installed, don't reboot to system yet, instead see what A/B slot you're in, switch to the other slot that you're not in currently (maybe you have to boot to system first, and then reboot into android 10 twrp through ADB if that doesn't work), and flash magisk and reboot to system. I'm not sure if step #8 is neccesary, but if it is and your device isn't booting, boot into TWRP through ADB and switch into the other A/B slot.
freeshared said:
Requirements:
1)Make sure you have working TWRP in your OOS pie 9.0.9
2)Download latest bluespark TWRP from the link https://github.com/engstk/android_device_oneplus_enchilada/releases
3)Download Magisk 20.1 from the link https://github.com/topjohnwu/Magisk/releases/download/v20.1/Magisk-v20.1.zip
4)Download android 10 stable rom
Procedure:
1)Boot in to TWRP recovery from your OOS 9.0.9
2)Flash latest bluespark TWRP (downloaded from above link)
3)Reboot recovery
4)Flash OOS 10 stable rom
5)Flash latest bluespark TWRP(again)
6)Reboot recovery
7)Flash magisk 20.1
8)Reboot recovery
9)Reboot system
Click to expand...
Click to collapse
if i am using blu_spark extras v9.107 (A10 support) i will not run into any problems i hope.
when updating in Pie, i usualy will disable all magisk modules before updating, did you do that for updating to 10?
ferr4ri said:
when updating in Pie, i usualy will disable all magisk modules before updating, did you do that for updating to 10?
Click to expand...
Click to collapse
Yes, I always uninstall Magisk when flashing any OTA update.
freeshared said:
Requirements:
1)Make sure you have working TWRP in your OOS pie 9.0.9
2)Download latest bluespark TWRP from the link https://github.com/engstk/android_device_oneplus_enchilada/releases
3)Download Magisk 20.1 from the link https://github.com/topjohnwu/Magisk/releases/download/v20.1/Magisk-v20.1.zip
4)Download android 10 stable rom
Procedure:
1)Boot in to TWRP recovery from your OOS 9.0.9
2)Flash latest bluespark TWRP (downloaded from above link)
3)Reboot recovery
4)Flash OOS 10 stable rom
5)Flash latest bluespark TWRP(again)
6)Reboot recovery
7)Flash magisk 20.1
8)Reboot recovery
9)Reboot system
Click to expand...
Click to collapse
Just to be clear, you used TWRP 3.3.1-x blu_spark v9.107 from the Github link? I ask only because I currently have TWRP 3.2.3-x blue_spark and I want to make sure that the 3.3.1-x is for Android 10.
Kpenguin.5284 said:
Code:
Error applying update: 7 (ErrorCode::kInstallDeviceOpenError)
Updater process ended with ERROR: 1
This is when flashing OOS stable 10 zip. What is wrong?
Click to expand...
Click to collapse
Flash the correct TWRP recovery, go through the op once again,I haven't encountered any error,every thing went smoothly
ferr4ri said:
if i am using blu_spark extras v9.107 (A10 support) i will not run into any problems i hope.
when updating in Pie, i usualy will disable all magisk modules before updating, did you do that for updating to 10?
Click to expand...
Click to collapse
I only use busybox module and never disabled it while updating,but i suppose it will be safe to disable the magisk modules to be safe
djkidd said:
Just to be clear, you used TWRP 3.3.1-x blu_spark v9.107 from the Github link? I ask only because I currently have TWRP 3.2.3-x blue_spark and I want to make sure that the 3.3.1-x is for Android 10.
Click to expand...
Click to collapse
Yes use "twrp-3.3.1-x_blu_spark_v9.107_op6.zip"
To be honest, we now got to the point where it's as simple as "Just use the latest Blu.Spark TWRP and do as usual" haha, everything works as it should now !
Thanks for the tutorial.
It's works.
So I need to update from 9.0.2 before following the tutorial or can I jump straight to 10.0.1?
Any recommendations for stable oos 10 rom?
Haven't flashed yet but I've heard magisk 20.1 doesn't work and Android 10, is it working for anyone here?
ryanallaire said:
Haven't flashed yet but I've heard magisk 20.1 doesn't work and Android 10, is it working for anyone here?
Click to expand...
Click to collapse
Currently on Oos 10.0.1 with magisk 20.1 with no issues whatsoever.
Did standard dirty flashing with blu spark twrp 9.107.
Tapatalk'ed over the intertubes from my awesome enchilada
So i tried to follow the guide, but after i installed the full OOS rom, then install TWRP again, it said unsupported android version, and it went downhill from there... I ended using msmtool to recover, maybe it's cuz i used a 10.0.1 rom?

Can I still flash gsi on devices that twrp doesn't support?

My device isn't supported by twrp (Huawei fla-lx1 or fla-l21) and I want to install this gsi image file because my phone is treble compatible, is it a must to have a working twrp image? Doesn't LOS has its own recovery thing? Can I still root it and install modules? Can I do ANYTHING?
Relected said:
My device isn't supported by twrp (Huawei fla-lx1 or fla-l21) and I want to install this gsi image file because my phone is treble compatible, is it a must to have a working twrp image? Doesn't LOS has its own recovery thing? Can I still root it and install modules? Can I do ANYTHING?
Click to expand...
Click to collapse
Once you can unlock bootloader then you could do a step further, GSIs can be installed through fastboot, and in regards LOS recovery it must there one specific for your device, they're not generic recovery images for every android device.

Categories

Resources