From 640d7d038af7cf26985738d4807a89a423bad712 Mon Sep 17 00:00:00 2001 From: Petri Gynther Date: Mon, 25 Sep 2017 16:24:19 -0700 Subject: [PATCH] Auto enable/disable persist.service.bdroid.soclog When user toggles the UI developer option: Enable Bluetooth HCI snoop log persist.bluetooth.btsnoopenable also automatically toggle the Cherokee BT SoC debug option: persist.service.bdroid.soclog so that we get all necessary BT debug info into HCI logs. Bug: 37298084 Test: Toggle HCI snoop log developer option, observe values with getprop Change-Id: Ib0a7086175db8847463f483b9b926151fc09979a --- init.hardware.diag.rc.userdebug | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.hardware.diag.rc.userdebug b/init.hardware.diag.rc.userdebug index e2e5c81b..a2835567 100644 --- a/init.hardware.diag.rc.userdebug +++ b/init.hardware.diag.rc.userdebug @@ -392,3 +392,9 @@ on property:sys.logger.bluetooth=true on property:sys.logger.bluetooth=false setprop persist.service.bdroid.snooplog false setprop persist.service.bdroid.fwsnoop false + +on property:persist.bluetooth.btsnoopenable=true + setprop persist.service.bdroid.soclog true + +on property:persist.bluetooth.btsnoopenable=false + setprop persist.service.bdroid.soclog false