Commit 64d61bae authored by topjohnwu's avatar topjohnwu

Start MagiskHide even if disabled (MagiskSU only mode)

parent 98622654
...@@ -340,6 +340,7 @@ case $1 in ...@@ -340,6 +340,7 @@ case $1 in
fi fi
mount -o ro,remount rootfs / mount -o ro,remount rootfs /
# Exit if disabled
[ -f $DISABLEFILE ] && unblock [ -f $DISABLEFILE ] && unblock
# Multirom functions should go here, not available right now # Multirom functions should go here, not available right now
...@@ -528,14 +529,17 @@ case $1 in ...@@ -528,14 +529,17 @@ case $1 in
# Version info # Version info
MAGISK_VERSION_STUB MAGISK_VERSION_STUB
log_print "** Magisk late_start service mode running..." log_print "** Magisk late_start service mode running..."
# Start MagiskHide
[ "`getprop persist.magisk.hide`" = "1" ] && sh $COREDIR/magiskhide/enable
if [ -f $DISABLEFILE ]; then if [ -f $DISABLEFILE ]; then
# Let MagiskManager know
setprop ro.magisk.disable 1 setprop ro.magisk.disable 1
exit exit
fi fi
run_scripts service
# Start MagiskHide run_scripts service
[ "`getprop persist.magisk.hide`" = "1" ] && sh $COREDIR/magiskhide/enable
;; ;;
esac esac
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment