Class ShadowArscApkAssets9

    • Field Detail

      • FRAMEWORK_APK_PATH

        protected static final String FRAMEWORK_APK_PATH
    • Constructor Detail

      • ShadowArscApkAssets9

        public ShadowArscApkAssets9()
    • Method Detail

      • loadFromPath

        @Implementation(maxSdk=29)
        protected static ApkAssets loadFromPath​(String path,
                                                boolean system)
                                         throws IOException
        Necessary to shadow this method because the framework path is hard-coded. Called from AssetManager.createSystemAssetsInZygoteLocked() in P+.
        Throws:
        IOException
      • loadFromPath

        @Implementation(maxSdk=29)
        protected static ApkAssets loadFromPath​(String path,
                                                boolean system,
                                                boolean forceSharedLibrary)
                                         throws IOException
        Throws:
        IOException
      • nativeLoad

        @Implementation(maxSdk=29)
        protected static long nativeLoad​(String path,
                                         boolean system,
                                         boolean forceSharedLib,
                                         boolean overlay)
                                  throws IOException
        Throws:
        IOException
      • nativeLoadFromFd

        @Implementation(maxSdk=29)
        protected static long nativeLoadFromFd​(FileDescriptor file_descriptor,
                                               String friendly_name,
                                               boolean system,
                                               boolean force_shared_lib)
      • nativeGetAssetPath

        @Implementation
        protected static String nativeGetAssetPath​(long ptr)
      • nativeGetStringBlock

        @Implementation
        protected static long nativeGetStringBlock​(long ptr)
      • nativeIsUpToDate

        @Implementation
        protected static boolean nativeIsUpToDate​(long ptr)
      • close

        @Implementation(minSdk=31)
        protected void close()