LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (http://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   android commandline tips (http://www.linuxquestions.org/questions/linux-mobile-81/android-commandline-tips-4175425975/)

schneidz 09-06-2012 10:29 AM

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 ?

chssmsterwnook 09-23-2012 06:56 PM

Check out botbrew (http://botbrew.com/), it gives you lots of standard Linux tools and programs to use on Android.

dazdaz 10-19-2012 04:10 PM

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 (Post 4774239)
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 ?


schneidz 10-22-2012 10:55 AM

Quote:

Originally Posted by dazdaz (Post 4810252)
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).

dazdaz 10-22-2012 11:37 AM

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 !

schneidz 12-26-2012 08:07 AM

sshfs depends on fuse module (which the current android kernel doesnt support).


All times are GMT -5. The time now is 12:11 AM.