Use system-provided remount command, and remove properly superuser app

This commit is contained in:
Pierre-Hugues Husson 2019-12-08 21:36:47 +01:00
parent 9f9ede3158
commit ad57918dbc

View File

@ -2,6 +2,7 @@
mount -o remount,rw /
mount -o remount,rw /system
remount
touch /system/phh/secure
umount -l /system/xbin/su
@ -9,7 +10,7 @@ rm /system/xbin/su
rm /system/bin/phh-su
rm /system/etc/init/su.rc
rm /system/bin/phh-securize.sh
rm -Rf /system/bin/me.phh.superuser/
rm -Rf /system/{app,priv-app}/me.phh.superuser/
mount -o remount,ro /
mount -o remount,ro /system
sync