Package com.facebook.soloader
Class UnpackingSoSource
java.lang.Object
com.facebook.soloader.SoSource
com.facebook.soloader.DirectorySoSource
com.facebook.soloader.UnpackingSoSource
- All Implemented Interfaces:
AsyncInitSoSource
- Direct Known Subclasses:
BackupSoSource,ExoSoSource,ExtractFromZipSoSource
SoSource that extracts libraries from an APK to the filesystem.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.facebook.soloader.DirectorySoSource
ON_LD_LIBRARY_PATH, RESOLVE_DEPENDENCIESFields inherited from class com.facebook.soloader.SoSource
LOAD_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, PREPARE_FLAG_SKIP_BACKUP_SO_SOURCE -
Method Summary
Modifier and TypeMethodDescriptiongetLibraryPath(String soName) Gets the full path of a library if it is found on this SoSource.String[]Return an array of ABIs handled by this SoSource.static FilegetSoStorePath(android.content.Context context, String name) voidprepare(int flags) Verify or refresh the state of the shared library store.voidsetSoSourceAbis(String[] abis) voidMethods inherited from class com.facebook.soloader.DirectorySoSource
addToLdLibraryPath, getLibraryDependencies, getName, getSoFileByName, loadLibrary, setExplicitDependencyResolution, toString, unpackLibrary
-
Method Details
-
getSoStorePath
-
getSoSourceAbis
Description copied from class:SoSourceReturn an array of ABIs handled by this SoSource.- Overrides:
getSoSourceAbisin classSoSource- Returns:
- ABIs supported by this SoSource
-
getDsosBaseApk
- Throws:
IOException
-
setSoSourceAbis
-
waitUntilInitCompleted
public void waitUntilInitCompleted()- Specified by:
waitUntilInitCompletedin interfaceAsyncInitSoSource
-
prepare
Verify or refresh the state of the shared library store.- Throws:
IOException
-
getLibraryPath
Description copied from class:SoSourceGets the full path of a library if it is found on this SoSource.- Overrides:
getLibraryPathin classDirectorySoSource- Parameters:
soName- the full file name of the library- Returns:
- the full path of a library if it is found on this SoSource, null otherwise.
- Throws:
IOException- if there is an error calculatingsoFileName's canonical path
-