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

0
votes
1answer
13 views

Samsung Galaxy Tab 2 10.1 rmnet0 interface non existent

I was wondering, why in my Samsung Galaxy 2 tablet I can't see any rmnet0 interface after executing: adb shell cat /proc/net/xt_qtaguid/stats Or: adb shell netcfg I know this a wifi only device, ...
0
votes
1answer
57 views

how to take complete backup of my android device using adb

I'm trying to take full backup using adb backup -all -f <path> and it took backup and stored in my PC. When I try to restore it using adb restore <path> then it restores onto the target ...
0
votes
0answers
14 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 ...
-1
votes
0answers
24 views

i can't execute bash commands and more permissions of super user

I could not execute many Bash commands in the shell and I could not change the content, change the permission or paste file to many directories, example: /usr/bin – even when I ran it as root. I think ...
0
votes
1answer
16 views

How to check if a package is enabled via shell?

I have been writing a tasker task to enable/disable a package. I know adb shell pm enable com.android.contacts will enable the package and adb shell pm disable com.android.contacts will ...
0
votes
1answer
16 views

Can I launch a shell script from home screen?

There's one tweak of my phone I'm applying/removing through two some pretty simple shell scripts. But going to terminal emulator and typing the script names each time aside, the tweak actually makes ...
1
vote
0answers
23 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 ...
0
votes
0answers
16 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 ...
1
vote
1answer
34 views

Is there a non-app tool for batch backup of APK files?

Just as the other times, an answer to my question shall not contemplate an app from either the Play Store, or any other source. What I'm after, is a tool capable to backup user apps, system apps or ...
0
votes
1answer
46 views

Getting absolute path with “ls” command

Is it possible to output the absolute file path when executing ls -l on Android (e.g. via adb shell or in a terminal app)? Here is the output I get from ls -l /etc/ (I have root access): E:\Dropbox\...
2
votes
1answer
260 views

How to kill dhcpcd?

The following command works perfectly to start DHCP: # dhcpcd -p eth0 DHCP cannot be stopped once it is started. The following command does not work: # dhcpcd -k eth0 It returns the following: ...
0
votes
0answers
30 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?
1
vote
1answer
78 views

Is there a shell command to open Ethernet settings?

To open the Wi-Fi settings, one can use the following command: # am start -n com.android.settings/.Settings\$AdvancedWifiSettingsActivity Is there a similar command to open the Ethernet settings ...
0
votes
0answers
32 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
1answer
56 views

How can I get shell access on my almost dead phone

My phone broke, so I have been messing with it and from the errors I can see, it looks like all the system folders are missing. /system /data etc. I saw a YT video where the guy used ADB shell to ...
1
vote
0answers
90 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?
3
votes
0answers
43 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 ...
1
vote
2answers
84 views

Does “ifconfig wlan0 dhcp status” work for Android?

I cannot get any response from an Android device (Android 4.2) to command "ifconfig wlan0 dhcp status" Command "ifconfig wlan0" returns the following: wlan0: ip 192.168.0.14 mask 255.255.254.0 flags ...
0
votes
1answer
91 views

Help! Renamed /system/bin/sh to sh.old.bak, lost root, can't rename, no nandroid backup

I did something incredibly stupid today. I renamed /system/bin/sh to /system/bin/sh.old.bak on my rooted Huawei y536a1 running 4.4.3 KK. I was going to install a app I thought might overwrite it ...
4
votes
3answers
600 views

Run downloaded shell command without root?

My phone is a Galaxy S3, not rooted. I have "ES File Explorer" and "Terminal Emulator" installed. I downloaded an Android build of 'wget', intending to execute it from the Terminal Emulator app. ...
3
votes
0answers
227 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 ...
1
vote
0answers
83 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 "...
0
votes
0answers
79 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 ...
1
vote
1answer
477 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
190 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: ...
-2
votes
2answers
82 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....
0
votes
0answers
103 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 ...
1
vote
0answers
312 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
votes
1answer
57 views

Shell command for going to home screen HTC LTEVO

I am using this app that unlocks/locks your phone when you cover it, but whenever it unlocks, it opens up the app. I am trying to use automatit pro to run a shell command to go to homescreen at screen ...
2
votes
0answers
61 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 ...
0
votes
0answers
134 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
47 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: [...
-1
votes
2answers
50 views

Invoking in the terminal

I have downloaded Python 3 and a terminal emulator. But when I type python3 in the terminal, it says "not found". How do I run the python interactive shell inside the terminal?
0
votes
0answers
67 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 ...
2
votes
0answers
9k 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.
0
votes
0answers
54 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
2answers
703 views

How to pull mmcblk0 to a windows pc?

So here is what i want to pull : mmcblk0 whith it's size 15.7 GB. C:\adb>adb shell shell@android:/ $ su su shell@android:/ # fdisk -l /dev/block/mmcblk0 fdisk -l /dev/block/mmcblk0 Disk /dev/...
0
votes
0answers
751 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
772 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
1answer
176 views

Issuing adb shell commands with arguments

So I can issue a shell command on my GalaxyS5 device using this: $ adb shell run-as com.steenriver.littlecrane 'sh -c pwd' /data/data/com.steenriver.littlecrane $ adb shell run-as com.steenriver....
0
votes
1answer
342 views

Automating adb commands

is there a way to run adb shell commands via windows? I would like to run a batch script such as this adb shell mount -o rw,remount /system exit Currently when i run the batch script it only ...
0
votes
0answers
126 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 ...
1
vote
1answer
110 views

Deleting 'infinite' recursive directory

I created a new folder inside /sdcard/ and something went wrong with it since other 600 sub-folders (one inside the other) were created as well. I noticed the problem when trying to rename the 'main'...
2
votes
1answer
77 views

Shell .profile or /etc/profile for old android 2.3.3

Just rooted my old phone with Android 2.3.3 and I would like to define some aliases for each shell I start (with adb or terminal app). I found this question where one answer says that /etc/profile (=/...
1
vote
1answer
242 views

SQLite database operation from Android terminal

I want to do SQLite command like sqlite3 myDb.db, or do other SQLite command from Android shell, like Terminal Emulator or something else. I have tried googling for these, but no luck. Is it possible ...
1
vote
1answer
122 views

How to run 2 shell scripts from ramdisk?

I am attempting to setup my ramdisk to fire off 2 sets of scripts. 1 is ramdisk /sbin only, the others are user allowed scripts # Check Properties on property:dp.early_init.done=1 chmod 0777 /...
0
votes
0answers
86 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
84 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 ...