public abstract class UnpackingSoSource extends DirectorySoSource implements AsyncInitSoSource
SoSource that extracts libraries from an APK to the filesystem.| Modifier and Type | Class and Description |
|---|---|
static class |
UnpackingSoSource.Dso |
ON_LD_LIBRARY_PATH, RESOLVE_DEPENDENCIESLOAD_FLAG_ALLOW_IMPLICIT_PROVISION, LOAD_FLAG_ALLOW_SOURCE_CHANGE, LOAD_FLAG_MIN_CUSTOM_FLAG, LOAD_RESULT_IMPLICITLY_PROVIDED, LOAD_RESULT_LOADED, LOAD_RESULT_NOT_FOUND, PREPARE_FLAG_ALLOW_ASYNC_INIT, PREPARE_FLAG_DISABLE_FS_SYNC_JOB, 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(android.content.Context context,
java.lang.String name) |
void |
prepareForceRefresh()
Prepare this SoSource by unconditonally unpacking/re-unpacking it.
|
void |
setSoSourceAbis(java.lang.String[] abis) |
void |
waitUntilInitCompleted() |
addToLdLibraryPath, getLibraryDependencies, getName, loadLibrary, toString, unpackLibrarypublic static java.io.File getSoStorePath(android.content.Context context,
java.lang.String name)
public java.lang.String[] getSoSourceAbis()
SoSourcegetSoSourceAbis in class SoSourcepublic void setSoSourceAbis(java.lang.String[] abis)
public void waitUntilInitCompleted()
waitUntilInitCompleted in interface AsyncInitSoSource@Nullable
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 void prepareForceRefresh()
throws java.io.IOException
java.io.IOException - IOException