device_phh_treble/phh-on-boot.sh

15 lines
308 B
Bash

#!/system/bin/sh
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