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

-1
votes
0answers
16 views

home automation PCB via USB for Android [on hold]

I am working on a project for home automation. I want to design a home automation product with Android Tablet. I would need to connect at least 5 hardwired sensors to the device, such as door sensor, ...
-1
votes
0answers
12 views

android command not working hangs the command prompt [closed]

Here is my question for android.bat file being hanged on windows 8.1 64-bit OS. I'm trying to learn NativeScript app development with JavaScript. Not sure what is causing the problems. Default ...
-1
votes
0answers
26 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 ...
5
votes
0answers
66 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
39 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
36 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: ...
0
votes
0answers
63 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
36 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
103 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
124 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
59 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
60 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
195 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
197 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
228 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
59 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
557 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
233 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
30 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
671 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 ...
9
votes
0answers
475 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
78 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
241 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
64 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 ...
1
vote
1answer
108 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
534 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
614 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
388 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
826 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
618 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
526 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
199 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
148 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
785 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
66 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
141 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
431 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 ...
2
votes
1answer
527 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 ...
2
votes
1answer
328 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
214 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
1k 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 ...
0
votes
0answers
333 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
4k 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.
6
votes
3answers
6k views

Enable On-screen navigation in CM12 (Lollipop) using shell?

Device: OnePlus One (OPO); running CM12, is rooted, and has Xposed Framework installed. I need to enable On-screen navigation (it disables Hardware (HW) keys and shows soft keys at the screen; like ...
4
votes
2answers
4k views

How to change “Preferred Network Mode” using adb without reboot?

I'm trying to change my phone's (CM 12, Stock 4.2, both rooted) preferred network mode from "GSM/WCDMA" (0) to "WCDMA only" (2) and vice versa (there can be other modes too), using command-line only. ...
0
votes
0answers
443 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
1answer
41 views

find command says: unknown group XYZ

This question is the next part of this question. I'm trying to use find command (Android 4.2.1; Busybox installed, have root access) to list files owned by a specific group under /, but every time I ...
1
vote
0answers
77 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 ...
0
votes
1answer
93 views

How to launch apps from terminal

In linux I like to launch the applications from the terminal. Most of the time it is the fast way to launch apps especially on repeated use. In android there are good launcher like Fast app search ...