java.lang.Error: com.jaredrummler.apkparser.exception.ParserException: Unexpected chunk Type:203
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1173)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Caused by: com.jaredrummler.apkparser.exception.ParserException: Unexpected chunk Type:203
at com.jaredrummler.apkparser.parser.ResourceTableParser.readChunkHeader(ResourceTableParser.java:204)
at com.jaredrummler.apkparser.parser.ResourceTableParser.readPackage(ResourceTableParser.java:96)
at com.jaredrummler.apkparser.parser.ResourceTableParser.parse(ResourceTableParser.java:67)
at com.jaredrummler.apkparser.ApkParser.parseResourceTable(ApkParser.java:417)
at com.jaredrummler.apkparser.ApkParser.transBinaryXml(ApkParser.java:269)
at com.jaredrummler.apkparser.ApkParser.parseManifestXml(ApkParser.java:207)
at com.jaredrummler.apkparser.ApkParser.getManifestXml(ApkParser.java:126)
at com.android.apkinstalltest.MainActivity$onCreate$1.run(MainActivity.kt:33)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Looking at the manifest xml string that it tried to build, I can see that its result is:
Example attached:
split_delight.zip
The crash exception:
Looking at the manifest xml string that it tried to build, I can see that its result is:
But according to some online tools, it should have been:
Somehow it got
</http://schemas.android.com/apk/distribution:module>
instead of</dist:module>
.So this makes it a non valid XML content. Also I noticed other differences, such as "resourceId:0x7f0d006b"