summaryrefslogtreecommitdiff
path: root/init.shamu.rc
diff options
context:
space:
mode:
authorChris Fries <cfries@motorola.com>2014-09-17 20:56:42 -0500
committerVineeta Srivastava <vsrivastava@google.com>2014-09-19 06:11:33 +0000
commit48778208c49b813ba3a646562199eb7cab393027 (patch)
tree94a657f87472fe1f02bd6d0074172fe63a3140f4 /init.shamu.rc
parent3794c7e62ea60409a3c116ad05e7eba73c56c769 (diff)
downloadshamu-48778208c49b813ba3a646562199eb7cab393027.tar.gz
init.shamu.rc: Add "mdm_helper_proxy" to add a vote for mdm to power up
Add mdm_helper_proxy which can vote for MDM to stay powered up in case of runtime restart (decryption). It needs to do this only after RIL is running to avoid racing with mdm_helper proper. Bug: 17411623 took a long time to camp on network Change-Id: I88b6d049b673c972d4717fe9f40c2e80cfb33863
Diffstat (limited to 'init.shamu.rc')
-rw-r--r--init.shamu.rc17
1 files changed, 17 insertions, 0 deletions
diff --git a/init.shamu.rc b/init.shamu.rc
index 72c4ea1a..c0ed0b0e 100644
--- a/init.shamu.rc
+++ b/init.shamu.rc
@@ -571,3 +571,20 @@ service bugreport /system/bin/dumpstate -d -p -B \
disabled
oneshot
keycodes 114 115 116
+
+service mdm_helper_proxy /system/bin/mdm_helper_proxy
+ class core
+ user system
+ group system
+ disabled
+
+# Stop mdm_helper_proxy in case of shutdown
+on property:sys.shutdown.requested=*
+ stop mdm_helper_proxy
+
+# Start mdm_helper_proxy after RIL.
+on property:ro.mdm_helper_proxy_req=true
+ start mdm_helper_proxy
+
+on property:init.svc.ril-daemon=running
+ setprop ro.mdm_helper_proxy_req true