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-13 05:14:26 +03:00
parent 25c66d1a78
commit 6bad4f9921

View File

@ -32,8 +32,8 @@ static LOG_FILE: std::sync::Mutex<Option<File>> = std::sync::Mutex::new(None);
pub fn log2java(text: String) {
if let Ok(mut l) = LOG_FILE.lock() {
if let Some(mut ff) = l.take() {
ff.write_all(text.as_bytes());
ff.write_all(b"\n");
ff.write(text.as_bytes());
ff.write(b"\n");
ff.flush();
//jni::FridaLib::traceFromNative(l.unwrap(), text);
}