如何在Android 7上使用adb命令测试蓝牙?

时间:2017-11-21 07:45:18

标签: android command-line bluetooth adb

我们正在开发中使用Android 7,但我们的主板没有显示输出。 android 7提供了启用/禁用蓝牙,扫描设备的命令,我可以从命令行将我的板与其他蓝牙设备配对。感谢。

1 个答案:

答案 0 :(得分:0)

启用禁用蓝牙可以使用

到enbale

adb shell service call bluetooth_manager 6

禁用

adb shell service call bluetooth_manager 8

查看配对的BT设备

adb shell dumpsys bluetooth_manager