Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 761
ahodder Avatar asked Aug 17 '11 15:08

ahodder


People also ask

How can I send text messages from Ubuntu?

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.

How to send SMS from Linux to 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.

How do I view text messages on my Android phone?

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.

How do I send files from Ubuntu to Android?

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.


1 Answers

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

like image 167
shr Avatar answered Sep 19 '22 18:09

shr