Tabnine Logo
DexFileFactory.loadDexContainer
Code IndexAdd Tabnine to your IDE (free)

How to use
loadDexContainer
method
in
org.jf.dexlib2.DexFileFactory

Best Java code snippets using org.jf.dexlib2.DexFileFactory.loadDexContainer (Showing top 8 results out of 315)

origin: Sable/soot

= DexFileFactory.loadDexContainer(dexSourceFile, Opcodes.forApi(api));
origin: testwhat/SmaliEx

try {
  MultiDexContainer<? extends DexBackedDexFile> container =
      DexFileFactory.loadDexContainer(file, Opcodes.getDefault());
  entries = container.getDexEntryNames();
} catch (IOException ex) {
origin: org.smali/baksmali

try {
  MultiDexContainer<? extends DexBackedDexFile> container =
      DexFileFactory.loadDexContainer(file, Opcodes.getDefault());
  entries = container.getDexEntryNames();
} catch (IOException ex) {
origin: testwhat/SmaliEx

  container = DexFileFactory.loadDexContainer(entryFile, opcodes);
} catch (DexFileFactory.UnsupportedFileTypeException ex) {
  throw new ClassPathResolver.ResolveException(ex);
origin: com.ibm.wala/com.ibm.wala.dalvik

MultiDexContainer<? extends DexBackedDexFile> multiDex = DexFileFactory.loadDexContainer(codeFile, apiLevel == DexFileModule.AUTO_INFER_API_LEVEL ? null : Opcodes.forApi(apiLevel));
origin: wala/WALA

MultiDexContainer<? extends DexBackedDexFile> multiDex = DexFileFactory.loadDexContainer(codeFile, apiLevel == DexFileModule.AUTO_INFER_API_LEVEL ? null : Opcodes.forApi(apiLevel));
origin: org.smali/dexlib2

  container = DexFileFactory.loadDexContainer(entryFile, opcodes);
} catch (DexFileFactory.UnsupportedFileTypeException ex) {
  throw new ClassPathResolver.ResolveException(ex);
origin: wala/WALA

private static void addAPKtoScope(ClassLoaderReference loader, AnalysisScope scope, String fileName){
  File apkFile = new File(fileName);
  MultiDexContainer<? extends DexBackedDexFile> multiDex = null;
  try {
    multiDex = DexFileFactory.loadDexContainer(apkFile, Opcodes.forApi(24));
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
  try{
    for (String dexEntry : multiDex.getDexEntryNames()) {
      System.out.println("Adding dex file: " +dexEntry + " of file:" + fileName);
      scope.addToScope(loader, new DexFileModule(apkFile, dexEntry,24));
    }
  }catch (IOException e){
    throw new RuntimeException(e);
  }
}
org.jf.dexlib2DexFileFactoryloadDexContainer

Javadoc

Loads a file containing 1 or more dex files If the given file is a dex or odex file, it will return a MultiDexContainer containing that single entry. Otherwise, for an oat or zip file, it will return an OatFile or ZipDexContainer respectively.

Popular methods of DexFileFactory

  • loadDexFile
  • loadDexEntry
    Loads a dex entry from a container format (zip/oat) This has two modes of operation, depending on th
  • writeDexFile
    Writes a DexFile out to disk
  • loadDexFiles

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFrame (javax.swing)
  • Top Sublime Text plugins
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