From 473902f5f4640fb671edb86f5f707d812199a28d Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 27 Jul 2018 22:32:47 +0800 Subject: [PATCH] Proper detect MagiskHide status --- app/src/full/java/com/topjohnwu/magisk/MagiskManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/full/java/com/topjohnwu/magisk/MagiskManager.java b/app/src/full/java/com/topjohnwu/magisk/MagiskManager.java index a7f01dd70..931121035 100644 --- a/app/src/full/java/com/topjohnwu/magisk/MagiskManager.java +++ b/app/src/full/java/com/topjohnwu/magisk/MagiskManager.java @@ -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) {} }