modified: src/main.rs
All checks were successful
gitea/Frida-android-native/pipeline/head This commit looks good
All checks were successful
gitea/Frida-android-native/pipeline/head This commit looks good
modified: src/mobile.rs
This commit is contained in:
parent
7b6d6da5fd
commit
e5a2949172
@ -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]
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user