Android 5.0.2 and New Factory Images For Nexus 7 (Wi-Fi) Available

Android 5.0 is has been publicly available since early November, and the … more

Github Tutorial App Shows You How to Use… Github

Github can get pretty complicated and using it can become quite daunting, especially … more

Google Glass-like Clip-On For Regular Glasses Developed by Sony

For the price of $2,000, a pair of glasses that can run apps, take pictures, … more

Micromax Takes OnePlus to Court! Android Wear Receives Lollipop – XDA TV

Android 5.0 Lollipop is available officially for the Moto 360! … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Send sms using pc via adb (linux - android)

OP polizois

16th July 2012, 01:46 PM   |  #1  
OP Junior Member
Thanks Meter: 5
 
4 posts
Join Date:Joined: Jul 2012
More
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, 650 views)
The Following 5 Users Say Thank You to polizois For This Useful Post: [ View ]
27th July 2012, 10:55 PM   |  #2  
gabx's Avatar
Senior Member
Flag Geneva, Switzerland
Thanks Meter: 314
 
758 posts
Join Date:Joined: Jul 2011
More
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.
1st October 2012, 09:18 PM   |  #3  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Mar 2010
Thumbs up
Quote:
Originally Posted by polizois

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!
3rd October 2012, 11:30 PM   |  #4  
Member
Thanks Meter: 5
 
46 posts
Join Date:Joined: May 2009
ICS/Jellybean
Hi

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

thanks, Ian
4th October 2012, 01:01 PM   |  #5  
Member
Thanks Meter: 5
 
46 posts
Join Date:Joined: May 2009
Sorted
Got things working again ... needed another

sleep 1
$ADB shell input keyevent 22

after the first one.
26th February 2013, 10:27 PM   |  #6  
OP Junior Member
Thanks Meter: 5
 
4 posts
Join Date:Joined: Jul 2012
More
thanks for the fix...
Quote:
Originally Posted by iandoug

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...
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes