How to extract data from ADB/twrp (.ab) backup?

Hi guys,

i made a backup using ADB and TWRP, no i have a backup.ab that i cant do anything with. I've been searching for a while and i cant unpack, split, or extract the backup. I tried using windows 10, ubuntu bash (on winows10), and virtual linux.

so far, windows and virtual linuxmint 18 give me about the same error.

I used :

Code:
java -jar abe.jar unpack backup1.ab nexus745544.tar

To unpack it, but i get the following error (both windows and linux):

Code:
Invlaid Magic: TWRPtwstreamheaderöâS·TWRPtwfilename€ÌøÔñ£â/data/media/0/TWRP/BACKUPS/0117111846320501/2017-12-17--02-02-18_NRD90MN920PVPS3DQK1/system.ext4.winTWRPtwdatablockDÝíº/app/00407550000000000000000000000062132154162340010533xustar rootroot50 RHT.security.selinux=u:object_r:system_file:s0 Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Invalid Magic TWRPtwstreamheaderöâS·TWRPtwfilename€ÌøÔñ£â/data/media/0/TWRP/BACKUPS/0117111846320501/2017-12-17--02-02-18_NRD90MN920PVPS3DQK1/system.ext4.winTWRPtwdatablockDÝíº/app/00407550000000000000000000000062132154162340010533xustar rootroot50 RHT.security.selinux=u:object_r:system_file:s0 at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:502) at org.nick.abe.Main.main(Main.java:128) ... 5 more Caused by: java.lang.IllegalArgumentException: Invalid Magic TWRPtwstreamheaderöâS·TWRPtwfilename€ÌøÔñ£â/data/media/0/TWRP/BACKUPS/0117111846320501/2017-12-17--02-02-18_NRD90MN920PVPS3DQK1/system.ext4.winTWRPtwdatablockDÝíº/app/00407550000000000000000000000062132154162340010533xustar rootroot50 RHT.security.selinux=u:object_r:system_file:s0 at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:332) ... 6 more


other commands i tried:

Code:
dd if=backup1.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" > backup11.tar

This command creates a backup11.tar (with 0 bytes) but the terminal just hangs.

Code:
dd if=backup1.ab bs=24 skip=1|openssl zlib -d > mybackup7668.tar

This command also creates the .tar file with 0 bytes but the terminal throws error:

Code:
openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

which i'm still trying to fix this error, maybe it fixes it.

if you have any more questions, let me know.

Any help is appreciated. Thanks.

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by gjones
4 hours ago
Last post by suzanne.sauer
2 hours ago
Last post by lorenzo.bogan
2 hours ago
Last post by ejacobson
4 hours ago
HTC HD Touch
Started by fhuel
Last post by tnolan
18 minutes ago
Last post by maxime.corkery
2 hours ago
Last post by zack93
20 minutes ago
Last post by bonnie.howe
13 minutes ago
Last post by jeramy29
4 hours ago
Last post by golden.torp
35 minutes ago
Last post by mann.yazmin
1 hour ago
Last post by albin.pagac
1 hour ago