protected static interface AndroidClassLoadingStrategy.Injecting.Dispatcher
| Modifier and Type | Interface and Description |
|---|---|
static class |
AndroidClassLoadingStrategy.Injecting.Dispatcher.ForAndroidPVm
A dispatcher for an Android P VM that uses the reflection-only method
addDexPath of DexClassLoader. |
static class |
AndroidClassLoadingStrategy.Injecting.Dispatcher.ForLegacyVm
A dispatcher for legacy VMs that allow
DexFile.loadDex(String, String, int). |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
loadClass(dalvik.system.DexFile dexFile,
ClassLoader classLoader,
TypeDescription typeDescription)
Loads a class.
|
dalvik.system.DexFile |
loadDex(File privateDirectory,
File jar,
ClassLoader classLoader,
RandomString randomString)
Loads a dex file.
|
@MaybeNull dalvik.system.DexFile loadDex(File privateDirectory, File jar, @MaybeNull ClassLoader classLoader, RandomString randomString) throws IOException
privateDirectory - The private directory to use if required.jar - The jar to load.classLoader - The class loader to inject into.randomString - The random string to use.DexFile or null if no such file is created.IOException - If an I/O exception is thrown.@MaybeNull Class<?> loadClass(dalvik.system.DexFile dexFile, @MaybeNull ClassLoader classLoader, TypeDescription typeDescription)
dexFile - The dex file to process if any was created.classLoader - The class loader to load the class from.typeDescription - The type to load.Copyright © 2014–1970. All rights reserved.