I am working on automating bluetooth actions on android like enable/disable, pairing/unpairing devices etc.
I want to know how to interact with unrooted android device for above mentioned bluetooth operations using adb shell commands or android intents.
For example, i want to know which devices are bluetooth paired with my android phone using adb shell commands.
is it possible?
But, in order to execute several commands in one line, you may use adb shell "cmd1;cmd2;cmd3" .
dumpsys is your friend:
adb shell dumpsys -l
adb shell dumpsys bluetooth_manager
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With