Class DirectSplitSoSource

java.lang.Object
com.facebook.soloader.SoSource
com.facebook.soloader.DirectSplitSoSource

public class DirectSplitSoSource extends SoSource
  • Constructor Details

    • DirectSplitSoSource

      public DirectSplitSoSource(String splitName)
  • Method Details

    • loadLibrary

      public int loadLibrary(String soName, int loadFlags, android.os.StrictMode.ThreadPolicy threadPolicy)
      Description copied from class: SoSource
      Load a shared library library into this process. This routine is independent of SoSource.loadLibrary(java.lang.String, int, android.os.StrictMode.ThreadPolicy).
      Specified by:
      loadLibrary in class SoSource
      Parameters:
      soName - Name of library to load
      loadFlags - Zero or more of the LOAD_FLAG_XXX constants.
      threadPolicy - Strict Mode policy
      Returns:
      One of the LOAD_RESULT_XXX constants.
    • unpackLibrary

      @Nullable public File unpackLibrary(String soName)
      Description copied from class: SoSource
      Ensure that a shared library exists on disk somewhere. This routine is independent of SoSource.loadLibrary(java.lang.String, int, android.os.StrictMode.ThreadPolicy).
      Specified by:
      unpackLibrary in class SoSource
      Parameters:
      soName - Name of library to load
      Returns:
      File if library found; null if not.
    • getLibraryPath

      @Nullable public String getLibraryPath(String soName)
      Description copied from class: SoSource
      Gets the full path of a library if it is found on this SoSource.
      Overrides:
      getLibraryPath in class SoSource
      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.
    • getLibraryDependencies

      @Nullable public String[] getLibraryDependencies(String soName)
      Description copied from class: SoSource
      Gets the dependencies of a library if it is found on this SoSource
      Overrides:
      getLibraryDependencies in class SoSource
      Parameters:
      soName - Name of library to inspect
      Returns:
      An array of library names upon which soName needs for linking
    • getSoSourceAbis

      public String[] getSoSourceAbis()
      Description copied from class: SoSource
      Return an array of ABIs handled by this SoSource.
      Overrides:
      getSoSourceAbis in class SoSource
      Returns:
      ABIs supported by this SoSource
    • getName

      public String getName()
      Specified by:
      getName in class SoSource
      Returns:
      the name of this SoSource for logging purposes