Some devices declare boot hal, but doesn't have it. Put bootctl at the end until I get a better fix
Conflicts:
phh-on-boot.sh
Change-Id: I89b8c210cb395356239a4aac77e4c0d5719623b5
diff --git a/phh-on-boot.sh b/phh-on-boot.sh
index 81bd5f3..00c31a9 100644
--- a/phh-on-boot.sh
+++ b/phh-on-boot.sh
@@ -10,10 +10,6 @@
phh-su -c 'mount -o remount,ro /system'
fi
-if grep -qF android.hardware.boot /vendor/manifest.xml;then
- bootctl mark-boot-successful
-fi
-
#Clear looping services
sleep 30
getprop | \
@@ -22,3 +18,7 @@
while read svc ;do
setprop ctl.stop $svc
done
+
+if grep -qF android.hardware.boot /vendor/manifest.xml;then
+ bootctl mark-boot-successful
+fi