Twrp extraction
TWRP seems to add some rows.
$ java -debug -jar "/home/jonathan/Downloads/Android Backup Utilities/Android Backup Extractor/android-backup-extractor-20171005-bin/abe.jar" unpack backup.ab backup.tar Invlaid Magic: TWRPtwstreamheader¨G+TWRPtwfilename h?fs/external_sd/TWRP/BACKUPS/88f12f77/2018-01-22--10-32-14_onyx-userdebug_7.1.2_NJH47F_4cb9ee3dc1/system.ext4.winTWRPtwdatablockDÝíº/addon.d/00407550000000000000000000000062132311571050011257xustar 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¨G+TWRPtwfilename h?fs/external_sd/TWRP/BACKUPS/88f12f77/2018-01-22--10-32-14_onyx-userdebug_7.1.2_NJH47F_4cb9ee3dc1/system.ext4.winTWRPtwdatablockDÝíº/addon.d/00407550000000000000000000000062132311571050011257xustar 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¨G+TWRPtwfilename h?fs/external_sd/TWRP/BACKUPS/88f12f77/2018-01-22--10-32-14_onyx-userdebug_7.1.2_NJH47F_4cb9ee3dc1/system.ext4.winTWRPtwdatablockDÝíº/addon.d/00407550000000000000000000000062132311571050011257xustar rootroot50 RHT.security.selinux=u:object_r:system_file:s0 at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:332) ... 6 more
Skipping them helped but I don't get all data from an extraction. Help would be really appreciated :-)
Check your file: $ head backup.ab
Twrp has added some things in the beginning. Skipping those with: $ dd if=backup.ab bs=512 skip=3 | head
Got me to a semiworking extraction.
$ dd if=backup.ab bs=512 skip=3 | tar -x
I think there is a related issue on TWRP's Github about this already: https://github.com/omnirom/android_bootable_recovery/issues/133 They are indeed using a slightly different format, but I don't know the details.
Any update on this?
Any update on this?
solution?