OSDN Git Service

Delete bt_snoop.log when snoop logging is disabled
authorAjay Panicker <apanicke@google.com>
Thu, 30 Mar 2017 17:33:19 +0000 (10:33 -0700)
committerAjay Panicker <apanicke@google.com>
Thu, 30 Mar 2017 17:37:56 +0000 (17:37 +0000)
commitf786aac482757c1892cac416a5b903d1c5a61839
treec7860b59a03fafcbab6e8c82a794d110d1d5d46e
parentf685bfb7b1f6da17165a33590b18f559476e670f
Delete bt_snoop.log when snoop logging is disabled

This patch will immediatly delete the snoop log if Bluetooth is on. If Bluetooth
is off it will delete the log as soon as Bluetooth starts again.

Test: Turn off logging while Bluetooth is on and off
Bug: 36718948
Change-Id: Ib660cd442c93f1a34c948d51c5cffc38695558d5
hci/src/btsnoop.cc