mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 13:35:27 +00:00
Disable MagiskHide when SuperSU detected
This commit is contained in:
parent
8f7f1ff7dd
commit
e33f5996f3
@ -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
|
|||||||
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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user