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

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

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

origin: JesusFreke/smali

  dexFile = DexFileFactory.loadDexEntry(file, dexEntry, exactMatch, opcodes);
} catch (IOException ex) {
  throw new RuntimeException(ex);
origin: iBotPeaches/Apktool

DexBackedDexFile dexFile = DexFileFactory.loadDexEntry(mApkFile, mDexFile, true, Opcodes.forApi(mApi));
origin: com.ibm.wala/com.ibm.wala.dalvik

/**
 * @param f
 *            the .oat or .apk file
 * @param entry
 *            the name of the .dex file inside the container file
 * @param apiLevel
 *            the api level wanted
 */
public DexFileModule(File f, String entry, int apiLevel) throws IllegalArgumentException {
  try {
    this.f = f;
    dexfile = DexFileFactory.loadDexEntry(f, entry,true, apiLevel == AUTO_INFER_API_LEVEL? null : Opcodes.forApi(apiLevel));
  } catch (IOException e) {
    throw new IllegalArgumentException(e);
  }
  // create ModuleEntries from ClassDefItem
  entries = new HashSet<>();
  for (ClassDef cdefitems : dexfile.getClasses()) {
    entries.add(new DexModuleEntry(cdefitems, this));
  }
}
origin: wala/WALA

/**
 * @param f
 *            the .oat or .apk file
 * @param entry
 *            the name of the .dex file inside the container file
 * @param apiLevel
 *            the api level wanted
 */
public DexFileModule(File f, String entry, int apiLevel) throws IllegalArgumentException {
  try {
    this.f = f;
    dexfile = DexFileFactory.loadDexEntry(f, entry,true, apiLevel == AUTO_INFER_API_LEVEL? null : Opcodes.forApi(apiLevel));
  } catch (IOException e) {
    throw new IllegalArgumentException(e);
  }
  // create ModuleEntries from ClassDefItem
  entries = new HashSet<>();
  for (ClassDef cdefitems : dexfile.getClasses()) {
    entries.add(new DexModuleEntry(cdefitems, this));
  }
}
origin: org.smali/baksmali

  dexFile = DexFileFactory.loadDexEntry(file, dexEntry, exactMatch, opcodes);
} catch (IOException ex) {
  throw new RuntimeException(ex);
org.jf.dexlib2DexFileFactoryloadDexEntry

Javadoc

Loads a dex entry from a container format (zip/oat) This has two modes of operation, depending on the exactMatch parameter. When exactMatch is true, it will only load an entry whose name exactly matches that provided by the dexEntry parameter. When exactMatch is false, then it will search for any entry that dexEntry is a path suffix of. "path suffix" meaning all the path components in dexEntry must fully match the corresponding path components in the entry name, but some path components at the beginning of entry name can be missing. For example, if an oat file contains a "/system/framework/framework.jar:classes2.dex" entry, then the following will match (not an exhaustive list): "/system/framework/framework.jar:classes2.dex" "system/framework/framework.jar:classes2.dex" "framework/framework.jar:classes2.dex" "framework.jar:classes2.dex" "classes2.dex" Note that partial path components specifically don't match. So something like "work/framework.jar:classes2.dex" would not match. If dexEntry contains an initial slash, it will be ignored for purposes of this suffix match -- but not when performing an exact match. If multiple entries match the given dexEntry, a MultipleMatchingDexEntriesException will be thrown

Popular methods of DexFileFactory

  • loadDexFile
  • loadDexContainer
    Loads a file containing 1 or more dex files If the given file is a dex or odex file, it will return
  • writeDexFile
    Writes a DexFile out to disk
  • loadDexFiles

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JTable (javax.swing)
  • Top plugins for Android Studio
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