Package com.facebook.soloader
Class ExtractFromZipSoSource
java.lang.Object
com.facebook.soloader.SoSource
com.facebook.soloader.DirectorySoSource
com.facebook.soloader.UnpackingSoSource
com.facebook.soloader.ExtractFromZipSoSource
- All Implemented Interfaces:
AsyncInitSoSource
SoSource that extracts libraries from a zip file to the filesystem.-
Nested Class Summary
Nested classes/interfaces inherited from class com.facebook.soloader.UnpackingSoSource
UnpackingSoSource.Dso -
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 -
Constructor Summary
ConstructorsConstructorDescriptionExtractFromZipSoSource(android.content.Context context, File storePath, File zipFileName, String zipSearchPattern) ExtractFromZipSoSource(android.content.Context context, String name, File zipFileName, String zipSearchPattern) -
Method Summary
Methods inherited from class com.facebook.soloader.UnpackingSoSource
getDsosBaseApk, getLibraryPath, getSoSourceAbis, getSoStorePath, prepare, setSoSourceAbis, waitUntilInitCompletedMethods inherited from class com.facebook.soloader.DirectorySoSource
addToLdLibraryPath, getLibraryDependencies, getSoFileByName, loadLibrary, setExplicitDependencyResolution, unpackLibrary
-
Constructor Details
-
ExtractFromZipSoSource
public ExtractFromZipSoSource(android.content.Context context, String name, File zipFileName, String zipSearchPattern) - Parameters:
context- Application contextname- Name of the DSO storezipFileName- Name of the zip file from which we extract; opened only on demandzipSearchPattern- Regular expression string matching DSOs in the zip file; subgroup 1 must be an ABI (as from Build.CPU_ABI) and subgroup 2 must be the shared library basename.
-
ExtractFromZipSoSource
-
-
Method Details
-
getName
- Overrides:
getNamein classDirectorySoSource- Returns:
- the name of this SoSource for logging purposes
-
hasZippedLibs
- Throws:
IOException
-
toString
Description copied from class:SoSourceReturn the class name of the actual instance. Useful for debugging.- Overrides:
toStringin classDirectorySoSource- Returns:
- the instance class name
-