modified: src/main.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
This commit is contained in:
parent
96ec04cd41
commit
f249b29561
@ -17,6 +17,7 @@ use ::jni::objects::GlobalRef;
|
||||
use ::jni::JavaVM;
|
||||
use robusta_jni::bridge;
|
||||
use std::sync::OnceLock;
|
||||
use robusta_jni::jni::JNIEnv;
|
||||
|
||||
mod config;
|
||||
mod client;
|
||||
@ -27,7 +28,7 @@ static TUN_QUIT: std::sync::Mutex<Option<tokio_util::sync::CancellationToken>> =
|
||||
static LOG_ENV: Option<&JNIEnv> = None;
|
||||
|
||||
pub fn log2java(text: String) {
|
||||
if Some(env) = LOG_ENV {
|
||||
if let Some(env) = LOG_ENV {
|
||||
jni::FridaLib::traceFromNative(env, text);
|
||||
}
|
||||
}
|
||||
@ -43,7 +44,7 @@ mod jni {
|
||||
use robusta_jni::jni::objects::AutoLocal;
|
||||
use robusta_jni::jni::JNIEnv;
|
||||
use crate::mobile;
|
||||
use crate::TUN_QUIT;
|
||||
use crate::{TUN_QUIT, LOG_ENV};
|
||||
|
||||
#[derive(Signature, TryIntoJavaValue, IntoJavaValue, TryFromJavaValue)]
|
||||
#[package(com.alterdekim.frida)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user