public abstract class UnpackingSoSource extends DirectorySoSource
SoSource that extracts libraries from an APK to the filesystem.| Modifier and Type | Class and Description |
|---|---|
static class |
UnpackingSoSource.Dso |
static class |
UnpackingSoSource.DsoManifest |
static class |
UnpackingSoSource.InputDsoStream |
ON_LD_LIBRARY_PATH, RESOLVE_DEPENDENCIESLOAD_FLAG_ALLOW_IMPLICIT_PROVISION, LOAD_FLAG_ALLOW_SOURCE_CHANGE, LOAD_FLAG_MIN_CUSTOM_FLAG, LOAD_RESULT_CORRUPTED_LIB_FILE, LOAD_RESULT_IMPLICITLY_PROVIDED, LOAD_RESULT_LOADED, LOAD_RESULT_NOT_FOUND, PREPARE_FLAG_ALLOW_ASYNC_INIT, PREPARE_FLAG_FORCE_REFRESH| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLibraryPath(java.lang.String soName)
Gets the full path of a library if it is found on this SoSource.
|
java.lang.String[] |
getSoSourceAbis()
Return an array of ABIs handled by this SoSource.
|
static java.io.File |
getSoStorePath(Context context,
java.lang.String name) |
int |
loadLibrary(java.lang.String soName,
int loadFlags,
StrictMode.ThreadPolicy threadPolicy)
Load a shared library library into this process.
|
void |
setSoSourceAbis(java.lang.String[] abis) |
addToLdLibraryPath, getLibraryDependencies, toString, unpackLibrarypublic static java.io.File getSoStorePath(Context context,
java.lang.String name)
public java.lang.String[] getSoSourceAbis()
SoSourcegetSoSourceAbis in class SoSourcepublic void setSoSourceAbis(java.lang.String[] abis)
public java.lang.String getLibraryPath(java.lang.String soName)
throws java.io.IOException
SoSourcegetLibraryPath in class DirectorySoSourcesoName - the full file name of the libraryjava.io.IOException - if there is an error calculating soFileName's canonical pathpublic int loadLibrary(java.lang.String soName,
int loadFlags,
StrictMode.ThreadPolicy threadPolicy)
throws java.io.IOException
SoSourceSoSource.loadLibrary(java.lang.String, int, StrictMode.ThreadPolicy).loadLibrary in class DirectorySoSourcesoName - Name of library to loadloadFlags - Zero or more of the LOAD_FLAG_XXX constants.java.io.IOException