Commit 4d876f01 authored by LoveSy's avatar LoveSy Committed by John Wu

Support detecting safemode by ro.sys.safemode

parent bdfedea4
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment