mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +00:00
Support detecting safemode by ro.sys.safemode
This commit is contained in:
parent
bdfedea4e0
commit
4d876f0145
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user