2019-08-21 22:35:41 +00:00
|
|
|
#!/system/bin/sh
|
|
|
|
|
2020-05-09 23:20:02 +00:00
|
|
|
SYSTEM=/system
|
|
|
|
[ -d /sbin/.magisk/mirror/system ] && SYSTEM=/sbin/.magisk/mirror/system
|
|
|
|
|
|
|
|
for MOUNTPOINT in \
|
|
|
|
/sbin/.magisk/mirror/system_root \
|
|
|
|
/sbin/.magisk/mirror/system \
|
|
|
|
/system \
|
|
|
|
/
|
|
|
|
do
|
|
|
|
[ -d $MOUNTPOINT ] && mountpoint -q $MOUNTPOINT && break
|
|
|
|
done
|
|
|
|
|
|
|
|
mount -o remount,rw $MOUNTPOINT
|
2019-12-08 20:36:47 +00:00
|
|
|
remount
|
2019-08-21 22:35:41 +00:00
|
|
|
|
2020-05-09 23:20:02 +00:00
|
|
|
touch $SYSTEM/phh/secure
|
|
|
|
umount -l $SYSTEM/xbin/su
|
|
|
|
rm $SYSTEM/xbin/su
|
|
|
|
rm $SYSTEM/bin/phh-su
|
|
|
|
rm $SYSTEM/etc/init/su.rc
|
|
|
|
rm $SYSTEM/bin/phh-securize.sh
|
|
|
|
rm -Rf $SYSTEM/{app,priv-app}/me.phh.superuser/
|
2020-02-23 19:12:17 +00:00
|
|
|
rm -Rf /data/su || true
|
2020-05-09 23:20:02 +00:00
|
|
|
mount -o remount,ro $MOUNTPOINT
|
2019-08-21 22:35:41 +00:00
|
|
|
sync
|
|
|
|
reboot
|