Commit 1daf5a61 authored by topjohnwu's avatar topjohnwu

MagiskHide now defaults to enabled

parent 6aed1db6
...@@ -108,7 +108,7 @@ public class MagiskManager extends Application { ...@@ -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 { ...@@ -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;
} }
} }
......
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