From d2617443b045dad4895255230e20fe1c5edba317 Mon Sep 17 00:00:00 2001 From: Yuanyuan Liu Date: Mon, 8 Aug 2016 15:28:27 -0700 Subject: [PATCH] land: init.qcom.rc: Add rule of stop cnss-daemon during device shutdown Stop cnss-daemon when device shutdown. This is required by peripheral manager as cnss-daemon vote for modem when service is started. It needs to release vote when device shutdown. Change-Id: I48c8bcab673280ab5f725ffdb4625994f2078b8f CRs-Fixed: 1051868 --- rootdir/init.qcom.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index a5c0454..9e26333 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -668,6 +668,9 @@ service cnss-daemon /system/bin/cnss-daemon -n -l user system group system inet net_admin wifi +on property:sys.shutdown.requested=* + stop cnss-daemon + service loc_launcher /system/bin/loc_launcher #loc_launcher will start as root and set its uid to gps class late_start