So after bashing my head for 12 straight hours, here I am. To avoid the trouble of restoring each app manually, I did the "adb backup --twrp" with just the data partition selected. Seemed to go well. Gave a success message too.
But every time I tried restoring it, it went on for whole 1.5 hours each time, and the bash command would complete but phone would still be stuck at restore screen with the bar moving but no update in logs.
So thought of extracting data and putting it back manually, but that too, seems like trouble.
I've tried the twrp extractor, but to no success.
running the below command gives the following response:
$ twrpabx /media/storage/Oneplus/ROMs/backup.ab
Input file: '/media/storage/Oneplus/ROMs/backup.ab'
Read 512 bytes
Corrupt start of backup header
checking the head:
$ head backup.ab
libc: Access denied finding property "libc.debug.malloc.options"
libc: Access denied finding property "ro.debuggable"
libc: Access denied finding property "libc.debug.malloc.options"
libc: Access denied finding property "ro.debuggable"
TWRPtwstreamheader;�%]TWRPtwfilename�,�/ ��f:/data/media/0/TWRP/BACKUPS/4b8e20e/2020-03-04--14-18-08/data.ext4.winTWRPtwdatablockD���/property/00407000000000000000000000000140136300052140011613xustar rootroot57 RHT.security.selinux=u
bject_r
roperty_data_file:s0
39 TWRP.security.e4crypt=21DK
/property/004070000000000000000000000000001363000521400115035ustar rootroot/property/persistent_properties01006000000000000000000000000071136300052140016207xustar rootroot57 RHT.security.selinux=u
bject_r
roperty_data_file:s0
/property/persistent_properties010060000000000000000000000053531363000521400161070ustar rootroot
(
persist.vendor.radio.atfwd.starttrue