Search code examples
androidubuntusmsadb

Android: Read/Send text messages on Ubuntu?


As an android programmer I spend an awful lot of time with my test device (phone) plugged into my computer. And being as lazy as I am, I would like to be able to send texts via my computer through my phone.

For example: I get a text, The text is pushed to the active ADB connection from which I can send it to a running script that will allow me to see the text on my computer. I can then type the response, hit enter, which will push the text through the active ADB connection, to the phone and be sent to the target.

Is there any way I do this? Maybe there is an ADB command that I can route through a python script or something?


Solution

  • I recommend SL4A scripting layer. You can connect to SL4A hosted server via adb or tcp/ip, and then execute script to send SMS. Among several script language supported by SL4A, I think python API is most mature and useful.

    SL4A Remote Control:

    http://code.google.com/p/android-scripting/wiki/RemoteControl

    SL4A SMS API:

    http://code.google.com/p/android-scripting/wiki/ApiReference#smsSend