问题
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