BaseDexClassLoader

Class of dalvik.system · BaseDexClassLoader.java · Android's reference

public class BaseDexClassLoader extends ClassLoader

A class loader of DEX files. The app's own loader (snx.dalvik.AppClassLoader) is one, as on Android, and it translates the classes of the APK. The runtime translates only the APK's DEX code, so a loader of another DEX path finds its classes through its parent alone, and the others are not found.

Extended in the framework by

Constructors

public BaseDexClassLoader(String dexPath, File optimizedDirectory, String librarySearchPath, ClassLoader parent) source
public BaseDexClassLoader(String dexPath, File optimizedDirectory, String librarySearchPath, ClassLoader parent, boolean isTrusted) source
protected BaseDexClassLoader(ClassLoader parent, String name, String dexPath, String librarySearchPath) source

For the app's loader, with the name of its JVM loader

Methods

public String findLibrary(String name) source

The path of lib{name}.so in the library search path, or null when no folder of it has the file

public String getLdLibraryPath() source
public String toString() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.