modified: src/main.rs
All checks were successful
gitea/Frida-android-native/pipeline/head This commit looks good

modified:   src/mobile.rs
This commit is contained in:
Michael Wain 2024-10-06 00:58:33 +03:00
parent 7b6d6da5fd
commit e5a2949172
2 changed files with 3 additions and 3 deletions

View File

@ -28,8 +28,7 @@ pub unsafe extern "C" fn Java_com_alterdekim_frida_FridaLib_run(
) -> jint {
let config = env.get_string(config_b32).unwrap().into();
let close_fd_on_drop = close_fd_on_drop != 0;
mobile::mobile_run(config, close_fd_on_drop, tun_fd);
0
mobile::mobile_run(config, close_fd_on_drop, tun_fd)
}
#[no_mangle]

View File

@ -8,7 +8,8 @@ use tokio::runtime::Runtime;
pub fn mobile_run(cfg_raw: String, close_fd_on_drop: bool, tun_fd: jint) -> c_int {
let config: ClientConfiguration = serde_yaml::from_slice(RFC4648.decode(cfg_raw.as_bytes()).unwrap().as_slice()).expect("Bad client config file structure");
Runtime::new().unwrap().block_on(client::client_mode(config, tun_fd))
Runtime::new().unwrap().block_on(client::client_mode(config, tun_fd));
0
/*let block = async move {
let mut config = tun2::Configuration::default();