Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Encountered unsupported chunk type TYPE_STAGED_ALIAS at offset 0x4ce8c8 #1803

Closed
songtao542 opened this issue Mar 16, 2023 · 4 comments
Closed
Labels
bug Core Issues in jadx-core module resources

Comments

@songtao542
Copy link

ERROR: Failed to parse '.arsc' file
jadx.core.utils.exceptions.JadxException: Error decode: 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:117)
at jadx.gui.JadxWrapper.open(JadxWrapper.java:65)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.io.IOException: Encountered unsupported chunk type TYPE_STAGED_ALIAS at offset 0x4ce8c8
at jadx.core.xmlgen.ResTableParser.parsePackage(ResTableParser.java:175)
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:73)
... 6 common frames omitted

@songtao542 songtao542 added bug Core Issues in jadx-core module labels Mar 16, 2023
@songtao542 songtao542 changed the title [core] Encountered unsupported chunk type TYPE_STAGED_ALIAS at offset 0x4ce8c8 Mar 16, 2023
@jpstotz
Copy link
Collaborator

jpstotz commented Mar 16, 2023

Can you provide the APK file that causes this error?

@MrIkso
Copy link
Contributor

MrIkso commented Mar 20, 2023

@jpstotz
Copy link
Collaborator

jpstotz commented Mar 23, 2023

@MrIkso I dislike implement something just using apktool source as base. I had several cases where the code in apktool for parsing was wrong.

I just had a discussion with Connor the author of apktool on the correct way to parse the overlay chunk, therefore I prefer having a real example to make sure the code really works on real-world examples.

But now as I have found an example the fix is just a PR away...

skylot pushed a commit that referenced this issue Mar 23, 2023
@skylot
Copy link
Owner

skylot commented Mar 23, 2023

Fixed in PR #1807 by @jpstotz

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Core Issues in jadx-core module resources
Projects
None yet
Development

No branches or pull requests

4 participants