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/simple_log.rs
This commit is contained in:
parent
66028e684d
commit
f669613b0e
@ -26,7 +26,7 @@ use crate::simple_log::SimpleLogger;
|
|||||||
|
|
||||||
static MY_LOGGER: SimpleLogger = SimpleLogger::new();
|
static MY_LOGGER: SimpleLogger = SimpleLogger::new();
|
||||||
|
|
||||||
pub async fn client_mode(client_config: ClientConfiguration, fd: i32, env: &JNIEnv) {
|
pub async fn client_mode(client_config: ClientConfiguration, fd: i32, env: &JNIEnv<'_>) {
|
||||||
MY_LOGGER.set_env(env);
|
MY_LOGGER.set_env(env);
|
||||||
log::set_logger(&MY_LOGGER).unwrap();
|
log::set_logger(&MY_LOGGER).unwrap();
|
||||||
|
|
||||||
|
@ -4,9 +4,9 @@ use std::sync::LazyLock;
|
|||||||
use robusta_jni::jni::JNIEnv;
|
use robusta_jni::jni::JNIEnv;
|
||||||
use crate::jni::FridaLib;
|
use crate::jni::FridaLib;
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Default)]
|
#[derive(Debug, Clone, PartialEq, Default)]
|
||||||
pub struct SimpleLogger {
|
pub struct SimpleLogger<'a> {
|
||||||
env: Option<&JNIEnv>
|
env: Option<&'a JNIEnv>
|
||||||
}
|
}
|
||||||
|
|
||||||
impl log::Log for SimpleLogger {
|
impl log::Log for SimpleLogger {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user