From e33f5996f3a43e190df7eeb7566d067fcde12b8f Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 18 Dec 2016 22:50:27 +0800 Subject: [PATCH] Disable MagiskHide when SuperSU detected --- scripts/magic_mask.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/magic_mask.sh b/scripts/magic_mask.sh index 532d72b39..ca93f9f66 100644 --- a/scripts/magic_mask.sh +++ b/scripts/magic_mask.sh @@ -264,7 +264,7 @@ case $1 in $BINPATH/busybox --install -s $TOOLPATH ln -s $BINPATH/busybox $TOOLPATH/busybox # Prevent issues - rm -f $TOOLPATH/su $TOOLPATH/sh + rm -f $TOOLPATH/su $TOOLPATH/sh $TOOLPATH/reboot fi mv /cache/stock_boot.img /data 2>/dev/null @@ -436,7 +436,8 @@ case $1 in log_print "** Magisk late_start service mode running..." run_scripts service - # Magisk Hide + # Magisk Hide (disable with SuperSU) + [ -f /sbin/launch_daemonsu.sh ] && rm -f $COREDIR/magiskhide/enable if [ -f $COREDIR/magiskhide/enable ]; then log_print "* Removing tampered read-only system props"