@Implements(value=android.content.res.ApkAssets.class, minSdk=28, shadowPicker=ShadowApkAssets.Picker.class, isInAndroidSdk=false) public class ShadowArscApkAssets9 extends ShadowApkAssets
ShadowApkAssets.Picker
Constructor and Description |
---|
ShadowArscApkAssets9() |
Modifier and Type | Method and Description |
---|---|
protected static ApkAssets |
loadFromFd(FileDescriptor fd,
String friendlyName,
boolean system,
boolean forceSharedLibrary) |
protected static ApkAssets |
loadFromPath(String path) |
protected static ApkAssets |
loadFromPath(String path,
boolean system)
Necessary to shadow this method because the framework path is hard-coded.
|
protected static ApkAssets |
loadFromPath(String path,
boolean system,
boolean forceSharedLibrary) |
protected static ApkAssets |
loadOverlayFromPath(String idmapPath,
boolean system) |
protected static void |
nativeDestroy(long ptr) |
protected static String |
nativeGetAssetPath(long ptr) |
protected static long |
nativeGetStringBlock(long ptr) |
protected static boolean |
nativeIsUpToDate(long ptr) |
protected static long |
nativeLoad(String java_path,
boolean system,
boolean force_shared_lib,
boolean overlay) |
protected static long |
nativeLoadFromFd(FileDescriptor file_descriptor,
String friendly_name,
boolean system,
boolean force_shared_lib) |
protected static long |
nativeOpenXml(long ptr,
String file_name) |
@Implementation protected static ApkAssets loadFromPath(String path) throws IOException
IOException
@Implementation 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+.
IOException
@Implementation protected static ApkAssets loadFromPath(String path, boolean system, boolean forceSharedLibrary) throws IOException
IOException
@Implementation protected static ApkAssets loadFromFd(FileDescriptor fd, String friendlyName, boolean system, boolean forceSharedLibrary) throws IOException
IOException
@Implementation protected static ApkAssets loadOverlayFromPath(String idmapPath, boolean system) throws IOException
IOException
@Implementation protected static long nativeLoad(String java_path, boolean system, boolean force_shared_lib, boolean overlay) throws IOException
IOException
@Implementation protected static long nativeLoadFromFd(FileDescriptor file_descriptor, String friendly_name, boolean system, boolean force_shared_lib)
@Implementation protected static void nativeDestroy(long ptr)
@Implementation protected static String nativeGetAssetPath(long ptr)
@Implementation protected static long nativeGetStringBlock(long ptr)
@Implementation protected static boolean nativeIsUpToDate(long ptr)
@Implementation protected static long nativeOpenXml(long ptr, String file_name) throws FileNotFoundException
FileNotFoundException