I have trouble restoring full backups made with official TWRP 3.4.0-3. The phone has never been updated or flashed with an Android 10 rom (neither custom nor stock OOS), had the last HavocOS 2.9 build (Android 9) on both slots (no gapps or the like) and was rooted using Magisk (only for the purpose of rooting it, nothing else). Prior to making the backup I had removed all locking security (password and fingerprints). There was a secondary user set up on the phone.
It seems, the restored /data partition causes the phone to boot into recovery instead of system (almost immediately, there is no screen logo of the rom). If /data is wiped after the restore process, the phone boots fine (albeit without any user isntalled apps and settings, of course).
The phone booted fine prior to this (first ever) attempt to restore a backup, so I don't think that /data was corrupt prior to making the backups. I suspect that either the backup or the restore process with TWRP was erroneous.
I also tried the latest 3.5.0-9 official release to restore either of the backups but the result is always the same (bootloop into recovery with restored /data, regular boot into /system with /data wiped after the restore).
I would appreciate it if anyone has any tips on how to get /data from one of the backups to work. All saved files are still on the phone (and like the backup files also on a computer), but I would rather not have to set up everything from scratch.
Many thanks in advance!
PS.:
And a side note to everyone taking backups: make sure the restore process works prior to getting into a situations where you depend on restoring them to work!