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

24
votes
4answers
85k views

Where in the file system are applications installed?

I have installed a few Android applications both with the adb install MyApplication.apk command and via a webserver (like an alternative to Android Market). But where in the Android file system on my ...
4
votes
3answers
4k views

Broken Screen + Using adb shell to run vnc server

I have an HTC HD2 with a completely busted screen, I tried repairing it with a replacement screen but broke the ribbon cable to the screen (oops) sad day, I've got two of these and I've been running ...
11
votes
4answers
24k views

How can I flush the DNS Cache?

How can I clear my DNS cache on my android phone? (Droid3, Gingerbread, rooted to be specific) Ideally I'm looking for a command to run through a terminal emulator, something similar to ipconfig ...
13
votes
2answers
14k views

What useful Android Shell commands do you know? [closed]

There are questions pertaining to the use of the Android Shell or to finding a documentation of the Shell commands on Android. Since I haven't found anything convenient, I would like to use this ...
18
votes
4answers
1k views

How can I use shell commands and interact with the Linux system underneath?

Android is based on Linux and has a Linux kernel underneath. Is there any way I can use shell commands and interact directly with the Linux system? E.g. A shell app that has access to the Linux ...
19
votes
3answers
42k views

How can I run a script on boot?

I'm accustomed to running scripts on boot in Linux, but I'm not sure how to do this in Android. I'd like to start my SSH daemon on start, so I'll always be able to connect. How can I run an arbitrary ...
0
votes
1answer
130 views

How to launch Google Keep from shell?

Using command from http://learnandroid.blogspot.in/2008/01/run-android-application-from-command.html I want to launch keep from shell.
9
votes
2answers
5k views

Can I change some Android settings from the command line?

I would like to activate "USB tethering" from within a bash script, so is there any possibility to run a command line with adb shell to change some Android settings ? Edit1: The following command ...
8
votes
5answers
11k views

Where can I find documentation for shell commands?

For using a shell commands through a terminal program, where can I find documentation or help or man pages for the commands as implemented in Android? While it would be nice to have them on the ...
2
votes
3answers
14k views

Android ADB Shell Recovery Mounting

*Question: I need assistance mounting an Android phone's internal data using the Android ADB Shell while the unit is connected via USB and in recovery mode. How do I form a proper mount command? See ...
7
votes
1answer
6k views

What's the best way to restart Android via command line (remotely)?

I'm looking for the best / friendliest way to reboot my rooted android 4.1.1 device. I found these solutions so far: su -c "reboot" - Causes problems with wifi after restart on my device... I read ...
6
votes
1answer
2k views

Is there a way to list the local dns cache?

I would like to get a list of my current cache on my phone, what is the command to issue in order to retrieve that list ? I would like to get a command and not an app that does that, since i want to ...
3
votes
2answers
4k views

Can i mount loopdevice in Android?

I have rooted my android phone and get a shell thr adb. I wanna mount a ROM image in android. But I always fail: mount -o loop /sdcard/myimage.img /mnt mount: can't setup loop device: No such file or ...
3
votes
2answers
3k views

How to mount a ext2 partition in sdcard

I don't want to use fat32, I want use the more stable ext2.
1
vote
2answers
1k views

How do I view/mount nandroid file on device?

From Android's terminal, I tried to mount a nandroid img: losetup -f gives "/dev/loop0". However, when I try losetup /dev/loop0 /sdcard/nandroid/... data.img it says no such directory. Same thing ...
5
votes
2answers
8k views

adb “Permission denied” to run a “./configure” file

I need to run a configure file into my android phone so I think the best way to do this is to use the adb shell command. I'm running an Android emulator onto a Windows-7 platform, and there I'm ...
4
votes
3answers
3k views

Can I connect to a shell from a PC to my Android using bluetooth or USB?

I want to run some commands on my rooted android phone. It is not very practical to interact with a shell using the touch screen, therefore I wanted to run a daemon on it and connect to it from a PC. ...
2
votes
1answer
516 views

`adb shell ime list` commands - Please clarify!

What do the following two commands mean adb shell ime list -s adb shell ime list and why don't the return anything at all? See code below: aneesh@nb-14:~$ adb shell ime list -s aneesh@nb-14:~$ adb ...
2
votes
0answers
240 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 ...
1
vote
2answers
6k views

can't use adb shell in recovery mode

I have a china tablet named Quest. I have accidentally repeated pattern lock more than 5 times. Now I have also forgotten the email address. So for a factory-reset of my tablet I simply booted it ...
0
votes
1answer
70 views

Flaw in `adb shell ime list -a`?

I wanted to understand how to work with IMEs. More precisely, I was trying to figure out how to disable in a single command one can disable all the input methods so that the hardware keyboard takes ...