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.

learn more… | top users | synonyms

0
votes
1answer
422 views

How do you capture video from the command-line on an Android device?

How do you capture video from the camera on command-line of a rooted Android mobile device?
0
votes
0answers
15 views

How can to specify a wireless interface to an AVD using command line?

I am searching for a terminal command on AVD (Android Virtual Device) which supports attaching to a wireless interface in an AVD. Is there a way to connect to wifi in AVD?
2
votes
1answer
597 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 ...
0
votes
0answers
14 views

How do the Android X11 App differ?

How do the Android X11 Apps differ? XServer XSDL appears pretty polished and mature. I suspect the X Server app has been around longer, ranks higher on google. Are there any glaring problems with ...
1
vote
2answers
432 views

How to install bundles of additional terminal commands for rooted devices?

I rooted a HTC Wildfire S device recently and flashed an Android 4.1.2 AOKP Jelly Bean Custom ROM. One benefit is that I can use the terminal now. I'm a little used to using terminal emulators on ...
1
vote
1answer
24 views

Please explain this weird response to adb command

127|root@android:/ # find / -iname "aaengine" find: /proc/19619: No such file or directory I dont know why I got told about some file I never known about when ...
0
votes
0answers
81 views

Why Does Not My File Explorer See A Mounted Folder?

Why can't i see a mounted folder into my file explorer, but i can see it from a terminal? I'm mounting a folder (/mnt/sdcard/Source) into other folder (/mnt/sdcard/Destination) with the next command ...
6
votes
2answers
1k 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..
0
votes
0answers
39 views

Restoring a previous sdcard path after ROM upgrade

Device: HTC Desire Z I moved from CM 10.1 to 11, and I would like to bring back the old path of sdcard. It was like this: 10.1: /storage/primary/legacy/ 11: /storage/sdcard Can I do that by doing ...
0
votes
1answer
100 views

How to execute a file via adb command line?

I am trying to root my Motorola Xoom. Root checker pro currently tells me that "Executing this file can grant root access!" So I want to try that. the file is located in system/bin and is called su. ...
2
votes
1answer
15k 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 ...
0
votes
0answers
10 views

Formatting SD Card without internal Android utility [duplicate]

My Android version (v2.3.4) is a custom one, a Beta unofficial version, and lacks of format option in Settings --> Storage. Is there any other way to make a format of it? A command line way would be ...
0
votes
0answers
15 views

Set Default Keyboard without having to long hold text input? [duplicate]

So I have successfully installed a new keyboard and enabled it in settings > keyboard and languages. I have been able to set it to the default keyboard by doing a long press on an input field and ...
-1
votes
4answers
242 views

Use ADB To Lock Phone

I have a security app that needs to be able to activate the default lockscreen but with a passcode. Is it possible to do this with android shell commands?
-2
votes
1answer
163 views

Shutdown Phone Without Root

Is there a shell command to shutdown and/or restart the phone WITHOUT root? I need this for an app I'm developing. It's going to be a feature called lockout mode that turns off the phone when it ...
2
votes
1answer
294 views

Is there a way to launch app via terminal in the background?

Is there a command to launch an app via terminal and have it start in the background? Something like the "&" in Linux...
2
votes
1answer
147 views

Installing an app from Play Store using the command line

Is it possible to install an app from Play Store using the command line and if yes, how? What I am trying to accomplish is something similar to using adb install file.apk but instead of an apk file ...
1
vote
1answer
93 views

A Real Terminal (Root or No-Root)

I use KUBUNTU on my laptop, but this goes for any Linux distro. I can open a terminal window and type in things like sudo apt-get update, sudo apt-get install packagename. Is there a terminal that can ...
0
votes
0answers
45 views

Is there a (root) command line option to force the Verizon Galaxy S4 into 3G mode instead of 4G?

I have a rooted Galaxy S4 on Verizon, and I am wondering whether I can force it to go to 3G only mode using the command line. I have browsed the various forums and it seems that there used to be an ...
6
votes
2answers
870 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
1answer
54 views

Sending linux commands over serial

I have a question about being able to send Linux commands over a serial connection to an Android device. I have heard of putty and tried to use it, but i am ultimately lost with it. Like if I was in ...
4
votes
0answers
273 views

Is there a way to switch Android users from the command line?

Using the following command, I managed to enable multi-user mode in an Android device that doesn't officicially support it: adb shell setprop fw.max_users 4. For good measure I also added the ...
0
votes
0answers
92 views

Pull or backup only the contacts from Android

My phone is on a bootloope _ soft bricked. I have managed to detect it via adb on recovery mode. So now I want to know the exact command to pull contacts first from the phone to my pc. Is this ...
2
votes
2answers
2k views

Open command prompt to access folders of a USB connected Android phone

If I connect a Phone with my Windows 7 machine via USB, it shows up in explorer with a name e.g. Nexus 5. How can I open a command prompt and change directory to this device. For lettered drives, I ...
15
votes
12answers
18k 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 ...
5
votes
2answers
2k views

How to find the pathname of the swap partition on SD card?

As this warns, you should not enable swap on the wrong partition or you can destroy your phone: OK before we go any further! previous phones had a partition layout where mmcblck0 was the SDcard ...
7
votes
1answer
7k 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 ...
-1
votes
2answers
104 views

Installing ps2pdf command-line program in Android

I just bought a Nexus 7 2013. It's very good and I'd like to use it to (in case of emergency) edit some of my latex documents using TexPortal. Some latex documents of mine get compiled properly only ...
0
votes
0answers
89 views

Learning Android command line

I've been googling it a lot but couldn't find anything substantial. I'm not familiar with Linux. Could you guys point me in the right direction? I want to do just about everything from android command ...
0
votes
0answers
67 views

Can i get network operator name by command?

I want to use terminal to get network operator which my phone was selected. Can I do it? How?
1
vote
1answer
187 views

How do I get the common name of an app having the package name (like com.android.blabla)? (command line or included app)

I’m interested in a way to go from the package name (e.g. com.android.providers.telephony) to it’s common name (Phone/Messaging Storage). The answer should only assume shell access (adb) on the phone ...
1
vote
1answer
120 views

how to install command line programs

How to i install binaries on my non-rooted tablet i have the terminal application called Terminal IDE and i followed the instructions, i put my compiled binary in the folder local/bin/. I comiled a C ...
2
votes
1answer
78 views

get webpages from command line

How can I get the contents of a webpage from the command line? On my mac I use the curl command, but there is no such command for the android command line. what command do I use?
2
votes
1answer
164 views

No pbcopy-pbpaste command

I am trying to access the clipboard but there is no pbcopy or pbpaste command. Is there an alternative to this command? how can i access the clipboard from the command line?
0
votes
2answers
334 views

How to use Android modem without using PC

I have rooted my mobile. I wanted to use modem of Android phone without connecting to PC. How to give AT commands without connecting to PC, because in http://atinout.sourceforge.net/, it is suggesting ...
6
votes
1answer
637 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?
9
votes
1answer
2k views

Toggling USB mass storage on (or off) via adb commands

Background: I have a USB stick Android device (e.g. RikoMagic) which I mostly run in "headless" mode. Among other things, I've already figured out how to shut it down via a combination of adb and the ...
2
votes
0answers
276 views

How can I easily copy files from an Android device to a computer wirelessly via command line?

I need to copy jpegs from an Android phone's sdcard to a computer, ideally through command line (/storage/sdcard1/*.jpg to a remote location) I've tried Izzy's solution from this post like so: scp ...
0
votes
0answers
77 views

netcat listening on nexus 4 doesn't seem to respond

I have a Nexus 4 on my wifi network along with a laptop. I would like to establish a connection using netcat from my laptop to my phone. On my phone, I can run uname -a | nc <LAPTOP IP> ...
2
votes
1answer
2k 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 ...
2
votes
1answer
3k 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 ...
3
votes
3answers
13k 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 ...
1
vote
0answers
964 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 ...
5
votes
1answer
5k 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 ...
9
votes
2answers
2k 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 ...
1
vote
2answers
2k 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 ...
3
votes
1answer
738 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 ...
7
votes
2answers
3k 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 ...
10
votes
3answers
8k 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
1answer
1k 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 ...