Class of snx.android.nativebridge · NativeBridge.java
public final class NativeBridge
The app's native libraries: AArch64 code for bionic, recompiled and run in this process (docs/platforms/android-apps/native.md). Each library loads once, as Android's linker loads it.
public static synchronized void load(String path) sourcepublic static native boolean isSystemLibrary(String name) native sourceWhether a library's file name ("liblog.so") is one of the system's, which the bridge's HLE is.
public static native long invokeJ(String key, Object self, long[] prims, Object[] refs) native sourceA native method of the app, which the translator makes call these: its key ("Lpkg/Class;.name(signature)"), the object (or the class of a static method), its primitive parameters in order as their bits (a float's and a double's raw bits), and its references. The result's bits, or the reference.
public static native Object invokeL(String key, Object self, long[] prims, Object[] refs) native sourcepublic static native void invokeV(String key, Object self, long[] prims, Object[] refs) native sourcepublic static native java.nio.ByteBuffer allocateGuest(int capacity, long[] address) native sourceA zeroed direct buffer of capacity bytes in the 32-bit bridge's window, its guest address in address[0]; null when no 32-bit library runs
public static native void freeGuest(long address) native sourcepublic static native long activityCreate(Object activity, String function, String internalPath, String externalPath, int sdk) native sourceNativeActivity's glue: its ANativeActivity made and the library's function of that name called with it (0 when the native bridge has no glue for the library), then the callbacks that the library set, by their index
public static native void activityCall(long activity, int callback, long argument) native sourcepublic static native long inputQueueNew() native sourcean AInputQueue (0 when the native bridge has none), and the events sent to it
public static native void inputQueueMotion(long queue, int device, int source, int action, int flags, int meta, int buttons, int edges, long downNanos, long eventNanos, float xPrecision, float yPrecision, int[] ids, int[] tools, float[] axes) native sourcepublic static native void inputQueueKey(long queue, int device, int source, int action, int flags, int keyCode, int scanCode, int meta, int repeat, long downNanos, long eventNanos) native sourceMade 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.