Closed veryyoung closed 5 years ago
The app is obfuscated and the "defpackage" is the default package ""
(the package without name).
The problem is that in the Jadx treeview an entry without name is not (or really difficult) clickable. Therefore "defpackage" is used as replacement.
Actually "defpackage" used for another reason: code will be not compilable if class in default package use any class from other packages, but such classes often use outside classes, so this is easy way to make code compilable.
Can we get an option to turn this off though? I'm using JADX as a library and it moving classes breaks some assumptions
@NebelNidas there is no option to disable only this rename, but you can disable valid
flag:
jadxArgs.setRenameValid(false);
or unset all rename flags to disable all renames:
jadxArgs.setRenameFlags(Collections.emptySet());
For example