Skip to content

Commit

Permalink
Auto enable/disable persist.vendor.service.bdroid.soclog
Browse files Browse the repository at this point in the history
When user toggles the UI developer option:
Enable Bluetooth HCI snoop log
persist.bluetooth.btsnoopenable

also automatically toggle the QCOM BT HAL SoC debug option:
persist.vendor.service.bdroid.soclog

so that we get all necessary BT debug info into HCI logs.

Ported from device/google/wahoo:
commit 640d7d038af7cf26985738d4807a89a423bad712
Author: Petri Gynther <pgynther@google.com>
Auto enable/disable persist.service.bdroid.soclog

Bug: 80154423
Test: Toggle HCI snoop log developer option, observe values with getprop
Change-Id: Ie5ae47a7284bccca911e5e120cb5ef2caa9c531e
  • Loading branch information
Petri Gynther committed May 23, 2018
1 parent a6250db commit da3121a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions init.common.diag.rc.userdebug
Expand Up @@ -136,3 +136,9 @@ on property:sys.logger.bluetooth=true
on property:sys.logger.bluetooth=false
setprop persist.vendor.service.bdroid.snooplog false
setprop persist.vendor.service.bdroid.fwsnoop false

on property:persist.bluetooth.btsnoopenable=true
setprop persist.vendor.service.bdroid.soclog true

on property:persist.bluetooth.btsnoopenable=false
setprop persist.vendor.service.bdroid.soclog false

0 comments on commit da3121a

Please sign in to comment.