title: Sending a SMS on Android through ADB
body: <p>I would like to be able to send a SMS from my Android phone while it's connected to my computer using the following ADB commands</p>
  
  <pre><code>adb shell am start -a android.intent.action.SENDTO -d sms:CCXXXXXXXXXX --es sms_body "SMS BODY GOES HERE" --ez exit_on_sent true
  adb shell input keyevent 22
  adb shell input keyevent 66
  </code></pre>
  
  <p>I've got this working however on the phone this will pop up a text message to the recipient with the body filled in and then click the send button and return to where you were. Is there any way to do this completely in the background so it would not interfere with anything happening on the phone?</p>