public class DexFileProvider extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DexFileProvider.DexContainer<T extends org.jf.dexlib2.iface.DexFile> |
| Constructor and Description |
|---|
DexFileProvider(Singletons.Global g) |
| Modifier and Type | Method and Description |
|---|---|
List<DexFileProvider.DexContainer<? extends org.jf.dexlib2.iface.DexFile>> |
getDexFromSource(File dexSource)
Returns all dex files found in dex source sorted by the default dex prioritizer
|
List<DexFileProvider.DexContainer<? extends org.jf.dexlib2.iface.DexFile>> |
getDexFromSource(File dexSource,
Comparator<DexFileProvider.DexContainer<? extends org.jf.dexlib2.iface.DexFile>> prioritizer)
Returns all dex files found in dex source sorted by the default dex prioritizer
|
DexFileProvider.DexContainer<? extends org.jf.dexlib2.iface.DexFile> |
getDexFromSource(File dexSource,
String dexName)
Returns the first dex file with the given name found in the given dex source
|
static DexFileProvider |
v() |
public DexFileProvider(Singletons.Global g)
public static DexFileProvider v()
public List<DexFileProvider.DexContainer<? extends org.jf.dexlib2.iface.DexFile>> getDexFromSource(File dexSource) throws IOException
dexSource - Path to a jar, apk, dex, odex or a directory containing multiple dex filesIOExceptionpublic List<DexFileProvider.DexContainer<? extends org.jf.dexlib2.iface.DexFile>> getDexFromSource(File dexSource, Comparator<DexFileProvider.DexContainer<? extends org.jf.dexlib2.iface.DexFile>> prioritizer) throws IOException
dexSource - Path to a jar, apk, dex, odex or a directory containing multiple dex filesprioritizer - A comparator that defines the ordering of dex files in the result listIOExceptionpublic DexFileProvider.DexContainer<? extends org.jf.dexlib2.iface.DexFile> getDexFromSource(File dexSource, String dexName) throws IOException
dexSource - Path to a jar, apk, dex, odex or a directory containing multiple dex filesCompilationDeathException - If no dex file with the given name existsIOExceptionCopyright © 2020 Soot OSS. All rights reserved.