Skip to content
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

XML "@null" decoding #1594

Merged
merged 1 commit into from
Jul 31, 2022
Merged

XML "@null" decoding #1594

merged 1 commit into from
Jul 31, 2022

Conversation

jpstotz
Copy link
Collaborator

@jpstotz jpstotz commented Jul 31, 2022

Fix for #1583. @null is now restricted to values that have a data type of TYPE_REFERENCE.

Furthermore I restricted the attribute name replacement to TYPE_INT_DEC values, in my tests only attributes with that type had a successful replacement, all the other just caused a NumberFormatException.

I compared the resources of several apps decompiled by Jadx and by apktool regarding @null replacement. Most apps had the same reference counter of @null in both decompiled apps. Some apktool decompiled apps had a few references more but I wasn't able to detect where the exact difference was located as the xml files are often named differently and the attributes are created in a different order which makes comparison difficult.

Last but not least I noticed that deobfuscator had a rule for abstract classes but not for interfaces.

minor improvements
Copy link
Owner

@skylot skylot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@skylot skylot merged commit ae2d4da into skylot:master Jul 31, 2022
@skylot skylot mentioned this pull request Jul 31, 2022
@jpstotz jpstotz deleted the res_arr_null branch July 31, 2022 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants