blob: 00c31a98cda54b79fb3b19fee7b7a3f8cae526c7 [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'
Aren Clegg72325ce2018-08-05 07:04:03 +00005 phh-su -c 'pm uninstall --user 0 com.android.camera2'
Aren Cleggd6aa9592018-08-05 01:36:48 +00006 phh-su -c 'mount -o remount,ro /system'
7else
8 phh-su -c 'mount -o remount,rw /system'
Aren Clegg72325ce2018-08-05 07:04:03 +00009 phh-su -c 'pm uninstall --user 0 com.huawei.camera'
Aren Cleggd6aa9592018-08-05 01:36:48 +000010 phh-su -c 'mount -o remount,ro /system'
11fi
12
Pierre-Hugues Hussonaea19262018-07-18 23:46:34 +020013#Clear looping services
Pierre-Hugues Husson6eaf5012018-05-14 17:04:27 +020014sleep 30
15getprop | \
16 grep restarting | \
17 sed -nE -e 's/\[([^]]*).*/\1/g' -e 's/init.svc.(.*)/\1/p' |
18 while read svc ;do
19 setprop ctl.stop $svc
20 done
Pierre-Hugues Hussonca0ed802018-08-22 11:01:43 +020021
22if grep -qF android.hardware.boot /vendor/manifest.xml;then
23 bootctl mark-boot-successful
24fi