PLEASE HELP!!
I always fail to boot after restoring an encrypted system in TWRP.
Here is my process:
1) I did the factory reset and formated the data partition in TWRP, reboot to TWRP, then
2) installed LOS 18.1 (which has encryption and enforcing SELinux by default), flash TWRP zip file, reboot, do the initial setup wizard (without lockscreen security), then
3) reboot to TWRP right away and do the backup(boot, system image, vendor image, dtbo, data partitions) without any problem.
4) factory reset and format data partition, reboot to TWRP, then restore the backup (without any error/warning), then reboot
5) after "Powered by Android" logo showed up for several seconds, the phone reboot it self into TWRP, and the TWRP shows as following:
{
Android Rescue Party trigger! Possible solutions?
Either:
1. Wipe caches, and/or
2. Format data, and/or
3, Clean-flash your ROM.
The reported problem is:
'--reason=set_policy_failed: /data/misc'
}
6) when I reboot to system, I always fail to boot unless I factory reset the phone.
I've tried several ROMs (LineageOS, crDroid, ArrowOS) with encryption by default, ALL of them FAIL to boot. Then I try installing ROM and flashing "Disable_Dm-Verity_ForceEncrypt" to disalbe the encryption and Dm-Verity, then I do the backup and restore in TWRP, It restore and boot successfully. So the issue must because of encryption or Dm-Verity.
Please help! I really want to use an encrypted system with working TWRP nand backup & restore function. Many thanks!