You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Do not go through magiskd for getting the log pipe
This commit is contained in:
@@ -5,7 +5,7 @@ use std::sync::{Mutex, OnceLock};
|
||||
use base::{cstr, Directory, ResultExt, Utf8CStr, Utf8CStrBuf, Utf8CStrBufRef, WalkResult};
|
||||
|
||||
use crate::get_prop;
|
||||
use crate::logging::{magisk_logging, zygisk_logging};
|
||||
use crate::logging::magisk_logging;
|
||||
|
||||
// Global magiskd singleton
|
||||
pub static MAGISKD: OnceLock<MagiskD> = OnceLock::new();
|
||||
@@ -50,12 +50,6 @@ pub fn daemon_entry() {
|
||||
magisk_logging();
|
||||
}
|
||||
|
||||
pub fn zygisk_entry() {
|
||||
let magiskd = MagiskD::default();
|
||||
MAGISKD.set(magiskd).ok();
|
||||
zygisk_logging();
|
||||
}
|
||||
|
||||
pub fn get_magiskd() -> &'static MagiskD {
|
||||
unsafe { MAGISKD.get().unwrap_unchecked() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user