Skip to content
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

Decompile Error - Invalid CEN header #13

Closed
7 tasks done
iamLazyCode opened this issue Sep 4, 2023 · 8 comments
Closed
7 tasks done

Decompile Error - Invalid CEN header #13

iamLazyCode opened this issue Sep 4, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@iamLazyCode
Copy link

Prerequisites

  • This is not a support issue or a question. For support, questions, or help, see support links.
  • I performed a cursory search of the issue tracker on APK Tool GUI to avoid opening a duplicate issue
  • I performed a cursory search of the issue tracker on [Apktool] (https://github.com/iBotPeaches/Apktool/issues?q=is%3Aissue) and Baksmali but did not found an answer
  • I am running the latest version of APK Tool GUI and Apktool.jar.
  • I have tried to decompile and compile without changing anything.
  • I have read the FAQ
  • I have checked using APKiD and verified that the app does not have protection(s) like packer, obfuscation, anti-tamper, anti-cheats etc

Describe the bug

[16:47:09] Framework cache cleared
[16:47:09] Using Apktool 2.8.1 on Truecaller mod.apk
[16:47:09] Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
[16:47:09] at brut.androlib.res.ResourcesDecoder.hasManifest(ResourcesDecoder.java:70)
[16:47:09] at brut.androlib.res.ResourcesDecoder.decodeManifest(ResourcesDecoder.java:102)
[16:47:09] at brut.androlib.ApkDecoder.decode(ApkDecoder.java:95)
[16:47:09] at brut.apktool.Main.cmdDecode(Main.java:190)
[16:47:09] at brut.apktool.Main.main(Main.java:93)
[16:47:09] Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
[16:47:09] at brut.directory.ZipRODirectory.(ZipRODirectory.java:55)
[16:47:09] at brut.directory.ZipRODirectory.(ZipRODirectory.java:38)
[16:47:09] at brut.directory.ExtFile.getDirectory(ExtFile.java:49)
[16:47:09] =====[ Error ]=====
[16:47:09] Decompiling failed
[16:47:09] Time started: 16:47:09
[16:47:09] Time elapsed: 00:00

To Reproduce

reinstalled java and requirements but still same

Logs

[16:47:09] Framework cache cleared
[16:47:09] Using Apktool 2.8.1 on Truecaller mod.apk
[16:47:09] Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
[16:47:09] at brut.androlib.res.ResourcesDecoder.hasManifest(ResourcesDecoder.java:70)
[16:47:09] at brut.androlib.res.ResourcesDecoder.decodeManifest(ResourcesDecoder.java:102)
[16:47:09] at brut.androlib.ApkDecoder.decode(ApkDecoder.java:95)
[16:47:09] at brut.apktool.Main.cmdDecode(Main.java:190)
[16:47:09] at brut.apktool.Main.main(Main.java:93)
[16:47:09] Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
[16:47:09] at brut.directory.ZipRODirectory.(ZipRODirectory.java:55)
[16:47:09] at brut.directory.ZipRODirectory.(ZipRODirectory.java:38)
[16:47:09] at brut.directory.ExtFile.getDirectory(ExtFile.java:49)
[16:47:09] =====[ Error ]=====
[16:47:09] Decompiling failed
[16:47:09] Time started: 16:47:09
[16:47:09] Time elapsed: 00:00

APK

No response

APK Tool GUI version

3.2.2

Apktool version

2.8.1

Java version

20.0.2

Operating System and version

Win11 22H2

@iamLazyCode iamLazyCode added the bug Something isn't working label Sep 4, 2023
@AndnixSH
Copy link
Owner

AndnixSH commented Sep 6, 2023

Do you mind sharing the file "Truecaller mod.apk"?

@iamLazyCode
Copy link
Author

Do you mind sharing the file "Truecaller mod.apk"?

https://easyupload.io/bq3r9b

@AndnixSH
Copy link
Owner

AndnixSH commented Sep 6, 2023

Same issue: iBotPeaches/Apktool#3198

Looks like it's an issue with JDK 20, JDK 11 didn't have this issue. -Djdk.util.zip.disableZip64ExtraFieldValidation=true temporary fixes the issue, so I guess I'll add option to allow everyone to add custom arguments for Java

@iamLazyCode
Copy link
Author

Same issue: iBotPeaches/Apktool#3198

Looks like it's an issue with JDK 20, JDK 11 didn't have this issue. -Djdk.util.zip.disableZip64ExtraFieldValidation=true temporary fixes the issue, so I guess I'll add option to allow everyone to add custom arguments for Java

thankyou so much dev , sp shall i wait for the update or can i implement this fix anyhow to get it working ?

@AndnixSH
Copy link
Owner

AndnixSH commented Sep 6, 2023

thankyou so much dev , sp shall i wait for the update or can i implement this fix anyhow to get it working ?

You can clone and modify the source if you want, but I will take care of adding custom arguments

Or you can try to downgrade JDK to older version. I recommended JDK 17 (TLS)

@iamLazyCode
Copy link
Author

thankyou so much dev , sp shall i wait for the update or can i implement this fix anyhow to get it working ?

You can clone and modify the source if you want, but I will take care of adding custom arguments

Or you can try to downgrade JDK to older version. I recommended JDK 17 (TLS)

Thankyou so much for amazing tool il try your suggestions after i reach home and test and update to you here

@AndnixSH
Copy link
Owner

AndnixSH commented Sep 6, 2023

I have added option to use custom JVM arguments and added the arguments from the script. Just enable it in the settings

Here is test build of APKToolGUI.exe
APKToolGUI.zip

Let me know if it works

image

@iamLazyCode
Copy link
Author

absolutely perfect work done ....thankyou so much

image

@AndnixSH AndnixSH changed the title Decompile Error Decompile Error - Invalid CEN header Sep 6, 2023
@AndnixSH AndnixSH pinned this issue Sep 6, 2023
@AndnixSH AndnixSH unpinned this issue Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants