Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,908 Members 53,216 Now Online
XDA Developers Android and Mobile Development Forum

Send sms using pc via adb (linux - android)

Tip us?
 
polizois
Old
#1  
Junior Member - OP
Thanks Meter 5
Posts: 4
Join Date: Jul 2012
Default Send sms using pc via adb (linux - android)

Hello XDA!!!this is my first post...
I wanted to be able to send sms messages using my pc but i couldnt find anything useful....
So, after doing some research i managed to create and modify some scripts and got the results i wanted...
The scripts run on linux and have been tested on Arch Linux and Ubuntu...
There are 2 main scripts:
One for reading the phone's messages..
And one for sending messages...
The second script also reads a file called "contacts" and displays its content...
The "contacts" file does not use the phones contacts...the user can open it using a text editor and write his own contacts...
There is also another file called "adb_location" which the user must open with a text editor and paste location of adb...

#######Requirements#########
* Rooted android phone with sqlite3 installed(I believe most custom roms have sqlite3 installed)(My phone is rooted nexus S with CM9)
* Linux pc (tested: Arch Linux and Android)
* ADB installed and working properly

#######After Download#########
* Extract sms.zip wherever you want
* Connect your rooted phone to pc in debugging mode (so it can interact with ADB)
* Open the extracted folder
* Open the file: "adb_location" using a text editor and replace the line: "/opt/android-sdk/platform-tools/adb" with your own adb location
* Open the file: "contacts" and replace the examples with the contacts that you will be using
* Open in terminal the file: "reader-refresh.sh" to read the messages from your phone
* Open in terminal the file: "launch-contacts.sh" to view your contacts and send messages

Here is a demonstration video...not vary instructive but i thing it will help:
XDA wont let me post an outside link...so if you want to see the video search on youtube : "Send sms using pc via adb (linux - android)"

note: If you don't know how to root your phone, flash custom roms or install adb on your linux system, there are plenty of tutorials available on the web
Attached Files
File Type: zip sms.zip - [Click for QR Code] (9.0 KB, 565 views)
The Following 5 Users Say Thank You to polizois For This Useful Post: [ Click to Expand ]
 
gabx
Old
#2  
gabx's Avatar
Senior Member
Thanks Meter 314
Posts: 755
Join Date: Jul 2011
Location: Geneva, Switzerland
WWWOOOUUUAAAHHHH.

Thanks 1000 times. I have been trying with Qtadb (qtadb installed on both sides). It is supposed to send sms but never could make it ork (client not responding)
I just found your script, and as an Arch user, noting to do than run it!! And working.

Very good script mate.

TY again, as I spend all day long on my box, and typing SMS on my SGS2 small keyboard is a pane in the ass.
 
Juanisan
Old
#3  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Mar 2010
Quote:
Originally Posted by polizois View Post
Hello XDA!!!this is my first post...
I wanted to be able to send sms messages using my pc but i couldnt find anything useful....
So, after doing some research i managed to create and modify some scripts and got the results i wanted...
I think I will use this and adapt it to a web page my sister can use in Abu Dhabi to text anyone in the US for free through my phone.

Thank you so much for the research you have done. KUDOS!
 
iandoug
Old
#4  
Member
Thanks Meter 5
Posts: 46
Join Date: May 2009
Default ICS/Jellybean

Hi

can anyone confirm this is working in ICS/Jellybean (particularly on a SGS2)?

thanks, Ian
Samsung Galaxy S II | Asus Eee Transformer | Samsung Galaxy S Player 5.0 (stolen) | Samsung Galaxy S III | Samsung Note 3
 
iandoug
Old
#5  
Member
Thanks Meter 5
Posts: 46
Join Date: May 2009
Default Sorted

Got things working again ... needed another

sleep 1
$ADB shell input keyevent 22

after the first one.
Samsung Galaxy S II | Asus Eee Transformer | Samsung Galaxy S Player 5.0 (stolen) | Samsung Galaxy S III | Samsung Note 3
 
polizois
Old
#6  
Junior Member - OP
Thanks Meter 5
Posts: 4
Join Date: Jul 2012
Default thanks for the fix...

Quote:
Originally Posted by iandoug View Post
Got things working again ... needed another

sleep 1
$ADB shell input keyevent 22

after the first one.
Thanks for the fix my friend...I have't worked on it since I posted it on xda, because noone seemed to care...
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...