Skip to content

Decompile Error - Invalid CEN header #13

@iamLazyCode

Description

@iamLazyCode

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions