Sreekanth
Sreekanth

Reputation: 87

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

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.

Upvotes: 0

Views: 643

Answers (1)

user16612111
user16612111

Reputation:

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

Upvotes: 1

Related Questions