Class DirectApkSoSource


  • @ThreadSafe
    public class DirectApkSoSource
    extends SoSource
    SoSource that directly finds shared libraries in a APK. The native libraries must be page aligned and stored uncompressed in the APK.
    See Also:
    android:extractNativeLibs
    • Constructor Detail

      • DirectApkSoSource

        public DirectApkSoSource​(android.content.Context context)
      • DirectApkSoSource

        public DirectApkSoSource​(java.io.File apkFile)
      • DirectApkSoSource

        public DirectApkSoSource​(java.io.File apkFile,
                                 java.util.Set<java.lang.String> directApkLdPaths)
    • Method Detail

      • loadLibrary

        public int loadLibrary​(java.lang.String soName,
                               int loadFlags,
                               android.os.StrictMode.ThreadPolicy threadPolicy)
                        throws java.io.IOException
        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.
        Throws:
        java.io.IOException - IOException
      • isValid

        public boolean isValid()
      • toString

        public java.lang.String toString()
        Description copied from class: SoSource
        Return the class name of the actual instance. Useful for debugging.
        Overrides:
        toString in class SoSource
        Returns:
        the instance class name