blob: ec471c471d10e7babda5db5bc6331c59f772692a [file] [log] [blame]
#!/system/bin/sh
if [ "$(getprop ro.vendor.product.device)" == "HWBKL" ];then
phh-su -c 'mount -o remount,rw /system'
phh-su -c 'rm -rf /system/priv-app/Camera2'
phh-su -c 'mount -o remount,ro /system'
else
phh-su -c 'mount -o remount,rw /system'
phh-su -c 'rm -rf /system/priv-app/HwCamera2'
phh-su -c 'mount -o remount,ro /system'
fi
if grep -qF android.hardware.boot /vendor/manifest.xml;then
bootctl mark-boot-successful
fi
#Clear looping services
sleep 30
getprop | \
grep restarting | \
sed -nE -e 's/\[([^]]*).*/\1/g' -e 's/init.svc.(.*)/\1/p' |
while read svc ;do
setprop ctl.stop $svc
done