未生成蓝牙 HCI 监听日志 [英] Bluetooth HCI snoop log not generated

查看:20
本文介绍了未生成蓝牙 HCI 监听日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行 Android 4.4.2 并且我启用了蓝牙 HCI 监听日志",如下所述 嗅探/记录您自己的 Android 蓝牙流量

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?

推荐答案

注意:此答案不是正确答案.请滚动到投票最高的答案以获得正确答案.

NOTE: This answer is not the correct answer. Please scroll to the highest voted answer for the correct answer.

根据我的经验,蓝牙 HCI 监听功能需要您的设备获得 root 权限.在我有 root 权限的 Samsung Galaxy S GT-I9000 上它工作正常,而在我非 root 用户的 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 监听日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆