title: ADB shell bluetooth commands
body: <p>I'm currently looking into automating testing of a bluetooth connection between an android phone and another device.</p>
  
  <p>I've found many useful ADB commands such as </p>
  
  <ul>
  <li><code>adb shell service call bluetooth_manager 6</code></li>
  <li><code>adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE</code></li>
  <li><code>adb shell am start -a android.bluetooth.adapter.action.REQUEST_DISCOVERABLE</code></li>
  <li><code>adb shell service call bluetooth_manager 8</code></li>
  </ul>
  
  <p>but could not find anything for the following actions:</p>
  
  <ul>
  <li>Scan for discoverable bluetooth devices</li>
  <li>Pair with a given discovered bluetooth device</li>
  <li>Forget earlier paired bluetooth device</li>
  <li>Connect with earlier paired bluetooth device</li>
  <li>Disconnect with earlier paired bluetooth device</li>
  </ul>
  
  <p>Do these exist? Or do I need to write a wrapper Android app that can perform these actions?</p>