mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-26 00:17:39 +00:00
Proper detect MagiskHide status
This commit is contained in:
parent
41c0721159
commit
473902f5f4
@ -181,7 +181,7 @@ public class MagiskManager extends Application {
|
||||
magiskVersionCode = Integer.parseInt(ShellUtils.fastCmd("magisk -V"));
|
||||
String s = ShellUtils.fastCmd((magiskVersionCode >= Const.MAGISK_VER.RESETPROP_PERSIST ?
|
||||
"resetprop -p " : "getprop ") + Const.MAGISKHIDE_PROP);
|
||||
magiskHide = Integer.parseInt(s) != 0;
|
||||
magiskHide = s.isEmpty() || Integer.parseInt(s) != 0;
|
||||
} catch (Exception ignored) {}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user