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
2answers
5k 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 ...
-2
votes
2answers
69 views

android command line shell

I have a Nokia X running Android 4.4.4 and I have Terminal Emulator and Busybox 1.24 installed but I can't still find some useful commands to perform several operations with the command line ...
4
votes
1answer
2k 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 ...
3
votes
1answer
101 views

command on adb waits forever

I can successfully execute ADB commands, but if the command has no output the command line just waits there and does not let me enter a new command until I press ctrl-c, the commands do work however. ...
3
votes
1answer
2k 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?
3
votes
1answer
3k 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 ...
1
vote
1answer
286 views

Turn on USB debugging using command-line

I have a Samsung Galaxy S2 and a PC running Debian 8. How can I turn on USB debugging using command-line on my PC without touching the phone?
1
vote
1answer
215 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 ...
1
vote
1answer
722 views

Get common name of an app given its package name

I'm interested in a way to go from the package name (e.g. com.android.providers.telephony) to its common name (Phone). I'd like to know if there's ADB/shell command (from the phone), or any ...
0
votes
1answer
118 views

Why 'am start PACKAGE' cannot launch some apps and shows an error?

I keep having an error trying to start some apps using am start command. It works for many, but for some apps I get the same error mentioned below: #adb shell am start com.amazon.venezia Starting: ...
0
votes
1answer
230 views

DNSCrypt error: could not load library “libsodium.so”, on Asus Zenfone 2 running Android 5.0

I tried installing DNSCrypt on my Asus Zenfone 2 device. But when I try to run it it gives me this: root@Z008_1:/ # dnscrypt enable Enabling dnscrypt... iptables: No chain/target/match by that name. ...
0
votes
1answer
201 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
1answer
164 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 ...
9
votes
0answers
543 views

How to send a variable value to and receive it in a task?

I've a OnePlus One with rooted Cyanogen OS 12 and Tasker v4.8. I've a bash script in PC which when exiting requires a Tasker's task to be executed. I've seen the question Running a tasker task via ...
5
votes
0answers
90 views

How to get to know via command-line/adb where boot process hangs?

Question: (How) is it possible to get to know via adb where exactly a booting-up android device is hanging? My problem/ background information: I recently did changes on the automatic display ...
5
votes
0answers
721 views

pm hide VS pm disable — the identity crisis

What's the need of pm disable when pm hide already does its job? I've compiled some information based on my search and research: click here to see the table (edited). As you can see, pm hide can ...
4
votes
0answers
701 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 ...
3
votes
0answers
25 views

What represents 'bootloader' in the possible outputs of `adb get-state`?

I recently employed the use of adb get-state and decided to know further about it. Running adb inter alia shows: adb get-state - prints: offline | bootloader | device I intend to ...
3
votes
0answers
202 views

Cause and solution of “Error: Unknown operation string: <OP>”

First of all, the following command works perfectly fine on Android 5.1.1 (CM, PA and Tesla ROM builds): adb shell su -c 'appops set android SYSTEM_ALERT_WINDOW deny' The said command blocks ...
3
votes
0answers
2k 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 ...
2
votes
0answers
158 views

Enable bluetooth tethering via command line

Is there a way to activate the bluetooth tethering mode in Lollipop using the command line? You can do it for usb tethering by running the command service call connectivity 30 i32 1 Is there a similar ...
2
votes
0answers
695 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 ...
1
vote
0answers
144 views

How to restart a system app from the command line?

After deploying a new APK for a system app, is there a way to restart the app process without rebooting the device? Non-system apps are managed with the Activity Manager through the am command. There ...
1
vote
0answers
71 views

Get package name of an app given its displayed name using ADB commands

I'm trying to: Get the package names of all apps on my device (none of them are mine so sadly I can't get it from the Manifest) and put it into a file to save for a class project. I also want to get ...
1
vote
0answers
63 views

How do I investigate the memory Usage?

I've a Micromax A74 with (rooted) Android 4.2.2. Recently I've faced the crashing of some application and started to analyze the usage of RAM. Settings>Apps>Running is not helpful: Sometimes I ...
1
vote
0answers
301 views

What is the command to encrypt Android rooted phone directly from the command prompt?

I want to encrypt my Android phone which has an engineering/userdebug binary. Generally it takes around 1 hour, but I heard it can be directly encrypted it with the adb command-line tool. So how do ...
1
vote
0answers
2k views

How to permanently disable mediaserver service?

I am trying to permanently disable the notorious power hogging mediascanserver or mediaserver (whatever it's better known) service on a rooted Jiayu S3. Here are my ADB commands: su pm disable ...
1
vote
0answers
80 views

Camera group not found in Android groups

Edit: I found that using ls -n shows the group's id and not its name. The group id for camera is 1006. I can now use the find command as well. However, this id isn't listed in the output of id or ...
1
vote
0answers
111 views

Ngrok (compiled for Arm5) crash on android: can't find core dump files!

I downloaded Ngrok which I want to install on a old HTC Hero [the project is to transform the phone in a ipcam, reachable behind a NAT network], so I chose the version compiled for Arm5. You can find ...
1
vote
0answers
439 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
0answers
74 views

Can someone help me finish rooting LG Leon/Risio 5.1.1

I have H343 LG Risio/Leon that I was manually rooting with PC but I get stuck in CMD at UNLK : after typing code:Push_file.exe\.\COM3 busybox tmp/busybox and hitting enter. At which point I get this ...
0
votes
0answers
63 views

How to run alsamixer command for android shell

I am trying to configure sound for a specific sound card and I need AlsaMixer to open but I can't find the right command to open it from terminal. Any help would be appreciated
0
votes
0answers
34 views

How do I run Mercurial on my Android device?

How do I run the Mercurial version control system on my Android device? (If I'm reading the question "How can I make it so that any user can chmod in my fuse-mounted ext4-formatted /sdcard?" ...
0
votes
0answers
670 views

Using the Cerberus shell to input commands

I'd like to use the Cerberus shell to input commands like taps, swipes, and text. I know how to do it using the command line and ADB shell, but I don't have USB debugging enabled on my Nexus6, so I'm ...
0
votes
0answers
212 views

How can I install e2fsprogs on my device?

My phone has the "Monkey Test" virus and there is solution in here, but when I try to execute this command: chattr -iaA providerCertificate.apk I receive the error "chattr : not found". I found a ...
0
votes
0answers
353 views

How are the commands “log” and “logwrapper” used?

I'm trying to figure out the usage of "log" and "logwrapper" command but so far cannot find out a good manual. (E.g. This is a very good manual written for "logcat"). I'm looking for a real-time ...
0
votes
0answers
485 views

Start wifi hotspot through adb using service command

I saw this question, the answer there and the comments on it. The solution still needs at least three steps to enable hotspot using command line. I'm looking for one single command. E.g In Lollipop, ...
0
votes
0answers
31 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 ...
0
votes
0answers
619 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 ...
0
votes
0answers
133 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> ...
0
votes
0answers
3k 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 ...
-1
votes
0answers
39 views

How to gain access to the fm radio on my phone with root access?

Android is based on a Linux Kernel, and is therefore a variant of Unix. As such I would expect some sort of command console/command prompt to be accessible. According to this site and this site, most ...