modified: src/main.rs
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:
Michael Wain 2024-10-06 02:30:12 +03:00
parent ef5339f595
commit 0f7206e51a
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
use jni::{
objects::{JClass, JString},
sys::{jboolean, jchar, jint},
sys::{jboolean, jchar, jint, jstring},
JNIEnv,
};
use std::{error::Error, fs, net::Ipv4Addr, str};
@ -37,7 +37,7 @@ pub unsafe extern "C" fn Java_com_alterdekim_frida_FridaLib_run(
pub unsafe extern "C" fn Java_com_alterdekim_frida_FridaLib_fetchLogs(
mut env: JNIEnv,
_clazz: JClass
) -> JString {
) -> jstring {
String::from_utf8_lossy(simple_log::fetch_logs())
}

View File

@ -1,3 +1,5 @@
use crossbeam_channel::unbounded;
struct ll {
pub tx: Sender<Vec<u8>>,
pub rx: Receiver<Vec<u8>>