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", &[