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

如何使用adb命令在Android 7上测试蓝牙?,android,command-line,bluetooth,adb,Android,Command Line,Bluetooth,Adb,我们正在开发中使用安卓7,但我们的主板没有显示输出。 android 7是否提供了启用/禁用蓝牙、扫描设备的命令,我可以从命令行将我的主板与其他蓝牙设备配对。谢谢。要启用或禁用蓝牙功能,请使用 登堡 adb shell service call bluetooth_manager 6 禁用 adb shell service call bluetooth_manager 8 查看配对的BT设备 adb shell dumpsys bluetooth_manager

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

要启用或禁用蓝牙功能,请使用

登堡

adb shell service call bluetooth_manager 6
禁用

adb shell service call bluetooth_manager 8
查看配对的BT设备

adb shell dumpsys bluetooth_manager