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

mhys33

Member
Aug 19, 2014
22
6
0
Bangalore
Hmm let me remember...
Go to Vendor/etc …> fstab.xxxx open it and go to data line, at the end of the line you'll see the encryption, just delete it (same as image) the word "check" is the latest word that needs to be keeped.
Now go to recovery.fstab and do the same look for userdata and delete the encryption part until length=xxxx.
Look at the pictures that I attached.
After that reboot and do the wipes on stock recovery. Now try Twrp :) it worked for me.
Don't waste your time if you are going to use OpenKirin roms, because it didn't worked, it encrypts again the device. I have an idea about which file I need to edit but I haven't tried it yet, because I'm using Aosip.

Hope it works for you :)
If you ever do get decryption working on these OpenKirin ROMs, that would be amazing..!! Please let us know if you figure it out.
 

zgfg

Senior Member
Oct 10, 2016
4,364
1,865
233
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.
Btw, isn't it written originally fileencryption, not forceencrypt in the line for /userdata partition

Hmm let me remember...
Go to Vendor/etc …> fstab.xxxx open it and go to data line, at the end of the line you'll see the encryption, just delete it (same as image) the word "check" is the latest word that needs to be keeped.
Now go to recovery.fstab and do the same look for userdata and delete the encryption part until length=xxxx.
Look at the pictures that I attached.
After that reboot and do the wipes on stock recovery. Now try Twrp :) it worked for me.
Don't waste your time if you are going to use OpenKirin roms, because it didn't worked, it encrypts again the device. I have an idea about which file I need to edit but I haven't tried it yet, because I'm using Aosip.
Hope it works for you :)
If you removed Encryption and reformatted Data, does Project menu (dial: *#*#2846579#*#*), Network Information Query/Vendor Country Info still show correct Vendor: hw, Country: eu
 

Attachments

visa91

Member
Oct 23, 2019
9
1
3
I have been reading the thread but I don't have one thing clear:
I have a EMUI 9.1 magisk rooted phone flashed in recovery. Can I flash directly TWRP to erecovery? Or I need to flash TWRP first in recovery and then in erecovery.

In the first case, is correct the following command?
fastboot flash recovery2_ramdisk TWRP_XXXX

Also, as I have EMUI 9.1 stock ROM do I need to decrypt or it is not necessary to make TWRP works?

Thanks
 
Last edited:

tusko5

Senior Member
Jan 27, 2011
107
29
0
May I boot this without flashing with fastboot boot twrp.img ??
EDIT: It seems that this not work in Pie. Sorry for the noise.
 
Last edited:

Okiera29

Senior Member
Apr 18, 2014
238
59
48
Oklahoma City
I can not seem to get this to boot. I use 'fastboot flash recovery_ramdisk {disk img name}' and it flashes and says everything is okay. When I try to boot into recovery(vol + and power) it doesn't matter if it is plugged into the computer or not. It boot loops a couple times and then tries to boot into the system. I have soft-bricked my device and I am trying to get it back up and running. Since I was on Pie, non of the usual suspects work anymore
 
Last edited:

zgfg

Senior Member
Oct 10, 2016
4,364
1,865
233
phone is rooted with EMUI9.1 latest firmware security patch may 1 2020
Magisk 20.4, root checker says rooted
but still can not make any changes to build prop or any other customization fails
any help?
Because System is read only. You should use systemless changes - to change build props use Magisk module Magisk Hide Props Config - install, reboot, use Terminal and command: props

For AdAway, you must enable Systemless hosts in Magisk, and reboot