You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
openjdk version "18.0.1.1" 2022-04-22
OpenJDK Runtime Environment (build 18.0.1.1+2-6)
OpenJDK 64-Bit Server VM (build 18.0.1.1+2-6, mixed mode, sharing)
jadx Error:
ERROR: Failed to parse '.arsc' file
jadx.core.utils.exceptions.JadxException: Error decode: D:\download\browser\resources.arsc
at jadx.api.ResourcesLoader.decodeStream(ResourcesLoader.java:78)
at jadx.core.dex.nodes.RootNode.loadResources(RootNode.java:173)
at jadx.api.JadxDecompiler.load(JadxDecompiler.java:122)
at jadx.gui.JadxWrapper.open(JadxWrapper.java:65)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.IOException: Config size < 28
at jadx.core.xmlgen.ResTableParser.parseConfig(ResTableParser.java:373)
at jadx.core.xmlgen.ResTableParser.parseTypeChunk(ResTableParser.java:221)
at jadx.core.xmlgen.ResTableParser.parsePackage(ResTableParser.java:162)
at jadx.core.xmlgen.ResTableParser.decodeTableChunk(ResTableParser.java:110)
at jadx.core.xmlgen.ResTableParser.decode(ResTableParser.java:86)
at jadx.core.xmlgen.ResDecoder.decode(ResDecoder.java:28)
at jadx.core.dex.nodes.RootNode.lambda$loadResources$7(RootNode.java:173)
at jadx.api.ResourcesLoader.decodeStream(ResourcesLoader.java:61)
... 6 common frames omitted
Our ResTableParser.parsePackage reads a very large size that can not be correct for the package chunk. Apktool seems to ignore the size and simple reads until it encounters a chunk of an unknown type.
Modifying Jadx to read the chunks the same way as apktool does we run into a chunk of type 0x0203 = TYPE_LIBRARY (called Header.XML_TYPE_LIBRARYin apktool). We don't have any code yet for loading such a chunk.
Log level: Error
Version: 1.4.4
Binary: jadx-gui-1.4.4-no-jre-win.exe
File causing the error: resources.arsc.zip
Java VM:
jadx Error:
Originally posted by @oxou in #178 (comment)
The text was updated successfully, but these errors were encountered: