aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRashed Abdel-Tawab <rashed@linux.com>2018-06-24 20:34:42 -0700
committerErfan Abdi <erfangplus@gmail.com>2018-07-11 11:59:41 +0430
commitb4426aabfe2d4c8c6763af49c46b51dc46461a26 (patch)
treeb89f27ce1387d902645becca761b33bf46a778e7
parentc5aaa3117a700e39cd1fb22b5443c23b5c1c5a24 (diff)
griffin: Move qcamerasvr to main and restart on service restarts
* Move qcamerasvr to main to it restarts on decryption * Also trigger a qcamerasvr restart when media or all services restart, since it needs to be properly restarted with cameraservice Change-Id: I2361c5658359ed9f2fe937a0bd3329ca9c00e66e Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
-rwxr-xr-xrootdir/etc/init.qcom.rc8
1 files changed, 7 insertions, 1 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index 78d305d4..9a27c011 100755
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -1122,10 +1122,16 @@ service qseeproxydaemon /vendor/bin/qseeproxydaemon
#start camera server as daemon
service qcamerasvr /vendor/bin/mm-qcamera-daemon
- class late_start
+ class main
user camera
group camera system inet input graphics
+on property:init.svc.media=restarting
+ restart qcamerasvr
+
+on property:init.svc.servicemanager=restarting
+ restart qcamerasvr
+
#Start up peripheral manager
service per_mgr /vendor/bin/pm-service
class core