More SuperSU support

This commit is contained in:
topjohnwu
2017-01-02 02:00:53 +08:00
parent 2b72f40cec
commit 2afd2f0d3b
3 changed files with 123 additions and 62 deletions

View File

@@ -340,6 +340,12 @@ case $1 in
log_print "* Preparing modules"
# Disable phh and Magisk Hide for SuperSU
if [ -f /sbin/launch_daemonsu.sh ]; then
touch /magisk/phh/disable 2>/dev/null
rm -f $COREDIR/magiskhide/enable 2>/dev/null
fi
mkdir -p $DUMMDIR
mkdir -p $MIRRDIR/system
@@ -442,8 +448,7 @@ case $1 in
log_print "** Magisk late_start service mode running..."
run_scripts service
# Magisk Hide (disable with SuperSU)
[ -f /sbin/launch_daemonsu.sh ] && rm -f $COREDIR/magiskhide/enable
# Magisk Hide
if [ -f $COREDIR/magiskhide/enable ]; then
log_print "* Removing tampered read-only system props"