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

Invalid CEN header (invalid zip64 extra data field size) #200

Open
qyzhaojinxi opened this issue Sep 27, 2023 · 0 comments
Open

Invalid CEN header (invalid zip64 extra data field size) #200

qyzhaojinxi opened this issue Sep 27, 2023 · 0 comments

Comments

@qyzhaojinxi
Copy link

Describe the bug

decompile apk failed

To Reproduce
Steps to reproduce the behavior:

select apk to decompile

Expected behavior

decompile success

Console Logs

brut.androlib.exceptions.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
at brut.androlib.res.ResourcesDecoder.hasManifest(ResourcesDecoder.java:70)
at brut.androlib.res.ResourcesDecoder.decodeManifest(ResourcesDecoder.java:102)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:95)
at brut.apktool.Main.cmdDecode(Main.java:190)
at brut.apktool.Main.main(Main.java:93)
Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
at brut.directory.ZipRODirectory.(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.(ZipRODirectory.java:38)
at brut.directory.ExtFile.getDirectory(ExtFile.java:49)
at brut.androlib.res.ResourcesDecoder.hasManifest(ResourcesDecoder.java:68)
... 4 more
Caused by: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1750)
at java.base/java.util.zip.ZipFile$Source.checkExtraFields(ZipFile.java:1276)
at java.base/java.util.zip.ZipFile$Source.checkAndAddEntry(ZipFile.java:1219)
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1689)
at java.base/java.util.zip.ZipFile$Source.(ZipFile.java:1464)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1427)
at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:723)
at java.base/java.util.zip.ZipFile.(ZipFile.java:250)
at java.base/java.util.zip.ZipFile.(ZipFile.java:179)
at java.base/java.util.zip.ZipFile.(ZipFile.java:193)
at brut.directory.ZipRODirectory.(ZipRODirectory.java:53)
... 7 more
Decoding process exited with code 1

System Information:

  • OS: mac 13.5.2
  • VSCode Version: 1.82.1 (Universal)

Additional context

Maybe it's releated with this:iBotPeaches/Apktool#3290 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant