Invalid chunk type
See original GitHub issueInformation Apktool Version (apktool -version) - v2.4.0 Operating System (Mac, Linux, Windows) - Windows and Linux APK From? (Playstore, ROM, Other) - Google Play store https://play.google.com/store/apps/details?id=com.bukalapak.android&hl=in
root@jeruk:/home/sihar# apktool d bukalapak.apk
I: Using Apktool 2.4.0 on bukalapak.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Invalid chunk type: expected=0x00000200, got=0x00000203
at brut.androlib.res.decoder.ARSCDecoder.checkChunkType(ARSCDecoder.java:542)
at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:88)
at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:748)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:67)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:59)
at brut.androlib.Androlib.getResTable(Androlib.java:68)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:228)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:118)
at brut.apktool.Main.cmdDecode(Main.java:167)
at brut.apktool.Main.main(Main.java:76)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:22 (8 by maintainers)
Top Results From Across the Web
Photoshop will not open some PNG files "Invalid chunk type"
Every time I try to open these PNG files back in Photoshop, I always get the following error message "Invalid chunk type".
Read more >Some PNG files report "invalid chunk type" when loading #586
This file contains an invalid eXIf png chunk. This chunk has an invalid length. A lot of libraries just ignore this chunk. The...
Read more >ImageIO: PNG [5C][30][0D]I: invalid chunk type mean? - Stack ...
UPDATE: When i construct a UIImage in the didFinishPickingMedia method using 'webData', it doesn't give an error and the image is create sans...
Read more >PNG image with invalid chunk type is not loaded in Firefox ...
PNG image with invalid chunk type is not loaded in Firefox. Chrome ignores error and displays image. Summary: PNG image with invalid chunk...
Read more >Chunk Types - PNGme: An Intermediate Rust Project
Your chunk types should always be valid chunks. It should not be possible to construct an invalid chunk type using your public interface....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry man, but this just seems odd. Did you read this bug report you responded to?
I responded earlier with all the details here (https://github.com/iBotPeaches/Apktool/issues/2099#issuecomment-791965193) and that link included the PR (https://github.com/iBotPeaches/Apktool/pull/2527) that I marked as fixing a good portion of this ticket.
However, why just pluck a singular commit? I’m sure you’ll want the other fixes and enhancements in the master branch vs 1 commit for 1 issue. I can’t predict what 1 commit applied on top of 2.5.0 will even do.
Then finally, we’ve been building builds for each commit to master under the “Build” job. You can see the last commit to master job trigged a binary and archived it here - https://github.com/iBotPeaches/Apktool/actions/runs/1002640994 so you don’t really need to build them locally. You can test bleeding edge builds for every master commit.
Damn this apk is weird. It has like 60+ dynamic references.
Confirmed.