From d84e1b540a1fb092b39929fe445992a2643c5cf1 Mon Sep 17 00:00:00 2001 From: Niranjan Pendharkar Date: Thu, 31 May 2018 12:08:28 -0700 Subject: [PATCH] sanders: Use low level shutdown trigger to stop cnss-daemon Low level shutdown is triggered after SystemServer is cleaned up. sys.shutdown.requested is private to SystemServer and is used to syncrhonize the shutdown process if SystemServer crashes before hardware reboot is complete. Native daemons must use low level shutdown indication from powermanager for their graceful shutdown, if they wish to stop before init terminates the process. Change-Id: Ia583f7dce6f1927d9b766fdc132f082b409f4d67 Signed-off-by: kubersharma001 --- rootdir/etc/init.qcom.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 0ee2138..9fb9f3e 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -789,7 +789,7 @@ service cnss-daemon /vendor/bin/cnss-daemon -n -l group system inet net_admin wifi capabilities NET_ADMIN -on property:sys.shutdown.requested=* +on property:sys.powerctl=* stop cnss-daemon service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG