问题描述
我正在运行Android 4.4.2,并且按此处所述启用了蓝牙HCI监听日志"
I'm running Android 4.4.2 and I enabled the "Bluetooth HCI snoop log" as described here Sniffing/logging your own Android Bluetooth traffic
打开和关闭蓝牙后,我重新启动了手机.我在预期位置找不到日志文件:
After turning bluetooth on and off I rebooted the phone. I could not find the log file in the expected location:
$ adb pull /sdcard/btsnoop_hci.log
remote object '/sdcard/btsnoop_hci.log' does not exist
如何访问btsnoop_hci.log?
How can I get to the btsnoop_hci.log?
推荐答案
根据我的经验,Bluetooth HCI监听功能要求您的设备已植根.在我扎根的Samsung Galaxy S GT-I9000上运行正常,而在我扎根的Galaxy S3 Neo上,此功能不起作用.
According to my experience the Bluetooth HCI snooping feature requires your device to be rooted. On my rooted Samsung Galaxy S GT-I9000 it works fine while on my non-rooted Galaxy S3 Neo this feature does not work.
此外,您应该确保没有意外删除文件.每当我删除文件时,都必须重新启用蓝牙监听功能,以使系统重新创建日志文件.
Moreover, you should make sure that you have not accidently deleted the file. Whenever I delete the file I have to re-enable the Bluetooth snooping feature in order to make the system recreate the log file.
这篇关于蓝牙HCI监听日志未生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!