Skip to content

XML "@null" decoding#1594

Merged
skylot merged 1 commit intoskylot:masterfrom
jpstotz:res_arr_null
Jul 31, 2022
Merged

XML "@null" decoding#1594
skylot merged 1 commit intoskylot:masterfrom
jpstotz:res_arr_null

Conversation

@jpstotz
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants