Dhanesh
Dhanesh

Reputation: 1141

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

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.

Upvotes: 1

Views: 6653

Answers (1)

Dhanesh
Dhanesh

Reputation: 1141

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

Upvotes: 2

Related Questions