Hey Guys
well i have problem i did backup with adb (6.1g file ) and did flash my phone now i need to get my data with ABE as Tar file but i get this error + tar corrupted
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to process version 5
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:231)
at org.nick.abe.Main.main(Main.java:40)
... 5 more
Caused by: java.lang.IllegalArgumentException: Don't know how to process version 5
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:71)
... 6 more
does this mean my backup is corrupted !!
i did try eve with abe-master-nelenkov.jar but it give direct error (no tar output )
info :
system : os x 10.11
java -version : openjdk version "11.0.1" 2018-10-16&&&&OpenJDK Runtime Environment 18.9 (build 11.0.1+13)&&&&OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
Abe : 20180521
java -jar abe.jar -debug info backup.ab give me :
android-backup-extractor v20180521
Hey thank for the reply
i didn't get you witch version you mean !!! i already have downloaded the << android-backup-tookit-20180521.zip >>
give me i link
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Use abe.jar inside "http://android-backup-tookit-20180521.zip\android-backup-tookit\android-backup-extractor\android-backup-extractor-20180521-bin\abe.jar"
The version you are using is the Nelenkov version compiled directly from his github, but mine has more features.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1) Do you still have the device of origin, I mean, can you make again the adb backup, or you don't have the device anymore?
2) The failure happens when performing a backup or restore?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok probably the backup is damaged. Try splitting the backup into individual apps, with "adb-split-no-extraction.sh" It will create an .ab file for each app, then try to restore individually those that you want your data back. If it doesn't work we can try something else.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey Drago
adb-split-no-extraction.sh give same error :
android-backup-splitter/adb-split-no-extraction.sh ../backup.ab
Extracting ab archive...
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: java.io.EOFException: Unexpected end of ZLIB input stream
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:516)
at org.nick.abe.Main.main(Main.java:142)
... 5 more
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
at java.base/java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:245)
at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:159)
at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:474)
... 6 more
Java failed to extract the ab archive. Aborting.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank time for your time Drago
First command give me :
root@Macbook /V/n/tab2# java -jar ../nt/android-backup-tookit/abe.jar -debug info /Volumes/no/nt/backup.ab
android-backup-extractor v20180521
Strong AES encryption allowed
"/Volumes/no/nt/backup.ab" size is 6520843187 bytes
Magic: ANDROID BACKUP
Version: 5
Compressed: 1
Algorithm: none Second Command give me a Apps folder with size of 584Mb (backup.ab is 6G ) contain com.* (different apps ) but no data (i wish i can just bakcup my contact and images)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If it's a pure android usually contacts will be stored in com.android.providers.contacts, however since it's a Huawei you need to find which app stores the contacts. For pictures, there should be the shared folder at the same level as apps.
Did openssl zlib throw any error when decompressing?
it's not Huawei it's samsung s7 edge and i using a mac
couldn't find any contacts folder and no shared folder either just apps folder that contains some apps data
~#tail -c +25 /Volumes/no/nt/backup.ab | openssl zlib -d > /Volumes/no/nt/backup+25.tar give no error
tail -c +25 backup.ab > backup.zlib >> no error just a backup.zlib
pigz -d -z backup.zlib >> pigz: skipping: /Volumes/no/backup.zlib does not have compressed suffix
thank you Drago
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
extract the tar with 7zx i get this list of file and folder
Apps (like the old one exactly 584Mega no contact or image )
AndroidManifest.xml
assets
backup.tar
classes.dex
META-INF
res
resources.arsc
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi again, looks like the backup is corrupt. You can try sending your backup to the pigz developer in case he can help you, I can't help you anymore since it's not abe problem...
sorry saw your reply only now (got no notification)
thank you very much I'll try asap
have a nice day
finally I did it with the log, and I got this:
--------- beginning of main
--------- beginning of system
02-10 13:41:23.619 668 1077 W BackupManagerService: dataChanged but no participant pkg='com.skype.raider' uid=10273
02-10 13:42:35.085 668 3623 W BackupManagerService: dataChanged but no participant pkg='com.skype.raider' uid=10273
02-10 13:44:08.551 668 678 V BackupManagerService: Requesting full backup: apks=false obb=false shared=false all=false system=true pkgs=[Ljava.lang.String;@4c43fa7
02-10 13:44:08.565 668 678 I BackupManagerService: Beginning full backup...
02-10 13:44:08.729 668 678 D BackupManagerService: Starting backup confirmation UI, token=1139587420
02-10 13:44:08.994 668 678 D BackupManagerService: Waiting for full backup completion...
--------- beginning of system
--------- beginning of main
02-10 13:55:20.452 668 3510 V BackupManagerService: Requesting full backup: apks=false obb=false shared=false all=false system=true pkgs=[Ljava.lang.String;@af3b32
02-10 13:55:20.452 668 3510 I BackupManagerService: Beginning full backup...
02-10 13:55:20.452 668 3510 D BackupManagerService: Starting backup confirmation UI, token=1093670859
02-10 13:55:20.475 668 3510 D BackupManagerService: Waiting for full backup completion...
02-10 13:55:30.718 668 1077 D BackupManagerService: acknowledgeFullBackupOrRestore : token=1093670859 allow=true
02-10 13:55:30.796 668 11885 I BackupManagerService: --- Performing full-dataset adb backup ---
02-10 13:55:31.789 668 11885 D BackupManagerService: awaiting agent for ApplicationInfo{82098fd com.lightelements.photoeventplanner}
02-10 13:55:31.946 668 3633 D BackupManagerService: agentConnected pkg=com.lightelements.photoeventplanner agent=android.os.BinderProxy@1253cbb
02-10 13:55:31.947 668 11885 I BackupManagerService: got agent android.app.IBackupAgent$Stub$Proxy@8fe05d8
02-10 13:55:31.962 668 11922 D BackupManagerService: Calling doFullBackup() on com.lightelements.photoeventplanner
02-10 14:00:32.071 668 1252 V BackupManagerService: TIMEOUT: token=3868cd0
02-10 14:00:32.073 668 1252 W BackupManagerService: adb backup timeout of PackageInfo{72dde83 com.lightelements.photoeventplanner}
02-10 14:00:32.130 668 11885 E BackupManagerService: Error backing up com.lightelements.photoeventplanner: null
02-10 14:00:32.144 668 3510 D BackupManagerService: Full backup processing complete.
02-10 14:00:32.151 668 11885 D BackupManagerService: Full backup pass complete.
You have a problem with the app "com.lightelements.photoeventplanner" (notice the capital E which means error)
Uninstall it and try again. You should not get any line with the E letter:
Last edit: dragomerlin 2018-02-10
Last edit: killuaDK 2018-12-20
Hey Guys
well i have problem i did backup with adb (6.1g file ) and did flash my phone now i need to get my data with ABE as Tar file but i get this error + tar corrupted
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to process version 5
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:231)
at org.nick.abe.Main.main(Main.java:40)
... 5 more
Caused by: java.lang.IllegalArgumentException: Don't know how to process version 5
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:71)
... 6 more
Strong AES encryption allowed
"/Volumes/no/backup.ab" size is 6520843187 bytes
Magic: ANDROID BACKUP
Version: 5
Compressed: 1
Algorithm: none
Download my version it is compatible with version 5
Hey thank for the reply
i didn't get you witch version you mean !!! i already have downloaded the << android-backup-tookit-20180521.zip >>
give me i link
Use abe.jar inside "http://android-backup-tookit-20180521.zip\android-backup-tookit\android-backup-extractor\android-backup-extractor-20180521-bin\abe.jar"
The version you are using is the Nelenkov version compiled directly from his github, but mine has more features.
yea the error i posted is from je abe.jar from your android-backup-extractor-20180521-bin i didn't use the one from github
Uninstall the app com.lightelements.photoeventplanner before making the backup
adb uninstall -k com.lightelements.photoeventplanner
Hey Drago thank you for reply
i don't have that kind of app ..
what i did is to execute #adb logcat >> file.txt and i did a quick search of <<e backupmanagerservice="">> and find this error :
.
E BackupManagerService: Unknown tar entity type: 32
E BackupManagerService: Parse error in header: Unknown entity type 32
I hexdump : 0000 00 61 70 70 73 2f 63 6f 6d 2e 72 6f 6f 6b 69 65
I hexdump : 0010 73 74 75 64 69 6f 2e 70 65 72 66 65 63 74 76 69
I hexdump : 0020 65 77 65 72 2f 72 2f 73 68 61 64 65 72 73 00 00
I hexdump : 0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 0060 00 00 00 00 00 30 30 30 37 30 30 20 00 30 32 34
I hexdump : 0070 30 32 30 00 00 30 32 34 30 32 30 00 00 30 30 30
I hexdump : 0080 30 30 30 30 30 30 30 30 00 31 33 32 34 37 37 35
I hexdump : 0090 30 35 36 30 00 30 31 36 35 36 37 00 20 35 00 00
I hexdump : 00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 00f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 0100 00 00 75 73 74 61 72 00 30 30 00 00 00 00 00 00
I hexdump : 0110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 0120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 0130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 0140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 0150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 0160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 0170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 0180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 0190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 01a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 01b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 01c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 01d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 01e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I hexdump : 01f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
W BackupManagerService: io exception on restore socket read
W BackupManagerService: java.io.IOException: Unknown entity type 32
W BackupManagerService: at com.android.server.backup.BackupManagerService$PerformAdbRestoreTask.readTarHeaders(BackupManagerService.java:8867)
W BackupManagerService: at com.android.server.backup.BackupManagerService$PerformAdbRestoreTask.restoreOneFile(BackupManagerService.java:7960)
W BackupManagerService: at com.android.server.backup.BackupManagerService$PerformAdbRestoreTask.run(BackupManagerService.java:7805)
W BackupManagerService: at java.lang.Thread.run(Thread.java:764)
V BackupManagerService: Done consuming input tarfile, total bytes=585741312
I BackupManagerService: adb restore processing complete.
D BackupManagerService: Full restore pass complete.</e>
is that mean my backup is corrupted!!
Dude, first of all, I need more information.
1) Do you still have the device of origin, I mean, can you make again the adb backup, or you don't have the device anymore?
2) The failure happens when performing a backup or restore?
oki Dude ^__^
the faillure happen when i do restore
i did a bachkup month ago with samsung s7 edge (SM-G935F) with no password
after erasing data with twrp and installed magisk (for root) i did want to restore
i lanche #adb restore backup.ab >> click restore in the device >> start restore
after finish nothing seem to be restored except some SMS without contact name just numbers
i did try your adb extractor it show me that message : Exception in thread "main" java.lang.reflect.InvocationTargetException ....
i did logcat and did find this error :
E BackupManagerService: Unknown tar entity type: 32
thank you
Ok probably the backup is damaged. Try splitting the backup into individual apps, with "adb-split-no-extraction.sh" It will create an .ab file for each app, then try to restore individually those that you want your data back. If it doesn't work we can try something else.
Hey Drago
adb-split-no-extraction.sh give same error :
android-backup-splitter/adb-split-no-extraction.sh ../backup.ab
Extracting ab archive...
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: java.io.EOFException: Unexpected end of ZLIB input stream
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:516)
at org.nick.abe.Main.main(Main.java:142)
... 5 more
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
at java.base/java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:245)
at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:159)
at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:474)
... 6 more
Java failed to extract the ab archive. Aborting.
Ok it looks like the archive is damaged. Probably it's compressed but not encrypted. You can find out with:
java -jar abe.jar -debug info backup.ab
After that, try using openssl to extract the tar (you need Linux, Cygwin or macOS):
tail -c +25 backup.ab | openssl zlib -d > backup.tar
Thank time for your time Drago
First command give me :
root@Macbook /V/n/tab2# java -jar ../nt/android-backup-tookit/abe.jar -debug info /Volumes/no/nt/backup.ab
android-backup-extractor v20180521
Strong AES encryption allowed
"/Volumes/no/nt/backup.ab" size is 6520843187 bytes
Magic: ANDROID BACKUP
Version: 5
Compressed: 1
Algorithm: none
Second Command give me a Apps folder with size of 584Mb (backup.ab is 6G ) contain com.* (different apps ) but no data (i wish i can just bakcup my contact and images)
If it's a pure android usually contacts will be stored in com.android.providers.contacts, however since it's a Huawei you need to find which app stores the contacts. For pictures, there should be the shared folder at the same level as apps.
Did openssl zlib throw any error when decompressing?
Try also unpigz to decompress the file:
https://unix.stackexchange.com/questions/22834/how-to-uncompress-zlib-data-in-unix/312411#312411
it's not Huawei it's samsung s7 edge and i using a mac
couldn't find any contacts folder and no shared folder either just apps folder that contains some apps data
~#tail -c +25 /Volumes/no/nt/backup.ab | openssl zlib -d > /Volumes/no/nt/backup+25.tar give no error
tail -c +25 backup.ab > backup.zlib >> no error just a backup.zlib
pigz -d -z backup.zlib >> pigz: skipping: /Volumes/no/backup.zlib does not have compressed suffix
thank you Drago
Since pigz failed try it with python to see if it throws some error:
cat backup.zlib | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" > backup.tar
You can try again with pigz using a pipe:
pigz -dz < backup.zlib > backup.tar
Hey Drago sorry for the late
well the import python take alote of time and space from disk so it get terminated by signal SIGKILL (Forced quit)
extract the tar with 7zx i get this list of file and folder
Apps (like the old one exactly 584Mega no contact or image )
AndroidManifest.xml
assets
backup.tar
classes.dex
META-INF
res
resources.arsc
Hi again, looks like the backup is corrupt. You can try sending your backup to the pigz developer in case he can help you, I can't help you anymore since it's not abe problem...
https://github.com/madler/pigz/issues/44
oki Thank you Drago i sry i late