-
Notifications
You must be signed in to change notification settings - Fork 66
Exception in unpacking whatsapp.ab in Termux #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
No need for Java. |
ab2tar won't work with encrypted backups. |
Does the backup need to be encrypted? What if we just use a empty password? |
You could continue without providing password however on newer versions of android even if you don't provide password it'll be encrypted by default to prevent data theft. |
@YuvrajRaghuvanshiS maybe you want to reopen this? |
TBH IDK. But that is to build abe.jar right? |
i think so(?) |
Do I understand you code correctly if I say, you take the abe.jar and work with the commands that come along with it? |
I don't follow. |
Nevermind, think I figured it out. |
Should maybe add to title that this concerns the Termux edition |
Alright. |
https://github.com/nelenkov/android-backup-extractor/releases @YuvrajRaghuvanshiS try replacing your current .jar with the new version from @nelenkov, maybe it solves the problem |
I'm afraid it does not solve the issue. /sdcard/WA_Test $ java -jar abe.jar unpack nopass.ab nopass.tar
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/nick/abe/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)
/sdcard/WA_Test $ java -version
java version "1.8.0_152"
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode) |
I'm testing older releases. |
@roberts01 you were saying something about different java for termux? A new maintained version. |
I think you need to use a newer Java, try 11 maybe |
Oh yeah, from DevX or something. They maintain the Java from HaxUs |
MasterDevX/Termux-Java#44 (comment) I asked @MasterDevX if he can upgrade his Java-Termux-Port to JDK 11 or higher. |
Thank you for this. |
No problem. |
Yes.
I never really thought about it I just downloaded whatever latest abe.jar was available on sourceforce.net and got it working on first try.
There is an unsaid rule : If it works don't touch it. I tried with latest version but that unfortunately has very high exception 😂 so I left it as is. |
"I never really thought about it I just downloaded whatever latest abe.jar was available on sourceforce.net and got it working on first try." Yeah but what JDK of Java do you have on your Desktop that works? I mean you must have Java on there for it to work |
java version "1.8.0_271" |
isn't version 8 like super old? |
It may be but it works just fine. |
https://github.com/nelenkov/android-backup-extractor/releases Nelenkov just released a version compatibility with 1.8, try that one. |
It did see you there. |
Working with https://github.com/nelenkov/android-backup-extractor/releases/tag/20210224105130-e30cc24 |
Can continue with Termux afterall. |
Yay |
You've got some work to do now LoL. I can't work on termux as of now because of university exams.
Also for this we can fork masterdevx's project and ship our java with these file by default. |
But I don't know how to do that.... :-( |
But the good part is, we reduce dependencies on outside sources, because our copy of their Termux-Java is then preserved in this project |
Kinda, we still need to modify them I'll check how.
Now that is something you can't create an issue about. Can you?😂 |
Is that a challenge? 😉 |
yes you can do that. A quick heads up https://www.oracle.com/java/technologies/javase-jce8-downloads.html this is required in java 8 and needed to put somewhere in system. You have to figure out to automate this. |
maybe I'll just ask the MasterDevX guys |
As this issue is now 'resolved', I thinl we can close this one and create a new issue focused on the fork with policy. |
Also, could you add the credits part from the Termux readme to the main readme? |
sure. Be sure to mention me so I get notified.
|
OH AND DON'T FORGET TO PUT THE JDK NUMBER (8) IN DEPENDENCIES |
pinning is about quick access to most pain in ass problem. |
java -jar abe.jar unpack whatsapp.ab whatsapp.tar <pass>
on termux results inException 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.util.zip.ZipException: invalid block type at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:516) at org.nick.abe.Main.main(Main.java:142) ... 5 more Caused by: java.util.zip.ZipException: invalid block type at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164) at java.io.FilterInputStream.read(FilterInputStream.java:107) at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:474) ... 6 more
The text was updated successfully, but these errors were encountered: