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

This commit is contained in:
Michael Wain 2024-10-07 17:55:58 +03:00
parent 9950bae9b1
commit 2ac82592a0

View File

@ -56,7 +56,7 @@ mod jni {
use android_logger::Config; use android_logger::Config;
use jni::objects::{GlobalRef, JObject, JValue, JString}; use jni::objects::{GlobalRef, JObject, JValue, JString};
use jni::sys::{jboolean, jchar, jint, jstring}; use jni::sys::{jboolean, jchar, jint, jstring};
use log::info; use log::{info, trace};
use robusta_jni::convert::{IntoJavaValue, Signature, TryFromJavaValue, TryIntoJavaValue}; use robusta_jni::convert::{IntoJavaValue, Signature, TryFromJavaValue, TryIntoJavaValue};
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;
@ -73,9 +73,9 @@ mod jni {
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) -> JniResult<i32> { 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("RustFrida"));
trace!("Hello world");
info!("Hello world! {:?}", tun_fd); info!("Hello world! {:?}", tun_fd);
Ok(-2) Ok(-2)