You are not logged in.

#1 2014-10-02 10:21:38

Lala0KjOA
Member
Registered: 2011-12-23
Posts: 123
Website

Send/receive SMS through Android phone

Hi! I am looking for an application that would run on Linux (and doesn't use Google accounts or a cloud) to send and receive SMS through my noname Android phone. Does anyone know of any?

Thanks !

(Sorry if I'm in the wrong subforum, I didn't know where to put it)

Last edited by Lala0KjOA (2014-10-02 10:22:06)

Offline

#2 2014-10-02 12:39:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,544
Website

Re: Send/receive SMS through Android phone

There are at least a dozen in the AUR.  What have you tried, what did you like, what didn't you like, how do you connect to the phone?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#3 2014-10-02 15:54:24

Lala0KjOA
Member
Registered: 2011-12-23
Posts: 123
Website

Re: Send/receive SMS through Android phone

Really? In the AUR I found programs for sending SMS over the Internet, but not through a phone, or the link was broken.

Last edited by Lala0KjOA (2014-10-02 15:54:51)

Offline

#4 2014-10-02 16:02:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,544
Website

Re: Send/receive SMS through Android phone

Yes really.  But many of them are for specific carriers or platforms, or specific types of connection to the phone (e.g. bluetooth) which is why I asked about these factors.

I see one is only for i686 so I can't try it, but I just built two others - one for GSM only, another for android phones.  There are several others I didn't check out, as - quite frankly - I don't need this, nor care.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#5 2014-10-02 17:19:44

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: Send/receive SMS through Android phone

# sms through android
# $1 = phone number
# $@ = message
function sms() {
   [[ -n "$1" ]] || { echo "no number given"; return; }
   local num="$1"; shift 1;
   [[ -n "$@" ]] || { echo "no message given"; return; }
   ssh -q root@hack-ANDROID "am start -a android.intent.action.VIEW -d sms:$num --es sms_body \"$@\" --ez exit_on_sent true"
}

# call through android
# $1 = phone number
function call() {
   ssh -q root@hack-ANDROID "am start -a android.intent.action.CALL tel:$1"
}

# sms db parser
# $@ = file
function _parsesmsdb() {
   sqlite3 "$@" '.dump "sms"'| grep "^INSERT" | sed 's/.*VALUES(\(.*\));/\1/' | awk -F"," '{ print "SMS from "$3": "$13 }'
}

# cat sms from android
function catsms() {
   ssh -q root@hack-ANDROID "cat /data/data/com.android.providers.telephony/databases/mmssms.db" > /tmp/android-sms.db
   _parsesmsdb /tmp/android-sms.db
   rm /tmp/android-sms.db &> /dev/null
}

From my shell functions file, you need SSH server on your android.
Also shows how plain your SMS is stored.

Note that sms spawns message application to front with your message, you still need to press the "send" button. Dunno if there is way to do this other way.. Maybe with some AT messages or something. Maybe separate program, but this is the adb + shell way.

Don't care enough, I hate phones.

Last edited by Cloudef (2014-10-02 17:21:34)

Offline

#6 2014-10-03 09:47:55

Lala0KjOA
Member
Registered: 2011-12-23
Posts: 123
Website

Re: Send/receive SMS through Android phone

Thanks guys!

Trilby wrote:

Yes really.  But many of them are for specific carriers or platforms, or specific types of connection to the phone (e.g. bluetooth) which is why I asked about these factors.

I would like to connect to the phone via usb, if possible.

Trilby wrote:

I see one is only for i686 so I can't try it, but I just built two others - one for GSM only, another for android phones.  There are several others I didn't check out, as - quite frankly - I don't need this, nor care.

May I ask you for the name of these programs?

Cloudef wrote:

From my shell functions file, you need SSH server on your android.
Also shows how plain your SMS is stored.

Note that sms spawns message application to front with your message, you still need to press the "send" button. Dunno if there is way to do this other way.. Maybe with some AT messages or something. Maybe separate program, but this is the adb + shell way.

Don't care enough, I hate phones.

Thanks, I will try this out!

Offline

#7 2014-10-03 12:38:29

cafe
Member
From: Brasil
Registered: 2014-03-20
Posts: 165

Re: Send/receive SMS through Android phone

Airdroid Is the one I use. Works great if you are in the same local network.

Offline

#8 2014-10-03 17:51:49

Lala0KjOA
Member
Registered: 2011-12-23
Posts: 123
Website

Re: Send/receive SMS through Android phone

Thanks! I installed it once, but I wasn't in the same network at the time.
Is it annoying to use it if you don't sign up?

Offline

#9 2014-10-03 18:48:45

BluMongoose
Member
From: 'Murica
Registered: 2012-04-24
Posts: 49

Re: Send/receive SMS through Android phone

It doesn't appear that you can send text messages unless you sign up. I went ahead and signed up, which was free, and all worked flawlessly. It looks like they have you register because you can now connect either from wifi or mobile data. If you don't mind registering, I'd give it go.


"Think for yourself and question authority." -T. Leary

Offline

#10 2014-10-03 22:03:49

cafe
Member
From: Brasil
Registered: 2014-03-20
Posts: 165

Re: Send/receive SMS through Android phone

I only use it when the phone is close to me, never outside the protection of my firewall. So no, I didn't signed up.
By the way, you can download the app from the website. This is very useful for people like me that have a custom android installed with no google services nor the play store.

Offline

#11 2014-10-04 12:17:23

Lala0KjOA
Member
Registered: 2011-12-23
Posts: 123
Website

Re: Send/receive SMS through Android phone

Thanks for the info!
So it's not possible to just connect via usb with Airdroid?

Meanwhile, I tried wammu, but I don't think it supports my phone.
I can't connect via ADB or MTP (I followed the wiki).
I can only see my phone as an USB storage device.

Last edited by Lala0KjOA (2014-10-04 17:07:01)

Offline

#12 2014-10-04 17:17:35

BluMongoose
Member
From: 'Murica
Registered: 2012-04-24
Posts: 49

Re: Send/receive SMS through Android phone

Lala0KjOA wrote:

Thanks for the info!
So it's not possible to just connect via usb with Airdroid?

No, airdroid is either wifi or mobile data as far as I know.


"Think for yourself and question authority." -T. Leary

Offline

#13 2014-10-04 17:38:13

Lala0KjOA
Member
Registered: 2011-12-23
Posts: 123
Website

Re: Send/receive SMS through Android phone

Ok, thanks.

Offline

#14 2014-10-04 17:39:07

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: Send/receive SMS through Android phone

Lala0KjOA wrote:

Thanks for the info!
So it's not possible to just connect via usb with Airdroid?

Meanwhile, I tried wammu, but I don't think it supports my phone.
I can't connect via ADB or MTP (I followed the wiki).
I can only see my phone as an USB storage device.

I do it all the time.  You followed the wiki, but are you sure you enabled 'Android Debugging' on your phone?  When you connect the phone, does it report that USB debugging is available?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#15 2014-10-04 19:14:27

Lala0KjOA
Member
Registered: 2011-12-23
Posts: 123
Website

Re: Send/receive SMS through Android phone

Yes!

Offline

#16 2014-10-04 19:21:26

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: Send/receive SMS through Android phone

Does adb devices report anything?

ewaller$@$odin ~ 1001 %adb devices
List of devices attached 
HT12NHJ02016	device

ewaller$@$odin ~ 1002 %adb shell  
# uname -a
Linux localhost 2.6.37.6-cyanogenmod+ #6 PREEMPT Mon Jan 23 23:31:52 PST 2012 armv7l GNU/Linux
#                                                                           
ewaller$@$odin ~ 1003 %

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#17 2014-10-05 05:33:39

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: Send/receive SMS through Android phone

Does it need a rooted Android?


do it good first, it will be faster than do it twice the saint wink

Offline

#18 2014-10-05 05:59:01

Anonymo
Member
Registered: 2005-04-07
Posts: 427
Website

Re: Send/receive SMS through Android phone

TheSaint wrote:

Does it need a rooted Android?

Does not need root.

Offline

#19 2014-10-05 10:01:38

Lala0KjOA
Member
Registered: 2011-12-23
Posts: 123
Website

Re: Send/receive SMS through Android phone

ewaller wrote:

Does adb devices report anything?

No.

TheSaint wrote:

Does it need a rooted Android?

Mine is rooted anyway!

Last edited by Lala0KjOA (2014-10-05 10:07:42)

Offline

#20 2014-10-05 14:37:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: Send/receive SMS through Android phone

What version Android?  Your emphatic 'yes' back in post 15, was that a yes to both of my questions?  Anything interesting in the end of the output of dmesg after you attach?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#21 2014-10-05 22:07:33

Lala0KjOA
Member
Registered: 2011-12-23
Posts: 123
Website

Re: Send/receive SMS through Android phone

ewaller wrote:

What version Android?

It's 4.2.2

ewaller wrote:

Your emphatic 'yes' back in post 15, was that a yes to both of my questions?

Yes.

ewaller wrote:

Anything interesting in the end of the output of dmesg after you attach?

When I connect with MTP (I guess?)

[105556.660105] usb 1-5: new high-speed USB device number 14 using xhci_hcd
[105556.834682] usb-storage 1-5:1.0: USB Mass Storage device detected
[105556.834747] scsi12 : usb-storage 1-5:1.0
[105557.837579] scsi 12:0:0:0: Direct-Access     Linux    File-CD Gadget   0000 PQ: 0 ANSI: 2
[105557.839758] sd 12:0:0:0: [sdc] Attached SCSI removable disk
[105559.587703] usb 1-5: USB disconnect, device number 14
[105560.081577] usb 1-5: new high-speed USB device number 15 using xhci_hcd
[105560.258043] usb-storage 1-5:1.0: USB Mass Storage device detected
[105560.258157] scsi13 : usb-storage 1-5:1.0
[105561.259137] scsi 13:0:0:0: CD-ROM            Linux    File-CD Gadget   0000 PQ: 0 ANSI: 2
[105561.260665] sr1: scsi-1 drive
[105561.260774] sr 13:0:0:0: Attached scsi CD-ROM sr1

It mounts as a CD-ROM indeed, and contains ADB.rar.

When I connect as a USB mass storage

[105638.772182] usb 1-5: new high-speed USB device number 17 using xhci_hcd
[105638.947087] usb-storage 1-5:1.0: USB Mass Storage device detected
[105638.947178] scsi14 : usb-storage 1-5:1.0
[105639.949710] scsi 14:0:0:0: Direct-Access     Linux    File-CD Gadget   0000 PQ: 0 ANSI: 2
[105639.950990] sd 14:0:0:0: [sdc] Attached SCSI removable disk
[105659.265279] sd 14:0:0:0: [sdc] 7698432 512-byte logical blocks: (3.94 GB/3.67 GiB)
[105659.265515] sd 14:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[105659.272662]  sdc: sdc1

Also,

$ adb devices
List of devices attached 

$ adb shell
error: device not found

Maybe I did something wrong, but also, the phone is very cheap. Thanks for helping!

Offline

#22 2014-10-05 22:42:47

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: Send/receive SMS through Android phone

When I connect, I get

[96327.913894] usb 7-1: new high-speed USB device number 5 using ehci-pci
[96328.053373] usb-storage 7-1:1.0: USB Mass Storage device detected
[96328.053601] scsi8 : usb-storage 7-1:1.0
[96329.060450] scsi 8:0:0:0: Direct-Access     HTC      Incredible       0100 PQ: 0 ANSI: 2
[96329.062548] scsi 8:0:0:1: Direct-Access     HTC      Incredible       0100 PQ: 0 ANSI: 2
[96329.064463] scsi 8:0:0:2: Direct-Access     HTC      Incredible       0100 PQ: 0 ANSI: 2
[96329.137789] sd 8:0:0:0: [sdb] Attached SCSI removable disk
[96329.195799] sd 8:0:0:2: [sdd] Attached SCSI removable disk
[96329.209787] sd 8:0:0:1: [sdc] Attached SCSI removable disk

But, my antique is running 2.3.7.  I don't think that should matter.

but also, the phone is very cheap.

I hope it is not the one in your avatar tongue

You have been around these parts long enough that I assume you have seen the wiki article on setting up adb.  I had forgotten that it might require udev rules.  If you had not seen that, you might take a look.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#23 2014-10-06 07:42:29

Lala0KjOA
Member
Registered: 2011-12-23
Posts: 123
Website

Re: Send/receive SMS through Android phone

Yes, I did set the udev rules... Well, it is a strange phone anyway.

Offline

Board footer

Powered by FluxBB