From f9405713198cea4c71f5c4c3eb4e24f880159f07 Mon Sep 17 00:00:00 2001 From: alterdekim Date: Fri, 20 Sep 2024 03:34:00 +0300 Subject: [PATCH] modified: src/lib.rs --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 45305b8..030af52 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -32,7 +32,7 @@ pub mod android { use self::jni::sys::{jstring}; #[no_mangle] - pub unsafe extern fn Java_com_alterdekim_frida_FridaVPN_startClient(env: JNIEnv, _: JClass, java_pattern: JString) { + pub async unsafe extern fn Java_com_alterdekim_frida_FridaVPN_startClient(env: JNIEnv, _: JClass, java_pattern: JString) { // Our Java companion code might pass-in "world" as a string, hence the name. //let world = rust_greeting(env.get_string(java_pattern).expect("invalid pattern string").as_ptr()); // Retake pointer so that we can use it below and allow memory to be freed when it goes out of scope. @@ -49,7 +49,7 @@ pub mod android { }; let config: ClientConfiguration = serde_yaml::from_slice(RFC4648.decode(cfg_raw.as_bytes()).unwrap().as_slice()).expect("Bad client config file structure"); - client::client_mode(config); + client::client_mode(config).await; //let output = env.new_string("gabber").expect("Couldn't create java string!");