Class ShadowArscApkAssets9


  • @Implements(value=android.content.res.ApkAssets.class,
                minSdk=28,
                shadowPicker=Picker.class,
                isInAndroidSdk=false)
    public class ShadowArscApkAssets9
    extends ShadowApkAssets
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String FRAMEWORK_APK_PATH  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static android.content.res.ApkAssets getFromCacheOrLoad​(ShadowArscApkAssets9.Key key, ShadowArscApkAssets9.ApkAssetMaker callable)  
      protected static android.content.res.ApkAssets loadFromFd​(java.io.FileDescriptor fd, java.lang.String friendlyName, boolean system, boolean forceSharedLibrary)  
      protected static android.content.res.ApkAssets loadFromPath​(java.lang.String path)  
      protected static android.content.res.ApkAssets loadFromPath​(java.lang.String path, boolean system)
      Necessary to shadow this method because the framework path is hard-coded.
      protected static android.content.res.ApkAssets loadFromPath​(java.lang.String path, boolean system, boolean forceSharedLibrary)  
      protected static android.content.res.ApkAssets loadOverlayFromPath​(java.lang.String idmapPath, boolean system)  
      protected static java.lang.String nativeGetAssetPath​(long ptr)  
      protected static long nativeGetStringBlock​(long ptr)  
      protected static boolean nativeIsUpToDate​(long ptr)  
      protected static long nativeLoad​(java.lang.String java_path, boolean system, boolean force_shared_lib, boolean overlay)  
      protected static long nativeLoadFromFd​(java.io.FileDescriptor file_descriptor, java.lang.String friendly_name, boolean system, boolean force_shared_lib)  
      protected static long nativeOpenXml​(long ptr, java.lang.String file_name)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FRAMEWORK_APK_PATH

        protected static final java.lang.String FRAMEWORK_APK_PATH
    • Constructor Detail

      • ShadowArscApkAssets9

        public ShadowArscApkAssets9()
    • Method Detail

      • loadFromPath

        @Implementation
        protected static android.content.res.ApkAssets loadFromPath​(java.lang.String path)
                                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • loadFromPath

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

        @Implementation
        protected static android.content.res.ApkAssets loadFromPath​(java.lang.String path,
                                                                    boolean system,
                                                                    boolean forceSharedLibrary)
                                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • loadFromFd

        @Implementation
        protected static android.content.res.ApkAssets loadFromFd​(java.io.FileDescriptor fd,
                                                                  java.lang.String friendlyName,
                                                                  boolean system,
                                                                  boolean forceSharedLibrary)
                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • loadOverlayFromPath

        @Implementation
        protected static android.content.res.ApkAssets loadOverlayFromPath​(java.lang.String idmapPath,
                                                                           boolean system)
                                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • nativeLoad

        @Implementation
        protected static long nativeLoad​(java.lang.String java_path,
                                         boolean system,
                                         boolean force_shared_lib,
                                         boolean overlay)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • nativeLoadFromFd

        @Implementation
        protected static long nativeLoadFromFd​(java.io.FileDescriptor file_descriptor,
                                               java.lang.String friendly_name,
                                               boolean system,
                                               boolean force_shared_lib)
      • nativeGetAssetPath

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

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

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

        @Implementation
        protected static long nativeOpenXml​(long ptr,
                                            java.lang.String file_name)
                                     throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException