core: add safe mode config to db

This commit is contained in:
vvb2060
2024-01-06 04:00:37 +08:00
committed by John Wu
parent 72b8d12ee4
commit 02e189a029
5 changed files with 38 additions and 24 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ impl MagiskD {
}
RequestCode::BOOT_COMPLETE => {
unsafe { libc::close(client) };
if !state.contains(BootState::SafeMode) {
if state.contains(BootState::PostFsDataDone) {
state.set(BootState::BootComplete);
self.as_cxx().boot_complete()
}