modified: src/client.rs
Some checks failed
gitea/Frida-android-native/pipeline/head There was a failure building this commit
Some checks failed
gitea/Frida-android-native/pipeline/head There was a failure building this commit
modified: src/main.rs modified: src/mobile.rs
This commit is contained in:
parent
efa814c70a
commit
cc559ad894
@ -21,6 +21,8 @@ use crate::config::ClientConfiguration;
|
|||||||
use crate::udp::{UDPVpnPacket, UDPVpnHandshake, UDPSerializable};
|
use crate::udp::{UDPVpnPacket, UDPVpnHandshake, UDPSerializable};
|
||||||
use network_interface::NetworkInterface;
|
use network_interface::NetworkInterface;
|
||||||
use network_interface::NetworkInterfaceConfig;
|
use network_interface::NetworkInterfaceConfig;
|
||||||
|
use robusta_jni::jni::JNIEnv;
|
||||||
|
use crate::simple_log::SimpleLogger;
|
||||||
|
|
||||||
static MY_LOGGER: SimpleLogger = SimpleLogger::new();
|
static MY_LOGGER: SimpleLogger = SimpleLogger::new();
|
||||||
|
|
||||||
|
@ -61,6 +61,7 @@ mod jni {
|
|||||||
use robusta_jni::jni::errors::Result as JniResult;
|
use robusta_jni::jni::errors::Result as JniResult;
|
||||||
use robusta_jni::jni::objects::AutoLocal;
|
use robusta_jni::jni::objects::AutoLocal;
|
||||||
use robusta_jni::jni::JNIEnv;
|
use robusta_jni::jni::JNIEnv;
|
||||||
|
use crate::mobile;
|
||||||
|
|
||||||
#[derive(Signature, TryIntoJavaValue, IntoJavaValue, TryFromJavaValue)]
|
#[derive(Signature, TryIntoJavaValue, IntoJavaValue, TryFromJavaValue)]
|
||||||
#[package(com.alterdekim.frida)]
|
#[package(com.alterdekim.frida)]
|
||||||
|
@ -5,6 +5,7 @@ use fast32::base32::RFC4648;
|
|||||||
use crate::client;
|
use crate::client;
|
||||||
use jni::sys::jint;
|
use jni::sys::jint;
|
||||||
use tokio::runtime::Runtime;
|
use tokio::runtime::Runtime;
|
||||||
|
use robusta_jni::jni::JNIEnv;
|
||||||
|
|
||||||
pub fn mobile_run(cfg_raw: String, close_fd_on_drop: bool, tun_fd: i32, env: &JNIEnv) -> c_int {
|
pub fn mobile_run(cfg_raw: String, close_fd_on_drop: bool, tun_fd: i32, env: &JNIEnv) -> c_int {
|
||||||
let config: ClientConfiguration = serde_yaml::from_slice(RFC4648.decode(cfg_raw.as_bytes()).unwrap().as_slice()).expect("Bad client config file structure");
|
let config: ClientConfiguration = serde_yaml::from_slice(RFC4648.decode(cfg_raw.as_bytes()).unwrap().as_slice()).expect("Bad client config file structure");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user