Tabnine Logo
JadxArgs.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
jadx.api.JadxArgs
constructor

Best Java code snippets using jadx.api.JadxArgs.<init> (Showing top 10 results out of 315)

origin: skylot/jadx

public JadxDecompiler() {
  this(new JadxArgs());
}
origin: skylot/jadx

@Deprecated
public static String literalToString(long lit, ArgType type) {
  return literalToString(lit, type, new StringUtils(new JadxArgs()));
}
origin: skylot/jadx

public static void main(String[] args) throws IOException, DecodeException {
  if (args.length < 2) {
    usage();
    System.exit(1);
  }
  File output = new File(args[0]);
  List<InputFile> inputFiles = new ArrayList<>(args.length - 1);
  for (int i = 1; i < args.length; i++) {
    File f = new File(args[i]);
    if (f.isDirectory()) {
      addFilesFromDirectory(f, inputFiles);
    } else {
      InputFile.addFilesFrom(f, inputFiles);
    }
  }
  for (InputFile inputFile : inputFiles) {
    LOG.info("Loaded: {}", inputFile.getFile());
  }
  RootNode root = new RootNode(new JadxArgs());
  root.load(inputFiles);
  ClsSet set = new ClsSet();
  set.load(root);
  set.save(output);
  LOG.info("Output: {}", output);
  LOG.info("done");
}
origin: skylot/jadx

@Before
public void init() {
  JRoot root = mock(JRoot.class);
  when(root.isFlatPackages()).thenReturn(false);
  JadxWrapper wrapper = mock(JadxWrapper.class);
  sources = new JSources(root, wrapper);
  decompiler = new JadxDecompiler(new JadxArgs());
}
origin: skylot/jadx

  private JadxArgs makeArgs() {
    JadxArgs args = new JadxArgs();
    args.getInputFiles().add(FileUtils.createTempFile("some.apk"));
    return args;
  }
}
origin: skylot/jadx

protected JadxArgs prepare(String inputFile) {
  JadxArgs args = new JadxArgs();
  args.getInputFiles().add(new File(getSamplesDir(), inputFile));
  args.setOutDir(new File("../jadx-external-tests-tmp"));
  return args;
}
origin: skylot/jadx

@Test
public void testOrder() {
  List<IDexTreeVisitor> passes = Jadx.getPassesList(new JadxArgs());
  List<String> errors = check(passes);
  for (String str : errors) {
    LOG.error(str);
  }
  assertThat(errors, empty());
}
origin: skylot/jadx

public IntegrationTest() {
  args = new JadxArgs();
  args.setOutDir(new File(outDir));
  args.setShowInconsistentCode(true);
  args.setThreadsCount(1);
  args.setSkipResources(true);
}
origin: skylot/jadx

@Test
@Ignore
public void testExampleUsage() {
  JadxArgs args = new JadxArgs();
  args.getInputFiles().add(new File("test.apk"));
  args.setOutDir(new File("jadx-test-output"));
  JadxDecompiler jadx = new JadxDecompiler(args);
  jadx.load();
  jadx.save();
}
origin: skylot/jadx

public JadxArgs toJadxArgs() {
  JadxArgs args = new JadxArgs();
  args.setInputFiles(files.stream().map(FileUtils::toFile).collect(Collectors.toList()));
  args.setOutDir(FileUtils.toFile(outDir));
  args.setOutDirSrc(FileUtils.toFile(outDirSrc));
  args.setOutDirRes(FileUtils.toFile(outDirRes));
  args.setThreadsCount(threadsCount);
  args.setSkipSources(skipSources);
  args.setSkipResources(skipResources);
  args.setFallbackMode(fallbackMode);
  args.setShowInconsistentCode(showInconsistentCode);
  args.setCfgOutput(cfgOutput);
  args.setRawCFGOutput(rawCfgOutput);
  args.setReplaceConsts(replaceConsts);
  args.setDeobfuscationOn(deobfuscationOn);
  args.setDeobfuscationForceSave(deobfuscationForceSave);
  args.setDeobfuscationMinLength(deobfuscationMinLength);
  args.setDeobfuscationMaxLength(deobfuscationMaxLength);
  args.setUseSourceNameAsClassAlias(deobfuscationUseSourceNameAsAlias);
  args.setEscapeUnicode(escapeUnicode);
  args.setExportAsGradleProject(exportAsGradleProject);
  args.setUseImports(useImports);
  return args;
}
jadx.apiJadxArgs<init>

Popular methods of JadxArgs

  • setInputFiles
  • setOutDir
  • setOutDirRes
  • setOutDirSrc
  • setSkipResources
  • getInputFiles
  • getOutDir
  • getOutDirRes
  • getOutDirSrc
  • setCfgOutput
  • setDeobfuscationForceSave
  • setDeobfuscationMaxLength
  • setDeobfuscationForceSave,
  • setDeobfuscationMaxLength,
  • setDeobfuscationMinLength,
  • setDeobfuscationOn,
  • setExportAsGradleProject,
  • setFallbackMode,
  • setRawCFGOutput,
  • setReplaceConsts,
  • setShowInconsistentCode

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JFileChooser (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now