Class of snx.dalvik · Runtime.java
public final class Runtime
What translated DEX code calls for the instructions that have no JVM bytecode.
public static void loadLibrary(String name) sourceSystem.loadLibrary and Runtime.loadLibrary, which the translator sends here: lib{name}.so of the app's native library folder, loaded by the native bridge (docs/platforms/android-apps/native.md), never by HotSpot's loader. A system library that the app does not carry (System.loadLibrary("log"), as .NET's runtime calls it) is the bridge's HLE, which has nothing to load.
public static void load(String path) sourcepublic static void runtimeLoadLibrary(java.lang.Runtime runtime, String name) sourcepublic static Object cloneObject(Object o) throws CloneNotSupportedException sourceObject.clone of a receiver that the translator does not know to be the caller's own class (translate.c): ART clones any array so. An array is cloned by its type; another object by its public clone, as a Cloneable class that overrides it gives one.
public static java.nio.ByteBuffer allocateDirect(int capacity) sourceByteBuffer.allocateDirect, which the translator sends here: a buffer in the memory that the app's native code reaches. A 32-bit library's is its 4 GiB window, so the buffer is there while one runs, and its memory is freed when the buffer is unreachable; else the JDK's own buffer.
public static void runtimeLoad(java.lang.Runtime runtime, String path) sourcepublic static void fillArrayData(Object array, int offset, String data, int width) sourcefill-array-data: the payload's bytes, little-endian elements of width bytes, from element offset on. The translator puts each byte in one char of a string constant.
public static Class<?> forName(String name) throws ClassNotFoundException sourceClass.forName(String) that native code calls through JNI: the class by the app's loader. The one-argument form loads with its caller's loader, which for a JNI call is the loader of the native method that runs. On Android that is the app's own class; here every native method is NativeBridge's, the framework's (jni.c).
public static String signature(java.lang.reflect.Executable e) sourceThe JNI signature of a method or a constructor, "(II)Ljava/lang/String;", for FromReflectedMethod (jni.c)
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.