blob: ec471c471d10e7babda5db5bc6331c59f772692a [file] [log] [blame]
Pierre-Hugues Husson6eaf5012018-05-14 17:04:27 +02001#!/system/bin/sh
2
Aren Cleggd6aa9592018-08-05 01:36:48 +00003if [ "$(getprop ro.vendor.product.device)" == "HWBKL" ];then
4 phh-su -c 'mount -o remount,rw /system'
5 phh-su -c 'rm -rf /system/priv-app/Camera2'
6 phh-su -c 'mount -o remount,ro /system'
7else
8 phh-su -c 'mount -o remount,rw /system'
9 phh-su -c 'rm -rf /system/priv-app/HwCamera2'
10 phh-su -c 'mount -o remount,ro /system'
11fi
12
Pierre-Hugues Hussonaea19262018-07-18 23:46:34 +020013if grep -qF android.hardware.boot /vendor/manifest.xml;then
14 bootctl mark-boot-successful
15fi
16
17#Clear looping services
Pierre-Hugues Husson6eaf5012018-05-14 17:04:27 +020018sleep 30
19getprop | \
20 grep restarting | \
21 sed -nE -e 's/\[([^]]*).*/\1/g' -e 's/init.svc.(.*)/\1/p' |
22 while read svc ;do
23 setprop ctl.stop $svc
24 done