MagiskHide now defaults to enabled
This commit is contained in:
parent
6aed1db67e
commit
1daf5a611c
@ -108,7 +108,7 @@ public class MagiskManager extends Application {
|
|||||||
devLogging = false;
|
devLogging = false;
|
||||||
shellLogging = false;
|
shellLogging = false;
|
||||||
}
|
}
|
||||||
magiskHide = prefs.getBoolean("magiskhide", false);
|
magiskHide = prefs.getBoolean("magiskhide", true);
|
||||||
updateNotification = prefs.getBoolean("notification", true);
|
updateNotification = prefs.getBoolean("notification", true);
|
||||||
initSU();
|
initSU();
|
||||||
// Always start a new root shell manually, just for safety
|
// Always start a new root shell manually, just for safety
|
||||||
@ -196,9 +196,9 @@ public class MagiskManager extends Application {
|
|||||||
}
|
}
|
||||||
ret = Shell.sh("getprop " + MAGISKHIDE_PROP);
|
ret = Shell.sh("getprop " + MAGISKHIDE_PROP);
|
||||||
try {
|
try {
|
||||||
magiskHide = Utils.isValidShellResponse(ret) && Integer.parseInt(ret.get(0)) != 0;
|
magiskHide = !Utils.isValidShellResponse(ret) || Integer.parseInt(ret.get(0)) != 0;
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
magiskHide = false;
|
magiskHide = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user