Apk

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.

Methods

public static native String path() native source

The path of the base APK on the host.

public static native String[] splitPaths() native source

The paths of the split APKs, and their names (the manifests' split attributes).

public static native String[] splitNames() native source
public static native String libraryDir() native source

The folder of the app's native libraries, for its ABI (ApplicationInfo.nativeLibraryDir).

public static synchronized byte[] read(String name) source

A member's bytes ("res/drawable/icon.xml"), or null when the APK has none.

public static synchronized String[] list() source

The names of every member of every APK, the base's first.

public static synchronized byte[] readFrom(int apk, String name) source

A 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) source

Whether 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.