From 55b8079e86c5192d1902212acf6a211e8409b1e4 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 12 May 2017 23:11:28 +0800 Subject: [PATCH] Update MagiskHide method --- .../java/com/topjohnwu/magisk/asyncs/MagiskHide.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/asyncs/MagiskHide.java b/app/src/main/java/com/topjohnwu/magisk/asyncs/MagiskHide.java index cc6218fe8..1aa01d6db 100644 --- a/app/src/main/java/com/topjohnwu/magisk/asyncs/MagiskHide.java +++ b/app/src/main/java/com/topjohnwu/magisk/asyncs/MagiskHide.java @@ -2,7 +2,6 @@ package com.topjohnwu.magisk.asyncs; import android.app.Activity; -import com.topjohnwu.magisk.MagiskManager; import com.topjohnwu.magisk.utils.Shell; import java.util.List; @@ -20,7 +19,7 @@ public class MagiskHide extends SerialTask { @Override protected Void doInBackground(Object... params) { String command = (String) params[0]; - List ret = Shell.su(MagiskManager.MAGISK_HIDE_PATH + command); + List ret = Shell.su("magiskhide --" + command); if (isList) { magiskManager.magiskHideList = ret; } @@ -43,17 +42,17 @@ public class MagiskHide extends SerialTask { } public void enable() { - exec("enable; setprop persist.magisk.hide 1"); + exec("enable"); } public void disable() { - exec("disable; setprop persist.magisk.hide 0"); + exec("disable"); } public void list() { isList = true; if (magiskManager == null) return; - exec("list"); + exec("ls"); } }