You are not logged in.
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
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
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
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
# 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
Thanks guys!
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.
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?
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
Airdroid Is the one I use. Works great if you are in the same local network.
Offline
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
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
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
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
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
Ok, thanks.
Offline
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
Yes!
Offline
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
Does it need a rooted Android?
do it good first, it will be faster than do it twice the saint ![]()
Offline
Does it need a rooted Android?
Does not need root.
Offline
Does adb devices report anything?
No.
Does it need a rooted Android?
Mine is rooted anyway!
Last edited by Lala0KjOA (2014-10-05 10:07:42)
Offline
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
What version Android?
It's 4.2.2
Your emphatic 'yes' back in post 15, was that a yes to both of my questions?
Yes.
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 sr1It 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: sdc1Also,
$ adb devices
List of devices attached
$ adb shell
error: device not foundMaybe I did something wrong, but also, the phone is very cheap. Thanks for helping!
Offline
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 diskBut, 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 ![]()
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
Yes, I did set the udev rules... Well, it is a strange phone anyway.
Offline