Apktool: Decompiling error: Invalid chunk type
Information
- Apktool Version (
apktool -version
) - 2.4.0/2.4.1 - Operating System (Mac, Linux, Windows) - Windows
- APK From? (Playstore, ROM, Other) - Other (website)
Stacktrace/Logcat
PS C:\Users\User\Documents\android\apktool> ./apktool d 1415.apk
I: Using Apktool 2.4.1 on 1415.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:786)
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:66)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:236)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:118)
at brut.apktool.Main.cmdDecode(Main.java:170)
at brut.apktool.Main.main(Main.java:76)
Press any key to continue . . .
APK
https://apkpure.com/tiktok-musically/com.zhiliaoapp.musically
Question
Is there any solution to the problem? Can I manually patch an APK file to avoid this error?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 23
- Comments: 21 (5 by maintainers)
Yes.
Added into my local folder for bug 2099.
hope author will add this on his fix list. thank you
Same with mobile legends, they just applied same protection. I wonder if it’s related to Andresguard protection because i heard about it
https://apkcombo.com/en-dk/mobile-legends-bang-bang/com.mobile.legends/download/apk