ADB: How to automate complete BT Scan, pair and connect

≯℡__Kan透↙ 提交于 2019-12-08 11:06:41

问题


I am looking for Automating the below activities using ADB.

Bluetooth settings -> TunrnOn BT -> Pairing (To a BT mac address which i can set) -> Connect to the BT Device on certain profiles like A2DP/HFP.

I have already found here and here how to turn on and set BT to discoverable using ADB. But I am still stuck on how to make a connection request again using ADB.

Would there be a way to completely automate these steps.

Appreciate your valuable comments.


回答1:


There is no solution possible only using ADB. But there still is a possibility using ui automator. https://developer.android.com/training/testing/ui-automator



来源:https://stackoverflow.com/questions/50271696/adb-how-to-automate-complete-bt-scan-pair-and-connect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!