android-backup-extractor icon indicating copy to clipboard operation
android-backup-extractor copied to clipboard

failed extraction: exception in thread "main" java.lang.reflect.InvocationTargetException

Open lanresmith opened this issue 7 years ago • 5 comments

I'm getting this while trying to extract. PLEASE HELP

Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) ?l?=?±ô?y: java.lang.RuntimeException: java.lang.IllegalArgumentException: Invalid Magic xÄè? at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:502) at org.nick.abe.Main.main(Main.java:128) ... 5 more ?l?=?±ô?y: java.lang.IllegalArgumentException: Invalid Magic xÄè? at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:332) ... 6 more

lanresmith avatar Feb 08 '18 14:02 lanresmith

@nelenkov can you PLEASE look into this? Thanks.

lanresmith avatar Feb 09 '18 15:02 lanresmith

Looks like an invalid archive?

nelenkov avatar Feb 09 '18 15:02 nelenkov

@nelenkov Sorry, I don't understand what you mean by 'invalid archive'. Backup was done this way:

  • Went to command interface using Power key + volume up
  • Scrolled to backup
  • Selected it and it notified me when it was done

Phone is Infinix hot 4 pro

Thanks for your swift response.

lanresmith avatar Feb 15 '18 07:02 lanresmith

What you have is most probably a full partition dump, not an ADB backup. ADB backups are created using the 'adb backup' command while Android is running.

The format of your backup depends on the recovery of your phone. It could be compressed, or a just a raw ext4, etc. image.

nelenkov avatar Feb 15 '18 07:02 nelenkov

@nelenkov Oh! OK...

Now I have separate '.backup' files after the exception was thrown - the original '.ab' file no longer exists. What would you advise I do to recover my original files?

Thanks a lot for your support.

lanresmith avatar Feb 15 '18 10:02 lanresmith