fix: don't try to guess a better class name when "use source file name" is on#2260
fix: don't try to guess a better class name when "use source file name" is on#2260pubiqq wants to merge 1 commit intoskylot:masterfrom
Conversation
ee03f0d to
eec3ed9
Compare
|
Hm, source file name in most cases contains garbage, so I prefer to keep this renames as safe as possible.
I like the second solution, it is just easier. And maybe we can use Related to #1913. |
|
Well, the checkbox is called "Use source file name as class name alias", I explicitly checked it, and I expect it to work that way. The checkbox is unchecked by default, so the PR won't change the default behavior of the program and class names will remain the same as before. Your proposal can be implemented, but I think that's material for a separate issue/discussion/PR.
Sure, here are some examples: |
That is why I suggested to use more explicit options/names instead of just boolean, it will be easier to understand what it does.
This option works only for some apks/projects, enabling it will affect all projects and might apply worse names and this is the reason why it disabled by default.
Oh, so we just need to not select names generated by jadx or names with many numbers. So, as a conclusion to this PR: I don't want to remove And BTW, another solutions is to provide API to change |
|
It looks like you've thought of something more global than what I had in mind in this PR. 😂
I have no problem understanding the option name. I just want the checkbox with the name I have other changes to improve the renaming mechanism as well, including the ones you suggested Trust me<deleted>, I'm just going to submit them in separate PRs. --
It would be great if deobfuscation/renaming could be implemented as a separate plugin (if possible of course). |
Sure, if you have better implementation and want to open a new PR, I will close this one.
It is possible, all renaming happen in jadx passes, so it can be done in a jadx plugin (short guide) |
|
<nevermind> |
This PR makes the app use source file name as class name alias if the "Use source file name as class name alias" checkbox is checked, without implicit attempts to guess a better name.