Directly guard boot state with mutex

This commit is contained in:
topjohnwu
2023-11-27 17:40:58 +08:00
parent a6d1803105
commit c7083659aa
4 changed files with 22 additions and 27 deletions

View File

@@ -57,7 +57,7 @@ pub mod ffi {
#[cxx_name = "MagiskD"]
type CxxMagiskD;
fn post_fs_data(self: &CxxMagiskD);
fn post_fs_data(self: &CxxMagiskD) -> bool;
fn late_start(self: &CxxMagiskD);
fn boot_complete(self: &CxxMagiskD);
}
@@ -87,7 +87,6 @@ pub mod ffi {
fn is_emulator(self: &MagiskD) -> bool;
fn is_recovery(self: &MagiskD) -> bool;
fn boot_stage_handler(self: &MagiskD, client: i32, code: i32);
fn enable_safe_mode(self: &MagiskD);
}
}