ADB shell蓝牙命令

时间:2017-01-11 15:27:16

标签: android shell bluetooth adb

我目前正在考虑自动测试Android手机和其他设备之间的蓝牙连接。

我发现了许多有用的ADB命令,例如

  • adb shell service call bluetooth_manager 6
  • adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE
  • adb shell am start -a android.bluetooth.adapter.action.REQUEST_DISCOVERABLE
  • adb shell service call bluetooth_manager 8

但无法找到以下操作的任何内容:

  • 扫描可发现的蓝牙设备
  • 与给定的发现蓝牙设备配对
  • 忘记早先配对的蓝牙设备
  • 与早期配对的蓝牙设备连接
  • 与之前配对的蓝牙设备断开连接

这些存在吗?或者我是否需要编写可以执行这些操作的包装Android应用程序?

0 个答案:

没有答案
相关问题