-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BinaryXMLParser generates wrong reference #465
Comments
Also this (see comment)
|
Ok, now I found that disabling "Replace constants" generates normal output. But it also affects code, like |
@tRuNKator you are right, replacing resources names by field name from R class not needed now because after #308 jadx starts to generate fields from resources. So I will remove this logic. |
@tRuNKator fixed. Please check latest unstable build |
It seems to me (I'm not quite sure) that the jadx.core.xmlgen.BinaryXMLParser.localStyleMap field functionality is not needed. I can not imagine in what situations it can be useful. Most likely it is needless or not implemented correctly. Example apk
one of problem files: res\layout-land-v4\widget4x1.xml
problem with id references in generated code ():
should be:
Isn't it better to use only jadx.core.xmlgen.BinaryXMLParser.resNames? In what situations will jadx.core.xmlgen.BinaryXMLParser.localStyleMap be useful?
PS Sorry for my English
The text was updated successfully, but these errors were encountered: