2018-05-14 15:04:27 +00:00
|
|
|
#!/system/bin/sh
|
|
|
|
|
2018-08-28 12:53:16 +00:00
|
|
|
if [ -f /vendor/bin/mtkmal ];then
|
|
|
|
if [ "$(getprop persist.mtk_ims_support)" == 1 ];then
|
|
|
|
setprop persist.mtk_ims_support 0
|
|
|
|
setprop persist.mtk_epdg_support 0
|
|
|
|
reboot
|
|
|
|
fi
|
|
|
|
fi
|
2018-07-18 21:46:34 +00:00
|
|
|
|
|
|
|
#Clear looping services
|
2018-05-14 15:04:27 +00:00
|
|
|
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
|
2018-08-22 09:01:43 +00:00
|
|
|
|
|
|
|
if grep -qF android.hardware.boot /vendor/manifest.xml;then
|
|
|
|
bootctl mark-boot-successful
|
|
|
|
fi
|