jadx
jadx copied to clipboard
If the resources.arsc in the apk is illegal, an error will be reported directly
Some apps will modify the resource to an illegal value (the app can still run, and the resources.arsc can be opened normally in Android studio), but jadx will directly report an error when reading the resources.arsc file, and cannot open the file. It cannot be exported as a gradle project. resources.arsc compressed package: resources_arsc.zip resources_arsc.zip
Error message:
ERROR: Failed to parse '.arsc' file
jadx.core.utils.exceptions.JadxException: Error decode: C:\...\resources.arsc
at jadx.api.ResourcesLoader.decodeStream(ResourcesLoader.java:78)
at jadx.core.dex.nodes.RootNode.loadResources(RootNode.java:174)
at jadx.api.JadxDecompiler.load(JadxDecompiler.java:117)
at jadx.gui.JadxWrapper.open(JadxWrapper.java:65)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.io.IOException: value size, expected: 0x8, actual: 0x3, offset: 0x357b82
at jadx.core.xmlgen.ParserStream.throwException(ParserStream.java:118)
at jadx.core.xmlgen.ParserStream.checkInt16(ParserStream.java:110)
at jadx.core.xmlgen.ResTableParser.parseValue(ResTableParser.java:461)
at jadx.core.xmlgen.ResTableParser.parseEntry(ResTableParser.java:380)
at jadx.core.xmlgen.ResTableParser.parseTypeChunk(ResTableParser.java:302)
at jadx.core.xmlgen.ResTableParser.parsePackage(ResTableParser.java:164)
at jadx.core.xmlgen.ResTableParser.decodeTableChunk(ResTableParser.java:112)
at jadx.core.xmlgen.ResTableParser.decode(ResTableParser.java:88)
at jadx.core.xmlgen.ResDecoder.decode(ResDecoder.java:28)
at jadx.core.dex.nodes.RootNode.lambda$loadResources$7(RootNode.java:174)
at jadx.api.ResourcesLoader.decodeStream(ResourcesLoader.java:61)
... 6 common frames omitted