Move some global state into Rust

This commit is contained in:
topjohnwu
2023-11-15 15:44:43 -08:00
parent 7c2e93d266
commit 6c0966b795
6 changed files with 75 additions and 30 deletions

View File

@@ -52,6 +52,7 @@ pub mod ffi {
fn close_log_pipe(self: &MagiskD);
fn setup_logfile(self: &MagiskD);
fn is_emulator(self: &MagiskD) -> bool;
fn is_recovery(self: &MagiskD) -> bool;
}
}