android enable disable bluetooth via command line
<p>I am trying to enable disable bluetooth on android device using command line.</p>

<p>I can enable it using </p>

<p><code>adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE</code></p>

<p>But it prompts user to 'allow' or 'deny'.</p>

<p>I also see there is option to launch ble settings first like </p>

<p><code>adb shell am start -a android.settings.BLUETOOTH_SETTINGS</code></p>

<p>and then enable disable <code>adb shell input keyevent **</code></p>

<p>But it won't be device independent. </p>