public class BackupSoSource extends ExtractFromZipSoSource
SoSource that extracts zipped libraries from an APK to the filesystem. This is a
workaround for a known OS bug where the unpacking of non-asset zipped libraries at install time
results in corrupted libraries (e.g. bad elf magic, or truncated files).UnpackingSoSource.Dso| Modifier and Type | Field and Description |
|---|---|
static int |
PREFER_ANDROID_LIBS_DIRECTORY
If this flag is given, do not extract libraries that appear to be correctly extracted to the
application libs directory.
|
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| Constructor and Description |
|---|
BackupSoSource(android.content.Context context,
java.io.File apkPath,
java.lang.String name,
int flags) |
BackupSoSource(android.content.Context context,
java.lang.String name,
int flags) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
boolean |
hasZippedLibs() |
getLibraryPath, getSoSourceAbis, getSoStorePath, prepareForceRefresh, setSoSourceAbis, waitUntilInitCompletedaddToLdLibraryPath, getLibraryDependencies, loadLibrary, toString, unpackLibrarypublic static final int PREFER_ANDROID_LIBS_DIRECTORY
public BackupSoSource(android.content.Context context,
java.lang.String name,
int flags)
public BackupSoSource(android.content.Context context,
java.io.File apkPath,
java.lang.String name,
int flags)
public java.lang.String getName()
getName in class ExtractFromZipSoSourcepublic boolean hasZippedLibs()
throws java.io.IOException
java.io.IOException