mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-25 14:47:24 +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;
|
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;
|
safe_mode = true;
|
||||||
// Disable all modules and denylist so next boot will be clean
|
// Disable all modules and denylist so next boot will be clean
|
||||||
disable_modules();
|
disable_modules();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user