Commit e33f5996 authored by topjohnwu's avatar topjohnwu

Disable MagiskHide when SuperSU detected

parent 8f7f1ff7
...@@ -264,7 +264,7 @@ case $1 in ...@@ -264,7 +264,7 @@ case $1 in
$BINPATH/busybox --install -s $TOOLPATH $BINPATH/busybox --install -s $TOOLPATH
ln -s $BINPATH/busybox $TOOLPATH/busybox ln -s $BINPATH/busybox $TOOLPATH/busybox
# Prevent issues # Prevent issues
rm -f $TOOLPATH/su $TOOLPATH/sh rm -f $TOOLPATH/su $TOOLPATH/sh $TOOLPATH/reboot
fi fi
mv /cache/stock_boot.img /data 2>/dev/null mv /cache/stock_boot.img /data 2>/dev/null
...@@ -436,7 +436,8 @@ case $1 in ...@@ -436,7 +436,8 @@ case $1 in
log_print "** Magisk late_start service mode running..." log_print "** Magisk late_start service mode running..."
run_scripts service 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 if [ -f $COREDIR/magiskhide/enable ]; then
log_print "* Removing tampered read-only system props" log_print "* Removing tampered read-only system props"
......
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