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
319 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 ...
0
votes
0answers
10 views

How do I create an archive for easy extraction to /data/local/tmp/ in “adb shell”?

Usual shar archives fail to extact in adb shell due to problems with lock directory and temporary files for HERE documents. Zip archives are also not an option. How do I make an archive that can be ...
9
votes
2answers
7k 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 ...
2
votes
1answer
923 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
147 views

What are the command line options of Genymotion's player

Can someone give me a list of the cli options of Genymotion's player command. I see that I can get a list of the devices via VituralBox's command: $ VBoxManage list vms Then I can start the ...
16
votes
12answers
22k 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 ...
0
votes
0answers
17 views

Command line entry to check apk compatibility

I am using android via an emulator integrated with eclipse ide. I usually download app from my windows 7 ultimate / from my ubuntu 14.04. Then, I will copy the apk to \android-sdk\platform-tools. ...
5
votes
1answer
4k 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?
0
votes
1answer
133 views

Allow “unknown sources” from Terminal without going to Settings App?

I have a corrupted Settings app in CyanogenMod and have a possible idea to restore a backup of it (App and Data) in Titanium Backup. But it's currently set to not allow "unknown sources" so Titanium ...
0
votes
1answer
698 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?
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 ...
0
votes
0answers
17 views

Is this command safe to run from / as root

find . * -depth -print0 | xargs -0 rmdir It finds and removes all empty folders (including hidden ones) recursively. I only tired it on my home folder and a pendrive in Linux PC and it worked but I ...
3
votes
3answers
7k 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 ...
4
votes
1answer
559 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 ...
7
votes
1answer
9k 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
vote
1answer
3k 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
50 views

ERRORLEVELs in adb push and pull

I need to execute adb commands from DOS batch files, but I need to know if the push and pull commands were successful. Do these commands return an ERRORLEVEL, or some other environment variable to ...
0
votes
1answer
12 views

where can I find man page for top

I have a bugreport file containing output from (as it says) top -n 1 -d 1 -m 30 -t The -m option is not known on my ubuntu linux, wo where can I find the android man page for the top command? I ...
-1
votes
1answer
50 views

CLI commands in android?

Since Android is linux, cant i use standard linux commands inside android? I know there are applications that allow for a "Command Line Interface" (CLI). I also imagine that adb would provide access ...
0
votes
0answers
19 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?
0
votes
0answers
41 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
630 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 ...
2
votes
1answer
36 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 ...
6
votes
2answers
2k 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
48 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
950 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. ...
3
votes
1answer
21k 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
11 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 ...
0
votes
4answers
989 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?
-1
votes
1answer
822 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
447 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
494 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 ...
2
votes
1answer
939 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
80 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 ...
8
votes
2answers
2k 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
81 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 ...
0
votes
0answers
168 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 ...
6
votes
2answers
4k 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 ...
-1
votes
2answers
146 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 ...
1
vote
1answer
271 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
175 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
123 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
365 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
700 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
761 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
4k 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
337 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
89 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
5k 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 ...