public static class AndroidClassLoadingStrategy.Injecting.Dispatcher.ForAndroidPVm extends Object implements AndroidClassLoadingStrategy.Injecting.Dispatcher
addDexPath of DexClassLoader.AndroidClassLoadingStrategy.Injecting.Dispatcher.ForAndroidPVm, AndroidClassLoadingStrategy.Injecting.Dispatcher.ForLegacyVm| Modifier | Constructor and Description |
|---|---|
protected |
ForAndroidPVm(Method addDexPath)
Creates a new Android P-compatible dispatcher for loading a dex file.
|
| 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.
|
protected ForAndroidPVm(Method addDexPath)
addDexPath - The BaseDexClassLoader#addDexPath(String, boolean) method.@MaybeNull public dalvik.system.DexFile loadDex(File privateDirectory, File jar, @MaybeNull ClassLoader classLoader, RandomString randomString) throws IOException
loadDex in interface AndroidClassLoadingStrategy.Injecting.DispatcherprivateDirectory - 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.public Class<?> loadClass(@MaybeNull dalvik.system.DexFile dexFile, @MaybeNull ClassLoader classLoader, TypeDescription typeDescription)
loadClass in interface AndroidClassLoadingStrategy.Injecting.DispatcherdexFile - 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–2025. All rights reserved.