HCIログスイッチとファイルパスをADBモードで構成します。



Configure Hci Log Switch



Android 6.0および7.0バージョン、Bluetooth HCIログスイッチ、およびパス構成の場所が次のように変更されます。

設定ファイルはetc / bluetooth /です。 bt_stack.conf ADBを介してファイルをプルし、変更してからシステムをプッシュすると、Bluetoothスイッチが有効になります



1# Enable BtSnoop logging function 2# valid value : true, false 3BtSnoopLogOutput=false 4 5# BtSnoop log output file 6BtSnoopFileName=/sdcard/btsnoop_hci.log 7 8# Preserve existing BtSnoop log before overwriting 9BtSnoopSaveLog=false

Android 8.0が起動し、BluetoothHCIログスイッチとパス構成の場所が次のように変更されます。

制御用のadbシェルsetpropによってSystemProperties値を変更します。



46// The number of of packets per btsnoop file before we rotate to the next 47// file. As of right now there are two snoop files that are rotated through. 48// The size can be dynamically configured by seting the relevant system 49// property 50#define DEFAULT_BTSNOOP_SIZE 0xffff 51 52#define BTSNOOP_ENABLE_PROPERTY 'persist.bluetooth.btsnoopenable' 53#define BTSNOOP_PATH_PROPERTY 'persist.bluetooth.btsnooppath' 54#define DEFAULT_BTSNOOP_PATH '/data/misc/bluetooth/logs/btsnoop_hci.log' 55#define BTSNOOP_MAX_PACKETS_PROPERTY 'persist.bluetooth.btsnoopsize' 56