How can I get the Bluetooth status (on / off) on an Android phone using ADB?

164 Views Asked by At

I found some answers related to Bluetooth using ADB. But all of to turn on/off Bluetooth using ADB.

My requirement is like get the current Bluetooth status on the phone. If it is in the off state, turn on Bluetooth and vice versa.

1

There are 1 best solutions below

0
AudioBubble On

You can use the ADB 'get global' command to read the Bluetooth status for an Android phone using this command:

adb shell settings get global bluetooth_on