mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-14 10:37:28 +00:00
Support detecting safemode by ro.sys.safemode
This commit is contained in:
@@ -313,7 +313,8 @@ void post_fs_data(int client) {
|
||||
goto early_abort;
|
||||
}
|
||||
|
||||
if (getprop("persist.sys.safemode", true) == "1" || check_key_combo()) {
|
||||
if (getprop("persist.sys.safemode", true) == "1" ||
|
||||
getprop("ro.sys.safemode") == "1" || check_key_combo()) {
|
||||
safe_mode = true;
|
||||
// Disable all modules and denylist so next boot will be clean
|
||||
disable_modules();
|
||||
|
Reference in New Issue
Block a user