The shell is a piece of software that provides an command-line interface to the operating system. Use this tag for shell-specific issues; general command-line issues should use the 'command-line' tag instead. See full tag wiki for other related tags.

learn more… | top users | synonyms

3
votes
0answers
45 views

How does changing IP and mask by ifconfig work?

I am sorry for this rudimentary question, but I cannot find a good answer. Here is the effort to change IP and mask: # ifconfig eth0 eth0: ip 192.168.0.133 mask 0.0.0.0 flags [up broadcast running ...
3
votes
0answers
318 views

Nexus 6 automatically remounting system read-only, deleted files returning

tl;dr I mount system rw I try to copy/update/write /system/xposed.prop System is auto-remounted ro, causing the write to fail (applicable to a variety of workarounds) Moving/renaming/deleting files ...
3
votes
0answers
648 views

I can't see new files throught windows explorer

i can't see my new(!) files on android throught windows explorer while i can do it by ES explorer or adb shell. Is there any way to fix it?
2
votes
0answers
63 views

How to scroll horizontally in Terminal Emulator for Android

When I'm using Terminal Emulator for Android (also available here), long commands frequently scroll horizontally off the window. I feel quite dense, but I can't find a way to quickly scroll left and ...
2
votes
0answers
11k views

adb shell -> su: not found

How can I overcome this problem? Devices: Samsung Galaxy TabS - Android 4.4.2 HTC M8 - Android 5.0.1 The two devices have the same problem.
2
votes
0answers
320 views

Setting IncognitoModeAvailability policy for Google Chrome on an Android tablet?

Google Chrome supports an “IncognitoModeAvailability” policy that I want to set on my Android (Jelly Bean) tablet. I tried to set up the policies as described here: http://www.chromium.org/...
2
votes
0answers
389 views

How can I troubleshoot MTP on my Galaxy Nexus

My Galaxy Nexus 4.2.2 won't show up as a MTP device anymore. It looks like the phone is the problem, I want to debug the problem from that end. Like many before me, I tried everything, and then some :...
2
votes
0answers
1k views

Remount writable by all users?

I want to remount a read-only partition in read-write mode, but I want it to be writable for all users. So far I've got this: mount -o bind /someplace /someplace_else mount -o remount rw /...
1
vote
0answers
37 views

adb device not found after reboot

I am developing an automated test script to turn off my android device and turn it on back again and then run a few adb commands after the boot is complete. My problem is that when I turn the device ...
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
133 views

How to enable/disable DHCP of eth0

"ifconfig eth0 dhcp start" or "ifconfig eth0 dhcp drop" does not seem to work for Android. Is there a way to enable/disable DHCP for eth0 via shell commands?
1
vote
0answers
100 views

Cannot mount mtdblock partition

I'm trying to mount the boot partition of a tablet with MTD partitions. This is the output of cat /proc/mtd: root@android:/ # cat /proc/mtd dev: size erasesize name mtd0: 00400000 00004000 "...
1
vote
0answers
350 views

Lenovo S6000 - Auto power on after connecting charger

I searched the web to automatically power on my lenovo tablet after connecting the charger, but all the guides are for samsung and some other brands. File /system/bin/playlpm doesn't exist in lenovo ...
1
vote
0answers
128 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
389 views

How can I run a shell script when some WiFi is connected?

I have a really simple shell script, that just adds a route to my internal development machine. This is useful, as that machine has some LXC containers inside, so I can reach all my containers from my ...
1
vote
0answers
35 views

How can I add the user of an application to the group of another application?

I'd like to add the user of one application to the group of another so that I can read the other applications private content without doing a su every time. I can't find the adduser or the useradd ...
1
vote
0answers
604 views

Bricked chinese android

Recently I edited build.prop of my Note 3 smn9006 clone with mtk6572 for enabling navigation bar, i.e qemu.hw.mainkeys=0 and restarted. Nothing happened. Then again I tried to enable navigation bar ...
1
vote
0answers
2k views

Preventing certain WAKELOCKS (NlpCollectorWakeLock, NlpWakeLock) with shell? (e.g. pm command)

As some of you might aware of, the notorious 'NlpCollectorWakeLock' and 'NlpWakeLock' are often the cause of considerable battery drain. I personally make some custom ROMs, and would like to ...
1
vote
0answers
326 views

How to execute shell script from suid binaries

I've a rooted phone and created a root:root owned binary with suid bit set. It's supposed to be a wrapper for a shell script that needs root to work. Calling system("/system/bin/sh ./script") doesn't ...
1
vote
0answers
846 views

built in command line pager/viewer like less? Without busybox or root access

Sometimes i investigate foreign phones, where i can't root or install any Apps. But i want to examine the filesystem via adb shell, and view some text-files. Like i usually do with a *nix-shell: with ...
1
vote
0answers
395 views

Android - shell utility to perpetually disable headset device?

I have an HTC Desire HD device that has some schmutz in the wired headset jack, and the output from 'logcat' (http://pastebin.com/cNZC8Wwc) shows it vacillating between 'Headset=true' and 'Headset=...
1
vote
0answers
3k views

Flash update.img using flash_image

I want to flash a new ROM using the shell. (Need this later to do per app so there is no other way than shell). Here is what I tried connected to 192.168.1.9:5555 Pauls-MacBook-Pro:~$ adb shell root@...
1
vote
0answers
405 views

Install Bash on rooted Kindle Fire

I just rooted my Kindle Fire and installed QuickSSHd, an SSH daemon app. I can log in via SSH (using Putty in Windows 7) and become root, etc. It appears, however, that the only shell installed is ...
0
votes
0answers
33 views

External microSD R/W access problem (write works through Shell/SSH though!)

fellow Android enthusiasts! I am having problems with my device's external microSD card. The card seems to be in a read-only mode: I can't format it using my laptop's sdcard reader and diskpart, nor ...
0
votes
0answers
35 views

chroot: can't execute /init.sh: Permission denied - Error while want to start linux on Android

Introduction: I formatted a SDCard in ext4 and copied an ArchVersion on it to run it from Android like in this guide (step 7). Of course my device is rooted and I am running the following scripts and ...
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
17 views

ADB ls doesn't sort by name

Why ls in adb shell doesn't sort by name? Here is what I am getting in adb shell: AccuWeather apkfiles.com.apk.tar Amazon Shopping apkfiles.com.apk.tar GO Weather EX V5 apkfiles.com.apk.tar ...
0
votes
0answers
23 views

Adb read contents of an Alert Dialog

i have an android phone connected to my pc, using ADB i can run some commands to the device and get output, now am in a situation where i want ADB to read the contents of an Alert dialog. i have been ...
0
votes
0answers
33 views

Run script in smanager script manager fails with “no such file or directory”

I have tried to run 3g turbocharger script in my Android phone with smanager as root, but it doesn't work. The result is no such file or directory How can I get this to work correctly?
0
votes
0answers
36 views

mount in shell as user or root with different output

I have a rooted Android Phone and a native service which detects if the system partition is mounted read-write or read-only. If I run the mount command in the user shell, the partition is mounted ...
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
0
votes
0answers
23 views

Change path via script?

Currently, after I shell into my devices I run this script: #!/system/bin/sh export PATH=$PATH:/data/local/tmp echo $PATH /system/bin/sh The sh at the end of the script inherits the new path from ...
0
votes
0answers
218 views

No prompt in Terminal Emulator after failed install of SuperSu/replace KingRoot

I have a Huawei Union (y538) and rooted it using KingRoot. I then followed a guide to replace KingRoot with SuperSu. Terminal Emulator displayed some permission errors, SuperSu opened, but the install ...
0
votes
0answers
2k views

adb>shell returns “error: closed” - how to “open” adb shell access through adb sideload

my device got broken but i am still able to connect usb in the stock recovery mode. if i try to start a shell via adb while the device is in recovery mode, i fail. my terminal echos the line: "error: ...
0
votes
0answers
117 views

Overlapping data and sdcard partitions; no USB access

After making some incredibly clumsy choices in TWRP v2.8.6.0, my Xiaomi MI2S can no longer mount /sdcard when booting into the system. Storage information shows that the system spans all of the ...
0
votes
0answers
166 views

How can I run shell commands on a schedule?

I would like to be able to run shell commands on a schedule, similar to running commands from cron on Linux. The commands I have in mind are native shell script, or perhaps Python scripts, if I could ...
0
votes
0answers
50 views

How do I avoid losing root shell in rooted Android?

I have: Successfully rooted my Android 5.0 (custom ROM) Installed busybox Installed Android-Terminal-Emulator However on the command prompt, whenever I use su or /system/xbin/su, it shows the: [...
0
votes
0answers
75 views

Permission denied

[ASL] gives this error in library installations: %ANDROID%\platform-tools\adb.exe push %NATIVE% /data/local/asl-native --->RUN '/data/local/asl-native':Permission denied How can I overcome this ...
0
votes
0answers
62 views

How to read shell commands documentation in android

I have busybox installed in phone. Also, my device is rooted. I tried to use man command: $ man ls However, it returns no manual entry for 'ls'. I tried to navigate to /bin/busybox but there is no ...
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
0answers
141 views

Rooted phone no root access in bash but sh

on cm 12.1 (I know the nightlies) I experienced something very curious. at first, if I start a terminal emulator, I'm not root. I'm just the user the app is running in. so if I do echo $USER it ...
0
votes
0answers
96 views

Is it possible to start an infinite loop within init.d?

I would like to create an init.d script to control the fan of my Odroid XU3 under Lollipop 5.1.1, CyanogenMod 12.1. I already make one on linux which is working well and would like to port it to ...
0
votes
0answers
88 views

Run Bash Script from Terminal

I have modified a kernel's ramdisk to include a "settings" terminal run bash script. However, when I type in terminal su dp I get file is not found. dp exists in the ramdisk as /sbin/dp I've ...
0
votes
0answers
57 views

How can I run a file on my phone, via the terminal on my computer?

I'm doing this. There is a detailed version of what I did. Now someone suggested me to install TWRP recovery, it could be installed via the playstore, but now I have no idea on how to make android run,...
0
votes
0answers
310 views

Mounting USB in android 4.1.2

I am trying to mount USB pen drive in my old Xperia phone running andorid 4.1.2 When I connect OTG device to my phone I get an USB power consumption error. After little search I found a command to ...
0
votes
0answers
2k views

“shell has been granted superuser permissions” on non-rooted smartphone

My Galaxy S3 has just shown the blinking message "shell has been granted superuser permissions" (when clicking a Pinterest notification). The phone is not rooted and is running Android 4.0.4. What ...
0
votes
0answers
32 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
98 views

Android (S2) can't connect to Raspberry by SSH

I cant connect to my Raspberry using SSH. With my Windows/Linux-PC it works normally. I tried to connect to it with the Android Shell and an SSH-App. With both I get the message "No route to host".
0
votes
0answers
813 views

Android: how to grant 666 privs to a device via ueventd.rc

I need to access an USB camera connected to my (rooted) Android. I'm on a Samsung Galaxy S4 with Android 4.2.2. I want to access it with a normal app, so I need the device to be world readable. I can ...
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 ...