-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
feat: improve resource names #2316
Conversation
@pubiqq this change looks great! |
hi, it looks interesting, i want test it. But i am not clear how to test, should I write a test class, or run the test locally? 😅 |
@skylot I will try to make a review in the next days. Based on the description it sounds good. Biggest problem is to find good example APKs to test it's functionality. @zhongqingsong Pull Requests are effectively branches you can check-out, compile. In the end have a modified Jadx version with the PR changes: https://docs.github.com/de/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
Sorry for the delay, I needed to code some utilities first to be able to process multiple APKs one after another to get a better understanding when renaming is applied. I started with jadx.core.xmlgen.ResTableBinaryParser#getNewResName. For the few APK files I tested it the most common case was a renaming because the resource name started with a
|
The dollar sign is not a valid character for resource names in aapt2, so
They are used in drawable/avd_hide_password.xml. |
OK, got it. I saw that it was already renamed before your PR, but the new format used by your PR is indeed much better. Could you please extend your PR and add JavaDoc where you describe why something is done? The info what is done can be derived from the code but the reason why is often lost. That would really be helpful for the future...
Seems like Jadx resources search does not yet allow searching for file-names, so I directly hit the blind spot of Jadx-Gui ;) |
e692cff
to
cc02e84
Compare
I'm not sure I understand what kind of description you're expecting. I've added javadoc to |
@pubiqq I didn't had something special in mind, therefore what you have written is in my opinion sufficient. Thanks for your patience and of course of PR. |
jadx_deobf_<id>
, after:<sanitized_name>_<id>
).