Search in sources :

Example 1 with IJadxArgs

use of jadx.api.IJadxArgs in project jadx by skylot.

the class RenameVisitor method init.

@Override
public void init(RootNode root) {
    IJadxArgs args = root.getArgs();
    InputFile firstInputFile = root.getDexNodes().get(0).getDexFile().getInputFile();
    final String firstInputFileName = firstInputFile.getFile().getAbsolutePath();
    final String inputPath = FilenameUtils.getFullPathNoEndSeparator(firstInputFileName);
    final String inputName = FilenameUtils.getBaseName(firstInputFileName);
    File deobfMapFile = new File(inputPath, inputName + ".jobf");
    deobfuscator = new Deobfuscator(args, root.getDexNodes(), deobfMapFile);
    boolean deobfuscationOn = args.isDeobfuscationOn();
    if (deobfuscationOn) {
        deobfuscator.execute();
    }
    checkClasses(root);
}
Also used : IJadxArgs(jadx.api.IJadxArgs) InputFile(jadx.core.utils.files.InputFile) File(java.io.File) Deobfuscator(jadx.core.deobf.Deobfuscator) InputFile(jadx.core.utils.files.InputFile)

Aggregations

IJadxArgs (jadx.api.IJadxArgs)1 Deobfuscator (jadx.core.deobf.Deobfuscator)1 InputFile (jadx.core.utils.files.InputFile)1 File (java.io.File)1