From 89ea58ca1ead259bee0ad62ee295faa4ef772bce Mon Sep 17 00:00:00 2001 From: Thaddeus Ternes Date: Tue, 2 Dec 2025 21:58:47 -0600 Subject: [PATCH] Initialize the jni_utils crate --- src/droidplug/jni/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/droidplug/jni/mod.rs b/src/droidplug/jni/mod.rs index 5b1b44d1..7d0f6e03 100644 --- a/src/droidplug/jni/mod.rs +++ b/src/droidplug/jni/mod.rs @@ -9,6 +9,8 @@ static GLOBAL_JVM: OnceCell = OnceCell::new(); pub fn init(env: &JNIEnv) -> crate::Result<()> { if let Ok(()) = GLOBAL_JVM.set(env.get_java_vm()?) { + jni_utils::init(&env).unwrap(); + env.register_native_methods( "com/nonpolynomial/btleplug/android/impl/Adapter", &[