MCPcopy Create free account
hub / github.com/Gstalker/Zygisk-Rust-ModuleTemplate / hook_jni_native_methods

Method hook_jni_native_methods

module/rust/src/api.rs:98–112  ·  view source on GitHub ↗

Hook JNI native methods for a Java class. This looks up all registered JNI native methods and replaces them with your own functions. The original function pointer will be saved in each `JNINativeMethod`'s `fnPtr` (thus the `&mut` requirement in the function signature). If no matching class, method name, or signature is found, that specific `JNINativeMethod.fnPtr` will be set to [std::ptr::null_m

(
        &self,
        env: JNIEnv,
        class_name: &JNIStr,
        methods: &mut [JNINativeMethod],
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected