Updated: 2023-03-10 - Android 12/13
Enable bluetooth via cmd
adb shell cmd bluetooth_manager enable
Disable bluetooth cmd
adb shell cmd bluetooth_manager disable
Updated: 2019-06-22: - Android 11
Print current bluetooth status via settings
adb shell settings get global bluetooth_on
adb shell settings list global |grep ^bluetooth_on
Enable Bluetooth via settings
adb shell settings put global bluetooth_disabled_profiles 1
Disable bluetooth settings
adb shell settings put global bluetooth_disabled_profiles 0
Enable bluetooth via content
adb shell content insert \
--uri content://settings/global \
--bind name:s:bluetooth_disabled_profiles \
--bind value:s:1 --user 0
Disable bluetooth content
adb shell content insert \
--uri content://settings/global \
--bind name:s:bluetooth_disabled_profiles \
--bind value:s:0 --user 0
Android 11/12/13 and older versions
Enable Bluetooth
adb shell settings put global bluetooth_on 1
Disable Bluetooth
adb shell settings put global bluetooth_on 0
Enable bluetooth via activity manager
adb shell am broadcast \
-a android.intent.action.BLUETOOTH_ENABLE --ez state true
Disable bluetooth via activity manager
adb shell am broadcast \
-a android.intent.action.BLUETOOTH_ENABLE --ez state false
Enable/Disable bluetooth via keyevents
adb shell am start \
-a android.settings.BLUETOOTH_SETTINGS \
adb shell input keyevent 19
adb shell input keyevent 23