A "command line" is a text interface to enter commands interactively. In our context, it usually means a "Unix Shell" in a terminal app, or the ADB shell on a computer to interact with an Android device.
2
votes
1answer
68 views
A way to get the current resolution size and DPI from the command line/terminal/adb?
I've got adb access to my android phone.
So I know that I can override screen density and screen resolution with the am command provided with Android. That's great and dandy, I guess. But is there a ...
1
vote
0answers
64 views
How do i open a text file from a terminal window from within the android gui
I'm trying to open a text file from within a terminal window emulator -- but not so it opens in the actual terminal but more like I've just clicked on it.
So my question is: What command can I use to ...
3
votes
1answer
327 views
What's the best way to restart Android via command line (remotely)?
I'm looking for the best / friendliest way to reboot my rooted android 4.1.1 device. I found these solutions so far:
su -c "reboot" - Causes problems with wifi after restart on my device... I read ...
1
vote
2answers
197 views
Format SD card after playing with fdisk (No card reader)
After playing with partitioning using FDISK (from busybox) i finished and now i want to format it back to whatever is usable under Android.
Using same FDISK via Android console i deleted all ...
0
votes
0answers
18 views
if this linux command applicable for android WIFI DIRECT? [duplicate]
i found resources talk about Wifi direct commands in linux at this link.
i am wondered if these commands are applicable for android WIFI DIRECT ???
i need to access WIFI direct from terminal using ...
2
votes
1answer
329 views
'android' and 'emulator' commands not found
I have installed android-sdk-linux on my ubuntu 12.04 netbook and I see that the commands android (which opens the AVD Manager) and emulator (to which on appending the name of a specific AVD, the AVD ...
1
vote
1answer
389 views
Which WiFi-Direct commands can be used in Android?
I am interested to know what commands can be used in Android to control WiFi direct from the terminal/command line. I took a look into p2p WIFI direct but I didn't catch these commands!!
I can find ...
1
vote
1answer
179 views
How can I install wpa_cli on my rooted device?
I rooted my device, then I go to adb shell and type su to enter wpa_cli. I was surprised that wpa_cli: not found appeared, although I get information when I type wpa_supplicant.
I know that wpa_cli ...
2
votes
1answer
107 views
wpa_cli not found on rooted device? [duplicate]
I rooted my device, then I go to adb shell and type su to enter wpa_cli.
I was surprised that wpa_cli: not found appeared, although I get information when I type wpa_supplicant.
I know that wpa_cli ...
0
votes
1answer
606 views
Why can't I get root access from shell?
> adb shell
sh-4.1$ su
Permission denied
I have rooted my phone successfully. I know this because I'm able to install apps on SD card and I have a program called SD Maid that is able to operate ...
3
votes
1answer
210 views
Why do linux commands not work properly on android?
> adb shell
sh-4.1$ ls -F
-F: No such file or directory
-F switch works fine on my Ubuntu. Why doesn't it work on android?
Is there a way to make it work?
0
votes
0answers
84 views
AVD Manager runs but android.bat does not
I can create virtual devices using AVD manager. I can run the emulator and create AVDs. But i cannot do the same using "android.bat".
I get the following error-
ERROR: No suitable Java found. In ...
0
votes
1answer
452 views
Toogle 3G, Bluetooth, and WiFi with Android Linux or ADB commands
Since I have not found an Android command reference list (with meaning and usage of the command), I have some questions:
Can I disable/enable 3G?
Can I disable/enable bluetooth?
Can I switch from ...
3
votes
1answer
293 views
FFMpeg stream to FFServer from Back Camera
I'm looking for a way to stream my camera video from my Android phone to an FFServer, like I would with FFMpeg from the command line in Linux:
ffmpeg -f video4linux2 -i /dev/video0 ...
1
vote
1answer
157 views
Where to find description of all “/system/bin/service” calls?
In one answer I was adviced to use service call phone 2 s16 "$number". It works, but in service list I see other useful things I don't know how to use and can't easily find the information on the ...
0
votes
0answers
169 views
Hibernate from command line
Is there a command I can enter in a terminal emulator to put my phone or tablet into a low power, instant on state? My tablet lacks that option from the press-and-hold-power menu.
1
vote
2answers
156 views
Close Application with locale?
I use the locale app to automaticly start an obd-app (Torque) when I enter my car. This works well. Now I want to automaticly close that app when I leave my car. As there seem to be no Plugins to ...
2
votes
1answer
112 views
Is there a way to launch app via terminal IN BACKGROUND?
Is there a command to launch an app via terminal directly in background?
Something like the "&" in linux...
Thanks,
Andrea
6
votes
1answer
278 views
How to return to the home screen with a terminal command?
Is there a terminal command to go to the home screen?
I need to do this via ssh, so I cannot just push the "home" button, I need to send a command-line action..
6
votes
2answers
652 views
how to run a specific app's action via terminal?
I need to run my android app from a remote computer via SSH, but I'm not a command-line expert, so I would like to know:
how to run a specific action of an app? (not just open it)
Which implies: how ...
0
votes
1answer
217 views
Command or script to read a binary file and skip some bytes every X bytes
I am trying to find an Android shell command that is able to read a file but that has the power to skip, for example 512 bytes every 1024 bytes.
Does such a command exist and is available for ...
4
votes
2answers
806 views
Can I change some Android settings from the command line?
I would like to activate "USB tethering" from within a bash script, so is there any possibility to run a command line with adb shell to change some Android settings ?
Edit1:
The following command ...
0
votes
1answer
109 views
execute linux commands on android froyo [duplicate]
Possible Duplicate:
How can I use shell commands and interact with the Linux system underneath?
I want execute linux commands on my android (Froyo).
How can i do it? any idea?
Should I ...
0
votes
0answers
114 views
How can I start a PPPTP VPN session over the command line
I have a rooted device with busybox, mtpd, and pppd. When I go through the settings menu to start the VPN the interface that is created is ppp0. An application I want to use checks ...
7
votes
1answer
843 views
How can I remotely change the volume?
At home I often connect my android to some speakers, to listen to internet-radio. It would like to be able to change the sound-level through a command on my laptop.
I can open an ssh shell to the ...
3
votes
3answers
6k views
How do I invoke “su” from a terminal prompt?
I can get a root prompt in the terminal by running one exploits documented elsewhere. (e.g. here: http://wiki.cyanogenmod.com/wiki/Motorola_Droid_2_Global:_Full_Update_Guide)
At this point, I can ...
5
votes
1answer
2k views
Turn phone on with ADB or Fastboot?
My power button seems to have busted, is there a way I can boot my phone using ADB or Fastboot or some other command line interface?
4
votes
1answer
3k views
Enter recovery mode from command line
Does anyone know if there's a way to get an Android phone to reboot into recovery mode, from the Android command line?
Note:
I do NOT have adb access.
I do NOT know the magic power-on sequence to ...
3
votes
1answer
964 views
How to take backup of all installed APKs from Phone to PC?
How do I take backup of all installed apks from my sgs2 to PC using android sdk/ 3rd party tool etc? My phone is not rooted. I can install/uninstall apks using adb, but is there any similar command ...
2
votes
1answer
2k views
Minicom app for Android?
Is there a comm app similar to minicom, hyperterminal or zterm for Android? I would prefer a port of minicom, if it exits. BTW, I'm running Android ICS on a Galaxy Nexus.
6
votes
2answers
757 views
On Android can I write scripts (similar to Win .bat files) to combine several command line commands?
On Windows, I can run two commands using a .bat file.
How can I achieve the same thing on Android
For example:
update my podcasts by calling pcastclient /updateALL
force sync of my pictures ...
6
votes
1answer
2k views
Rooted phone - sending SMS message via command line
I have a rooted Droid (Sholes), with ConnectBot installed. I can ssh into it via dropbear copied to /system/xbin, and/or also the instance of Debian installed on it via the "Linux Installer" ...
3
votes
1answer
8k views
How to install kernel module for android?
I currently have a custom kernel and ROM installed on my android device. The kernel I'm using comes with a separate download with kernel modules that you are to install yourself if you want. However ...
7
votes
5answers
1k views
Can you run Linux command line apps on Android?
I'm brand new to Android; in fact I've never owned one.
But I'm traveling all this summer, and I'm very interested in doing some programming while I'm on the run.
QUESTION: Is it possible to run a ...
6
votes
3answers
5k views
Android Read recent SMS messages from command line
I have recently broken my Android's screen. (Again)
Its a T-Mobile G2
Trying to keep up with my busy technology related life is hard enough without losing my link with everyone.
I have rooted the ...
3
votes
2answers
430 views
Rootless CLI Utilities
Do I have to root my android device to install command line utilities? I would really like to run Vim, among other programs on my phone. I have no reason not to root my phone, I just want to know if ...
1
vote
1answer
433 views
HTC Desire - phone's dead
I was trying my application on HTC Desire when I realized there was a problem with the app so I force stop it. Next thing is the screen freezed - HTC white welcome screen. I tried rebooting several ...
8
votes
1answer
1k views
Start an Android application via a shell script?
Is it possible to start an actual Android application from the command line in Android? For example, say I'd simply like to start/bring to the front my calendar. Is there a way that I can do this ...
4
votes
2answers
719 views
How to call from console?
How to make or receive a call from console?
Expecting something like this, UNIX-style:
make_call +3750291234567 < played_data.wav > recorded_data.wav
wait_for_call < played_data.wav > ...
3
votes
2answers
927 views
Read APK permission by shell command
I want to read the requested permissions of an .apk file on the computer (android sdk is installed) via command line.
I.E.:
$ android read-permissions /path/to/someapp.apk
I know this is possible, ...
13
votes
10answers
12k views
Are there any command line ssh clients available for rooted android phones?
I of course have ConnectBot, but I'm looking for something I can script.
Edit: To clarify here, I'm not interested in running scripts from a terminal. What I want to do is run an ssh command in an ...
