Skip navigation links
A C D E F G H I L M N O P R S T U V W 

A

addToLdLibraryPath(Collection<String>) - Method in class com.facebook.soloader.ApplicationSoSource
 
addToLdLibraryPath(Collection<String>) - Method in class com.facebook.soloader.DirectorySoSource
 
addToLdLibraryPath(Collection<String>) - Method in class com.facebook.soloader.SoSource
Add an element to an LD_LIBRARY_PATH under construction.
ApkSoSource - Class in com.facebook.soloader
SoSource that extracts libraries from an APK to the filesystem.
ApkSoSource(Context, String, int) - Constructor for class com.facebook.soloader.ApkSoSource
 
ApkSoSource(Context, File, String, int) - Constructor for class com.facebook.soloader.ApkSoSource
 
ApplicationSoSource - Class in com.facebook.soloader
SoSource that wraps a DirectorySoSource for the application's nativeLibraryDir.
ApplicationSoSource(Context, int) - Constructor for class com.facebook.soloader.ApplicationSoSource
 
areSoSourcesAbisSupported() - Static method in class com.facebook.soloader.SoLoader
This function ensure that every SoSources Abi is supported for at least one abi in SysUtil.getSupportedAbis

C

checkAndMaybeUpdate() - Method in class com.facebook.soloader.ApplicationSoSource
check to make sure there haven't been any changes to the nativeLibraryDir since the last check, if there have been changes, update the context and soSource
close() - Method in class com.facebook.soloader.FileLocker
 
com.facebook.soloader - package com.facebook.soloader
 
com.facebook.soloader.nativeloader - package com.facebook.soloader.nativeloader
 

D

deinitForTest() - Static method in class com.facebook.soloader.SoLoader
Make shared-library loading delegate to the system.
deleteOrThrow(File) - Static method in class com.facebook.soloader.SysUtil
 
DirectorySoSource - Class in com.facebook.soloader
SoSource that finds shared libraries in a given directory.
DirectorySoSource(File, int) - Constructor for class com.facebook.soloader.DirectorySoSource
Make a new DirectorySoSource.
DoNotOptimize - Annotation Type in com.facebook.soloader
A hint (which may or may not be observed) to any optimizers in our tool chain that we don't want optimizations being applied to the annotated elements.
Dso(String, String) - Constructor for class com.facebook.soloader.UnpackingSoSource.Dso
 
DsoManifest(UnpackingSoSource.Dso[]) - Constructor for class com.facebook.soloader.UnpackingSoSource.DsoManifest
 
dsos - Variable in class com.facebook.soloader.UnpackingSoSource.DsoManifest
 
DT_NEEDED - Static variable in class com.facebook.soloader.MinElf
 
DT_NULL - Static variable in class com.facebook.soloader.MinElf
 
DT_STRTAB - Static variable in class com.facebook.soloader.MinElf
 
dumbDeleteRecursive(File) - Static method in class com.facebook.soloader.SysUtil
Delete a directory and its contents.

E

ELF_MAGIC - Static variable in class com.facebook.soloader.MinElf
 
ensureLoaded() - Method in class com.facebook.soloader.NativeLibrary
loads libraries (if not loaded yet), throws on failure
ExoSoSource - Class in com.facebook.soloader
SoSource that retrieves libraries from an exopackage repository.
ExoSoSource(Context, String) - Constructor for class com.facebook.soloader.ExoSoSource
 
extract_DT_NEEDED(File) - Static method in class com.facebook.soloader.MinElf
 
extract_DT_NEEDED(FileChannel) - Static method in class com.facebook.soloader.MinElf
Treating bb as an ELF file, extract all the DT_NEEDED entries from its dynamic section.
ExtractFromZipSoSource - Class in com.facebook.soloader
SoSource that extracts libraries from a zip file to the filesystem.
ExtractFromZipSoSource(Context, String, File, String) - Constructor for class com.facebook.soloader.ExtractFromZipSoSource
 

F

fallocateIfSupported(FileDescriptor, long) - Static method in class com.facebook.soloader.SysUtil
Pre-allocate disk space for a file if we can do that on this version of the OS.
FileLocker - Class in com.facebook.soloader
 
findAbiScore(String[], String) - Static method in class com.facebook.soloader.SysUtil
Determine how preferred a given ABI is on this system.

G

getAppVersionCode(Context) - Static method in class com.facebook.soloader.SysUtil
 
getError() - Method in class com.facebook.soloader.NativeLibrary
 
getLibraryDependencies(String) - Method in class com.facebook.soloader.ApplicationSoSource
 
getLibraryDependencies(String) - Method in class com.facebook.soloader.DirectorySoSource
 
getLibraryDependencies(String) - Static method in class com.facebook.soloader.SoLoader
Gets the dependencies of a library.
getLibraryDependencies(String) - Method in class com.facebook.soloader.SoSource
Gets the dependencies of a library if it is found on this SoSource
getLibraryPath(String) - Method in class com.facebook.soloader.ApplicationSoSource
 
getLibraryPath(String) - Method in class com.facebook.soloader.DirectorySoSource
 
getLibraryPath(String) - Static method in class com.facebook.soloader.nativeloader.NativeLoader
Get the path of a loaded shared library.
getLibraryPath(String) - Method in interface com.facebook.soloader.nativeloader.NativeLoaderDelegate
 
getLibraryPath(String) - Method in class com.facebook.soloader.nativeloader.SystemDelegate
 
getLibraryPath(String) - Method in class com.facebook.soloader.NativeLoaderToSoLoaderDelegate
 
getLibraryPath(String) - Static method in class com.facebook.soloader.SoLoader
Gets the full path of a library.
getLibraryPath(String) - Method in class com.facebook.soloader.SoSource
Gets the full path of a library if it is found on this SoSource.
getNativeLibDirFromContext(Context) - Static method in class com.facebook.soloader.ApplicationSoSource
 
getSoSourceAbis() - Method in class com.facebook.soloader.SoSource
Return an array of ABIs handled by this SoSource.
getSoSourceAbis() - Method in class com.facebook.soloader.UnpackingSoSource
 
getSoSourcesVersion() - Static method in class com.facebook.soloader.nativeloader.NativeLoader
Get the version of the loader used.
getSoSourcesVersion() - Method in interface com.facebook.soloader.nativeloader.NativeLoaderDelegate
 
getSoSourcesVersion() - Method in class com.facebook.soloader.nativeloader.SystemDelegate
 
getSoSourcesVersion() - Method in class com.facebook.soloader.NativeLoaderToSoLoaderDelegate
 
getSoSourcesVersion() - Static method in class com.facebook.soloader.SoLoader
 
getSoStorePath(Context, String) - Static method in class com.facebook.soloader.UnpackingSoSource
 
getSupportedAbis() - Static method in class com.facebook.soloader.SysUtil
Return an list of ABIs we supported on this device ordered according to preference.
getUpdatedContext() - Method in class com.facebook.soloader.ApplicationSoSource
 

H

hash - Variable in class com.facebook.soloader.UnpackingSoSource.Dso
 

I

init(NativeLoaderDelegate) - Static method in class com.facebook.soloader.nativeloader.NativeLoader
Initializes native code loading for this app.
init(Context, int) - Static method in class com.facebook.soloader.SoLoader
 
init(Context, int, SoFileLoader) - Static method in class com.facebook.soloader.SoLoader
Initializes native code loading for this app; this class's other static facilities cannot be used until this SoLoader.init(Context, int) is called.
init(Context, boolean) - Static method in class com.facebook.soloader.SoLoader
Backward compatibility
initIfUninitialized(NativeLoaderDelegate) - Static method in class com.facebook.soloader.nativeloader.NativeLoader
Perform an initialization only if NativeLoader has not already been initialized.
is64Bit() - Static method in class com.facebook.soloader.SysUtil
 
isInitialized() - Static method in class com.facebook.soloader.nativeloader.NativeLoader
Determine whether NativeLoader has already been initialized.
isInitialized() - Static method in class com.facebook.soloader.SoLoader
 

L

load(String, int) - Method in interface com.facebook.soloader.SoFileLoader
Load the so file from given path.
LOAD_FLAG_ALLOW_IMPLICIT_PROVISION - Static variable in class com.facebook.soloader.SoSource
Allow loadLibrary to implicitly provide the library instead of actually loading it.
LOAD_FLAG_ALLOW_SOURCE_CHANGE - Static variable in class com.facebook.soloader.SoSource
Deprecated.
LOAD_FLAG_MIN_CUSTOM_FLAG - Static variable in class com.facebook.soloader.SoSource
Min flag that can be used in customized SoFileLoader.load(String, int) implementation.
LOAD_RESULT_CORRUPTED_LIB_FILE - Static variable in class com.facebook.soloader.SoSource
This SoSource tried to load the library but it seems that the file is corrupted.
LOAD_RESULT_IMPLICITLY_PROVIDED - Static variable in class com.facebook.soloader.SoSource
This SoSource did not load the library, but verified that the system loader will load it if some other library depends on it.
LOAD_RESULT_LOADED - Static variable in class com.facebook.soloader.SoSource
This SoSource loaded the given library.
LOAD_RESULT_NOT_FOUND - Static variable in class com.facebook.soloader.SoSource
This SoSource doesn't know how to provide the given library.
loadLibraries() - Method in class com.facebook.soloader.NativeLibrary
safe loading of native libs
loadLibrary(String, int, StrictMode.ThreadPolicy) - Method in class com.facebook.soloader.ApplicationSoSource
 
loadLibrary(String, int, StrictMode.ThreadPolicy) - Method in class com.facebook.soloader.DirectorySoSource
 
loadLibrary(String) - Static method in class com.facebook.soloader.nativeloader.NativeLoader
 
loadLibrary(String, int) - Static method in class com.facebook.soloader.nativeloader.NativeLoader
Load a shared library, initializing any JNI binding it contains.
loadLibrary(String, int) - Method in interface com.facebook.soloader.nativeloader.NativeLoaderDelegate
 
loadLibrary(String, int) - Method in class com.facebook.soloader.nativeloader.SystemDelegate
 
loadLibrary(String, int) - Method in class com.facebook.soloader.NativeLoaderToSoLoaderDelegate
 
loadLibrary(String, int, StrictMode.ThreadPolicy) - Method in class com.facebook.soloader.NoopSoSource
 
loadLibrary(String) - Static method in class com.facebook.soloader.SoLoader
 
loadLibrary(String, int) - Static method in class com.facebook.soloader.SoLoader
Load a shared library, initializing any JNI binding it contains.
loadLibrary(String, int, StrictMode.ThreadPolicy) - Method in class com.facebook.soloader.SoSource
Load a shared library library into this process.
loadLibrary(String) - Method in interface com.facebook.soloader.SystemLoadLibraryWrapper
 
loadLibrary(String, int, StrictMode.ThreadPolicy) - Method in class com.facebook.soloader.UnpackingSoSource
 
lock(File) - Static method in class com.facebook.soloader.FileLocker
 

M

makeApkDepBlock(File, Context) - Static method in class com.facebook.soloader.SysUtil
 
makeLdLibraryPath() - Static method in class com.facebook.soloader.SoLoader
Retrieve an LD_LIBRARY_PATH value suitable for using the native linker to resolve our shared libraries.
makeNonZipPath(String) - Static method in class com.facebook.soloader.SoLoader
 
MinElf - Class in com.facebook.soloader
Extract SoLoader boottsrap information from an ELF file.
MinElf() - Constructor for class com.facebook.soloader.MinElf
 
MinElf.ISA - Enum in com.facebook.soloader
 

N

name - Variable in class com.facebook.soloader.UnpackingSoSource.Dso
 
NativeLibrary - Class in com.facebook.soloader
This is the base class for all the classes representing certain native library.
NativeLoader - Class in com.facebook.soloader.nativeloader
Facade to load native libraries for android
NativeLoaderDelegate - Interface in com.facebook.soloader.nativeloader
Interface used to connect chosen loader of native libraries to NativeLoader
NativeLoaderToSoLoaderDelegate - Class in com.facebook.soloader
Class that connects SoLoader to NativeLoader
NativeLoaderToSoLoaderDelegate() - Constructor for class com.facebook.soloader.NativeLoaderToSoLoaderDelegate
 
NoopSoSource - Class in com.facebook.soloader
SoSource that does nothing and pretends to successfully load all libraries.
NoopSoSource() - Constructor for class com.facebook.soloader.NoopSoSource
 

O

ON_LD_LIBRARY_PATH - Static variable in class com.facebook.soloader.DirectorySoSource
 

P

PN_XNUM - Static variable in class com.facebook.soloader.MinElf
 
PREFER_ANDROID_LIBS_DIRECTORY - Static variable in class com.facebook.soloader.ApkSoSource
If this flag is given, do not extract libraries that appear to be correctly extracted to the application libs directory.
PREPARE_FLAG_ALLOW_ASYNC_INIT - Static variable in class com.facebook.soloader.SoSource
Allow prepare to spawn threads to do background work.
PREPARE_FLAG_FORCE_REFRESH - Static variable in class com.facebook.soloader.SoSource
Force prepare to refresh libs.
prependSoSource(SoSource) - Static method in class com.facebook.soloader.SoLoader
Add a new source of native libraries.
PT_DYNAMIC - Static variable in class com.facebook.soloader.MinElf
 
PT_LOAD - Static variable in class com.facebook.soloader.MinElf
 

R

RESOLVE_DEPENDENCIES - Static variable in class com.facebook.soloader.DirectorySoSource
 

S

setInTestMode() - Static method in class com.facebook.soloader.SoLoader
Turn shared-library loading into a no-op.
setSoSourceAbis(String[]) - Method in class com.facebook.soloader.UnpackingSoSource
 
setSystemLoadLibraryWrapper(SystemLoadLibraryWrapper) - Static method in class com.facebook.soloader.SoLoader
Provide a wrapper object for calling System.loadLibrary(java.lang.String).
SKIP_MERGED_JNI_ONLOAD - Static variable in interface com.facebook.soloader.nativeloader.NativeLoaderDelegate
Skip calling JNI_OnLoad if the library is merged.
SoFileLoader - Interface in com.facebook.soloader
 
SoLoader - Class in com.facebook.soloader
Native code loader.
SoLoader() - Constructor for class com.facebook.soloader.SoLoader
 
SoLoader.WrongAbiError - Error in com.facebook.soloader
 
SOLOADER_ALLOW_ASYNC_INIT - Static variable in class com.facebook.soloader.SoLoader
Allow deferring some initialization work to asynchronous background threads.
SOLOADER_DISABLE_BACKUP_SOSOURCE - Static variable in class com.facebook.soloader.SoLoader
In some contexts, using a backup so source in case of so corruption is not feasible e.g.
SOLOADER_DONT_TREAT_AS_SYSTEMAPP - Static variable in class com.facebook.soloader.SoLoader
System Apps ignore PREFER_ANDROID_LIBS_DIRECTORY.
SOLOADER_ENABLE_EXOPACKAGE - Static variable in class com.facebook.soloader.SoLoader
Enable the exopackage SoSource.
SOLOADER_LOOK_IN_ZIP - Static variable in class com.facebook.soloader.SoLoader
 
SOLOADER_SKIP_MERGED_JNI_ONLOAD - Static variable in class com.facebook.soloader.SoLoader
Skip calling JNI_OnLoad if the library is merged.
SoSource - Class in com.facebook.soloader
 
SoSource() - Constructor for class com.facebook.soloader.SoSource
 
SystemDelegate - Class in com.facebook.soloader.nativeloader
Class which connects system's native library loader to NativeLoader
SystemDelegate() - Constructor for class com.facebook.soloader.nativeloader.SystemDelegate
 
SystemLoadLibraryWrapper - Interface in com.facebook.soloader
 
SysUtil - Class in com.facebook.soloader
 
SysUtil() - Constructor for class com.facebook.soloader.SysUtil
 

T

toString() - Method in class com.facebook.soloader.ApplicationSoSource
 
toString() - Method in class com.facebook.soloader.DirectorySoSource
 
toString() - Method in enum com.facebook.soloader.MinElf.ISA
 
toString() - Method in class com.facebook.soloader.SoSource
Return the class name of the actual instance.

U

UnpackingSoSource - Class in com.facebook.soloader
SoSource that extracts libraries from an APK to the filesystem.
UnpackingSoSource.Dso - Class in com.facebook.soloader
 
UnpackingSoSource.DsoManifest - Class in com.facebook.soloader
 
unpackLibrary(String) - Method in class com.facebook.soloader.ApplicationSoSource
 
unpackLibrary(String) - Method in class com.facebook.soloader.DirectorySoSource
 
unpackLibrary(String) - Method in class com.facebook.soloader.NoopSoSource
 
unpackLibrary(String) - Method in class com.facebook.soloader.SoSource
Ensure that a shared library exists on disk somewhere.
unpackLibraryAndDependencies(String) - Static method in class com.facebook.soloader.SoLoader
Unpack library and its dependencies, returning the location of the unpacked library file.

V

valueOf(String) - Static method in enum com.facebook.soloader.MinElf.ISA
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.facebook.soloader.MinElf.ISA
Returns an array containing the constants of this enum type, in the order they are declared.

W

write(DataOutput) - Method in class com.facebook.soloader.UnpackingSoSource.DsoManifest
 
A C D E F G H I L M N O P R S T U V W 
Skip navigation links