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
21 views

How do I display message from from `adb shell` (or a shell script)?

I expect it to be something like adb shell am start SomethingArcane ... "Hello, world" and the message box pops up on screen, saying "Hello, world".
1
vote
1answer
34 views

Tar.gz not working (Segmentation fault) on ext4 partition

I have a strange problem with tar gz compression. I used to have SD card mounted as a fat32 partition. However, now I changed it so that external sdcard is being mounted under /data/media/0 and is ...
1
vote
0answers
70 views

How can I change preferred network type through a script (or terminal command)

I'm currently attempting to create a workaround for a problem that is plaguing a ROM that I'm using. While my phone and ROM are capable of using LTE, and use it perfectly fine, the "preferred network ...
0
votes
0answers
462 views

Need one-line adb shell su push & pull to access /data from Windows batch file

I've been struggling for two days. Hope for help here. I wrote a Windows batch file that replaces Amazon lockscreen ads with user images on rooted kindle fire hd 7", 2013 (kfsowi). Just learned I ...
0
votes
0answers
16 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 ...
0
votes
0answers
21 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. ...
0
votes
0answers
275 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 ...
0
votes
1answer
262 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
0answers
19 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 ...
1
vote
1answer
65 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
17 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
56 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
21 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
53 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 ...
2
votes
1answer
41 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
1answer
545 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
51 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
1k 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. ...
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 ...
-1
votes
1answer
1k 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 ...
0
votes
4answers
1k 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
671 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 ...
0
votes
0answers
96 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 ...
2
votes
1answer
2k 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
1answer
96 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
1answer
786 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
266 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 ...
3
votes
3answers
10k 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 ...
6
votes
2answers
5k 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
157 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
195 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
133 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
477 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
832 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 ...
1
vote
1answer
301 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 ...
0
votes
1answer
767 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?
11
votes
2answers
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
381 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
96 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> ...
1
vote
2answers
740 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
6k 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
3k 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 ...
9
votes
2answers
8k 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
2answers
3k 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 ...
2
votes
1answer
3k 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
4k 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 ...
2
votes
1answer
1k 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
464 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 ...
4
votes
1answer
24k 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 ...