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
0answers
17 views

SD card root access

Hey I just wanted to ask how it is possible to access my sdcard data with command lines on a rooted phone ? I tried to ls in /sdcard, also in /mnt/sdcard/ but my files are never displayed, yet a ...
1
vote
0answers
84 views

I can't remount /system as rw. I get an error message: mount: Read-only file system

I'm using a rooted Huawei G7 and i'm trying to install BusyBox, but I keep getting an error. I'm 100% sure this error is because there is some weird write protection on /system. I know this because ...
0
votes
0answers
11 views

adb syntax not proper

I want to root, change bootloader and install TWRP on my wife's LG LH410. I found out script to do this on xda-developers. But after unpack zip file, I notice that bat file contains such lines (...
0
votes
0answers
45 views

Download from Comand Line

Is there any command in Android to download some file from internet using the command line. I tried wget but it's not available on my android device.
0
votes
1answer
54 views

How to open an URL in Chrome Incognito Tab by launching the Incognito Activity?

Is there any way to open a link in Google Chrome's Incognito Mode from the Terminal ? I tried this but it didn't work: am start -n com.android.chrome/com.google.android.apps.chrome.document....
1
vote
0answers
24 views

Run Android on Android?

We know it is possible to use chroot to run full Linux on android, also support Xserver (GUI).So, it should also be possible run another android on an exist android ? for example, using chroot to run ...
1
vote
0answers
41 views

adb devices -l not showing USB qualifiers?

I've read in several places that calling adb devices -l will return the both the serial numbers and USB qualifiers for the attached devices. However, when I issue the command I only get the ...
-1
votes
1answer
86 views

Auto refreshing the signal

When we go to the area where signal is not reachable, we experience "Emergency calls only" or "No service". But after coming-out from that area we sometime found phone is not receiving signal and ...
3
votes
0answers
35 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 ...
5
votes
0answers
144 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 ...
-3
votes
1answer
60 views

When using a terminal emulator why are there so many normal Linux commands that to not work?

There are a lot of standard Linux commands that do not work from a Terminal Emulator in Android. I thought Android is based on the Linux kernel, but it lacks so many functions, like man groups find ...
0
votes
0answers
90 views

Problems rooting lg risio/leon from laptop [closed]

I have H343 LG Risio/Leon that I was manually rooting with PC but I get stuck in CMD at UNLK : after typing code and pressing enter. At which point I get this message: C:\Users\Mole\Downloads\LG_Root\...
0
votes
0answers
103 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
1answer
52 views

Is it normal for a USB OTG converter to show in lsusb

When running lsusb (not as root) with an OTG adapter plugged in without anything plugged into it I get : u0_a83@flounder:/ $ lsusb Bus 001 Device 001: ID 1d6b:0002 Bus 002 Device 001: ID 1d6b:0002 ...
0
votes
1answer
195 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: ...
1
vote
0answers
206 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
102 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
83 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 ...
2
votes
1answer
635 views

Trigger Setup Wizard at next boot using command-line

I am looking for a way to use ADB to trigger Setup Wizard at next boot. I know I can run the following command and get it to pop up. However, I can't figure out what triggers it to start at boot. adb ...
3
votes
0answers
219 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 ...
1
vote
1answer
1k 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?
0
votes
0answers
86 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
-3
votes
1answer
1k views

Error “Function not implemented” when creating symbolic link

I'm trying to execute this command busybox ln -s "mydir/" "$PWD"/mylink in order to create a symbolic link from mydir; that, I am receiving the following error ln: /mnt/shell/emulated/0/mylink: ...
1
vote
1answer
679 views

How do I install missing command line tools onto an Android device?

Android installations do not always have all the tools one would expect to have on a Unix-like system. For example, right now I have a problematic device which doesn't have find CLI utility. I mean, ...
0
votes
0answers
60 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?" ...
1
vote
1answer
2k views

Error: “Operation not permitted”, when attempting to remove su binary placed by KingoRoot

I rooted my P8-Lite ALE-L21 (Android 5.0.1) with supersu.zip through TWRP recovery. After that I installed KingoRoot and KingoRoot replaced su binary with some other su binary which is obsolete for ...
10
votes
0answers
774 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 ...
0
votes
2answers
110 views

Using command-line to boot into primary and secondary ROM of MultiROM

I've a OnePlus One with unlocked bootloader, modified TWRP v2.8.6, unofficial MultiROM v32k, MultiROM Manager v1.186, Cyanogen OS 12 as primary and several Android 5.1 secondary ROMs. I don't have any ...
1
vote
0answers
510 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 ...
-2
votes
2answers
93 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 interface....
1
vote
1answer
153 views

Acquire Android image using flash drive OTG

In Linux, the dd command is used to pull the image from the smartphone to computer. And of course, the smartphone need to be rooted before the dd command launched. Is there any specific command or ...
3
votes
2answers
737 views

Where should I install Toybox?

I own a rooted Samsung Galaxy S Relay 4G running stock Android 4.1.2. If you have Android 6.0 "Marshmallow" or better, then you have Toybox. This is a package of command-line tools, handy for ...
5
votes
0answers
1k 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 ...
0
votes
1answer
635 views

Use of the -i argument in fastboot command-line?

I was planning to flash a custom recovery in my Yu Yuphoria. So I searched for it on Google, and found a download link along with a written tutorial. I'm acquainted with the fastboot commands, so I ...
0
votes
1answer
2k views

Getting mount's usage suggestion when attempting /system remount [duplicate]

I'm trying to remount system on a rooted Samsung GT-S6102 running Android 2.3.6: # mount -o rw,remount,rw /system Usage: mount [-r] [-w] [-o options] [-t type] device directory This is exactly like ...
0
votes
0answers
807 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
1answer
899 views

Check OpenSSL version in Android with Java runtime or shell command

I have a problem with checking OpenSSL version in Android device. I've tried to grep OpenSSL from system/lib/libssl.so with java runtime.exec, but it doesn't work? Anyone can help me, how to make a ...
0
votes
0answers
252 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 ...
2
votes
0answers
171 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 ...
3
votes
1answer
1k views

How to check my phone hardware specs on Android terminal emulator

I was wondering if there is a command to check the hardware specs of my phone. I just installed the Android terminal emulator. I've tried the 'lshw' but it does not work. Thanks in advance.
3
votes
1answer
4k views

How to delete a file (e.g. malware app) that cannot be even removed with root access?

I have root access in my device, but there is a malware in /system/app/ that I can't delete. This malware installs TimeService, MonkeyTest, and also some other apps like DR battery and privacy guard, ...
1
vote
1answer
73 views

ADB- Cannot get the Path variable to work for ADB

I am unable to execute ADB from CMD after adding it to the Path Variable. I am able to launch it from the folder when I open a Command Prompt there. But I am unable to launch ADB straight from CMD ...
0
votes
1answer
186 views

TTS speech from console

Can I synthesize arbitrary text strings with TTS from the Android's console? To give the idea, on Debian I would do: festival --tts <(echo Buongiorno signore) The TTS engine needs to be always ...
4
votes
1answer
625 views

Disable touchscreen input via console

I'm looking for a way to disable and enable the phone's touchscreen via console, and possibly the physical buttons, so to prevent finger touches from being processed. The phone is a Samsung Galaxy ...
3
votes
1answer
723 views

How do I screen pin an app in Android Lollipop using command-line?

I'm aware that I can go to Settings → Security → Screen pinning → On, and then tap Overview → touch the pin icon on the app listed there and it would be pinned, effectively putting ...
3
votes
1answer
969 views

How can I find which apps/packages reference a given permission using command line?

Given some permission tld.developer.app.permission.PERMISSION how can I use adb/root shell to find all the installed packages that define/depend on it? The permissions are defined in the manifest ...
0
votes
1answer
256 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. ...
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 com....
0
votes
0answers
408 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
4answers
6k views

Fastboot poweroff command

Is there a way to shutdown my Mate7 from fastboot? Long pressing the power button makes the phone restart again. I need to shut it down so I can recharge it then restore to stock.