public class DirectApkSoSource extends SoSource
SoSource that directly finds shared libraries in a APK. The native libraries must be page
aligned and stored uncompressed in the APK.LOAD_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| Constructor and Description |
|---|
DirectApkSoSource(Context context) |
| Modifier and Type | Method and Description |
|---|---|
int |
loadLibrary(java.lang.String soName,
int loadFlags,
StrictMode.ThreadPolicy threadPolicy)
Load a shared library library into this process.
|
java.lang.String |
toString()
Return the class name of the actual instance.
|
java.io.File |
unpackLibrary(java.lang.String soName)
Ensure that a shared library exists on disk somewhere.
|
addToLdLibraryPath, getLibraryDependencies, getLibraryPath, getSoSourceAbispublic 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 SoSourcesoName - Name of library to loadloadFlags - Zero or more of the LOAD_FLAG_XXX constants.java.io.IOExceptionpublic java.io.File unpackLibrary(java.lang.String soName)
throws java.io.IOException
SoSourceSoSource.loadLibrary(java.lang.String, int, StrictMode.ThreadPolicy).unpackLibrary in class SoSourcesoName - Name of library to loadnull if not.java.io.IOException