Class of snx.android · Apk.java
public final class Apk
The app's APKs, which the runtime opened: the base and its splits, read by the runtime's zip reader. A member is found in the base first, then in each split, as an asset pack's assets are found through the AssetManager.
public static native String path() native sourceThe path of the base APK on the host.
public static native String[] splitPaths() native sourceThe paths of the split APKs, and their names (the manifests' split attributes).
public static native String[] splitNames() native sourcepublic static native String libraryDir() native sourceThe folder of the app's native libraries, for its ABI (ApplicationInfo.nativeLibraryDir).
public static synchronized byte[] read(String name) sourceA member's bytes ("res/drawable/icon.xml"), or null when the APK has none.
public static synchronized String[] list() sourceThe names of every member of every APK, the base's first.
public static synchronized byte[] readFrom(int apk, String name) sourceA member's bytes from one APK, 0 the base and 1 on each split in splitPaths' order; null when it has none.
public static synchronized boolean stored(String name) sourceWhether a member is stored, not compressed, as Android needs one to open it as a file descriptor
Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.