device_phh_treble/service-cleaner.sh

10 lines
190 B
Bash

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