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?
You can send text messages from Ubuntu via GSConnect. Type on a real keyboard, make use of contact auto-complete, and read replies. Get Android notifications on your Linux PC. You don’t need to pick your phone up every time a notification comes in as GSConnect mirrors all notifications from your Android device.
On the top-right of your Linux screen, you should see a small “KDE Connect” icon. Click it, and then select your android device from the drop-down menu. Now that you have opened KDE Connect Indicator, you should see a list of plugins you can select and change. Find an entry for SMS in this list and make sure that it is checked.
Click on the icon in the top-right of your screen again, and here, when you select your android device, click on the “SMS Messages” option. Having done that, you should now see a screen where you can see and browse your phone’s SMS message directory.
You can also quickly send files from Ubuntu to Android through Nautilus: just right-click on a file and select the Send to Mobile Device > Device menu entry: GSConnect is the best way to use Android with Ubuntu and other compatible Linux distros, no doubt about it.
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
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