From 64d61bae083a6a8efe95886c7f55b085239f368c Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 26 Mar 2017 21:47:54 +0800 Subject: [PATCH] Start MagiskHide even if disabled (MagiskSU only mode) --- scripts/magic_mask.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/magic_mask.sh b/scripts/magic_mask.sh index d85e86090..691990a28 100644 --- a/scripts/magic_mask.sh +++ b/scripts/magic_mask.sh @@ -340,6 +340,7 @@ case $1 in fi mount -o ro,remount rootfs / + # Exit if disabled [ -f $DISABLEFILE ] && unblock # Multirom functions should go here, not available right now @@ -528,14 +529,17 @@ case $1 in # Version info MAGISK_VERSION_STUB log_print "** Magisk late_start service mode running..." + + # Start MagiskHide + [ "`getprop persist.magisk.hide`" = "1" ] && sh $COREDIR/magiskhide/enable + if [ -f $DISABLEFILE ]; then + # Let MagiskManager know setprop ro.magisk.disable 1 exit fi - run_scripts service - # Start MagiskHide - [ "`getprop persist.magisk.hide`" = "1" ] && sh $COREDIR/magiskhide/enable + run_scripts service ;; esac