modified: src/main.rs
Some checks failed
gitea/Frida-android-native/pipeline/head There was a failure building this commit

This commit is contained in:
Michael Wain 2024-10-07 17:35:07 +03:00
parent dc65630dc5
commit 9d96bfdc71

View File

@ -72,13 +72,17 @@ mod jni {
impl<'env: 'borrow, 'borrow> FridaLib<'env, 'borrow> { impl<'env: 'borrow, 'borrow> FridaLib<'env, 'borrow> {
pub extern "jni" fn start(self, env: &JNIEnv, config_b32: String, pub extern "jni" fn start(self, env: &JNIEnv, config_b32: String,
tun_fd: i32, tun_fd: i32,
close_fd_on_drop: bool) -> jint { close_fd_on_drop: bool) -> JniResult<i32> {
android_logger::init_once(Config::default().with_tag("RUST_FRIDA")); android_logger::init_once(Config::default().with_tag("RUST_FRIDA"));
info!("Hello world! {:?}", tun_fd); info!("Hello world! {:?}", tun_fd);
-2
}
pub extern "jni" fn stop(self, env: &JNIEnv) -> JniResult<i32> {
-1
} }
/*pub extern "java" fn getAppFilesDir( /*pub extern "java" fn getAppFilesDir(