LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Firefox OS, Sailfish OS, Maemo, MeeGo, Ubuntu Mobile, WebOS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site: AndroidQuestions.org

Notices



Reply
 
Search this Thread
Old 09-06-2012, 11:29 AM   #1
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,197

Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
android commandline tips


hi, i installed sshdroid on my galaxy s2 so i am wondering if there is any way to mess around with anything like start a fone call or send a text message from the terminal ?

i am looking for programs like netcat, sshfs, aplay, ... but none can be found.

i also notice this (not sure why):
Code:
/data/data/berserker.android.apps.sshdroid # ps auxw | grep tv
 2594 system     0:59 /system/bin/tvoutserver
has anybody done anything cool from the android command line ?

is there someway i can run com.cooliris.media from the commandline ?

Last edited by schneidz; 09-06-2012 at 03:00 PM.
 
Old 09-23-2012, 07:56 PM   #2
chssmsterwnook
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Rep: Reputation: Disabled
Check out botbrew (http://botbrew.com/), it gives you lots of standard Linux tools and programs to use on Android.
 
1 members found this post helpful.
Old 10-19-2012, 05:10 PM   #3
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.x, 5.x, Fedora 20, Kubuntu 12.04, Solaris 10,8
Posts: 321

Rep: Reputation: 17
There are lots of things which you can do. A few examples... have fun.

To send a SMS :

Quote:
am start -a android.intent.action.SENDTO -d sms:1234567890 --es sms_body "hiya mate, how are you" --ez exit_on_sent true
Make a call :

Quote:
service call phone 2 s16 "0431111222"
Startup GMAIL :

Quote:
am start -a android.intent.action.MAIN -n com.google.android.gm/.ConversationListActivityGmail

Quote:
Originally Posted by schneidz View Post
hi, i installed sshdroid on my galaxy s2 so i am wondering if there is any way to mess around with anything like start a fone call or send a text message from the terminal ?

i am looking for programs like netcat, sshfs, aplay, ... but none can be found.

i also notice this (not sure why):
Code:
/data/data/berserker.android.apps.sshdroid # ps auxw | grep tv
 2594 system     0:59 /system/bin/tvoutserver
has anybody done anything cool from the android command line ?

is there someway i can run com.cooliris.media from the commandline ?
 
1 members found this post helpful.
Old 10-22-2012, 11:55 AM   #4
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,197

Original Poster
Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
Quote:
Originally Posted by dazdaz View Post
There are lots of things which you can do. A few examples... have fun.

To send a SMS :



Make a call :



Startup GMAIL :
thanks daz but these dont work for me... your sms example drafts the message but doesnt send. i would have to clik on send on the fone.

also when i try to make a call i get this error:
Code:
Starting: Intent { act=android.intent.action.MAIN cmp=com.google.android.gm/.ConversationListActivityGmail }
# service call phone 2 s16 "617xxx1222" 
Result: Parcel(
  0x00000000: ffffffff 00000022 006e004f 0079006c '...."...O.n.l.y.'
  0x00000010: 00530020 0061006d 00740072 00610063 ' .S.m.a.r.t.c.a.'
  0x00000020: 00640072 00410020 00490050 006d0020 'r.d. .A.P.I. .m.'
  0x00000030: 00790061 00610020 00630063 00730065 'a.y. .a.c.c.e.s.'
  0x00000040: 00200073 00490055 00430043 00000000 's. .U.I.C.C.....')
i am able to bring up gmail using your example (cool).
 
Old 10-22-2012, 12:37 PM   #5
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.x, 5.x, Fedora 20, Kubuntu 12.04, Solaris 10,8
Posts: 321

Rep: Reputation: 17
With the SMS example, i don't know how to send the message automatically, you still need to use the touchscreen.

With making a call, try some different values and see what happens.

Experiment, it won't kill your phone !
 
Old 12-26-2012, 09:07 AM   #6
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,197

Original Poster
Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
sshfs depends on fuse module (which the current android kernel doesnt support).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New to Android. What are some good starting tips/apps? Ion Silverbolt Linux - Mobile 6 02-20-2012 08:00 PM
LXer: 8 simple tips to save your Android Battery! LXer Syndicated Linux News 0 05-03-2011 03:30 PM
LXer: What I like about Android - and what I don't -- My Android Review (including my Favorite Apps) LXer Syndicated Linux News 0 11-18-2010 03:20 PM
LXer: 50 really useful Android tips and tricks LXer Syndicated Linux News 0 08-13-2010 01:42 AM
Need tips on using Ethernet to power WiFi network, and tips on setting up WiFi crabpot8 Linux - Networking 2 08-24-2009 07:42 PM


All times are GMT -5. The time now is 02:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration