Is it possible to start Bluetooth from ADB without user intervention? I tried:
am start -a android.bluetooth.adapter.action.REQUEST_ENABLE
but this require the user to press ok. And:
service call bluetooth 3
doesn't do anything. Enabling the bluetoothd service in init.rc doesn't work either.
service bluetoothd /system/bin/bluetoothd -n
class main
socket bluetooth stream 660 bluetooth bluetooth
socket dbus_bluetooth stream 660 bluetooth bluetooth
# init.rc does not yet support applying capabilities, so run as root and
# let bluetoothd drop uid to bluetooth with the right linux capabilities
group bluetooth net_bt_admin misc
enabled
And I would prefer a command from ADB. (If anyone is wondering I need it for FCC testing.)
On a rooted device
adb shell service call bluetooth_manager 8
works for me.
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