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

1
vote
2answers
31 views

ls -b in android shell

If im not mistaking, using ls -b should output escape characters with some sort of representation, but it seems like this option isn't available. Is there an alternative, or is it impossible to have a ...
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 ...
0
votes
2answers
248 views

Installing stock Android on Galaxy S3 fails. How to see why?

I have tried installing AUT-I9300XXUGNA5-20140129183554.zip and O2U-I9300XXUGNA5-20140224162541.zip on my S3. They both fail with "Installation aborted", but I have no problem installing ...
1
vote
1answer
159 views

How can I syncronize android time with machine via ADB

How can I update android time via ADB? I know I can run this comand via windows cmd: adb shell date -s 20140414.130000 But I need to synchronize the time with my windows machine. Is this possible ...
1
vote
1answer
151 views

Transfer Files to Nexus 4 with Terminal

I want to transfer files to my Nexus 4 using the Mac Terminal. I tried to use the adb shell with adb push, but because I'm not root I'm not allowed to push to the sdcard. Is there any way to mount ...
0
votes
1answer
177 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
1answer
46 views

Serious issue of ADB auto exiting

ADB always exits by itself causing (many times) almost wiping my data folder on PC instead of /data on Android. It does this even while I'm typing commands (!) as if there is a timer that makes it ...
0
votes
1answer
154 views

Identifying an unknown Android tablet through adb/shell without relying on build.prop

I obtained a cheap unbranded tablet from a friend, without a box or anything and I need to figure out what kind of tablet it is, through software. What I've established so far is that the tablet is ...
0
votes
1answer
139 views

How can I manage “desktop” icons

I want to remove all the icons on the desktop, (and also in the bottom bar) and place new ones via ADB. My script already removes all the apps, but icons/shortcuts remanin there! Is there any command ...
0
votes
1answer
549 views

Why the file path the phone tells me ,I couldn't find in 'adb shell'?

I used my new Moto X phone, then I encountered a basic problem. It's running Android 4.4.2. I take a photo, and want to send it to my PC. The Gallery app tells me the photo is at ...
0
votes
1answer
73 views

Sending linux commands over serial

I have a question about being able to send Linux commands over a serial connection to an Android device. I have heard of putty and tried to use it, but i am ultimately lost with it. Like if I was in ...
0
votes
1answer
590 views

Can not uninstall standard Android keyboard or get it back working

I want to uninstall the standard Android keyboard com.android.inputmethod.latin. I googled and found multiple threads discussing this problem. What I did so far: 1.) Uninstall via intent -> doesn't ...
0
votes
1answer
199 views

Samsung Galaxy Note 1 /sdcard/ folder tree

Hi I am searching for the factory folder tree for Samsung Galaxy Note 1. I want the folder tree, so I can perform adb shell commands to access these directories. In a quest of recovering data. e.g. ...
0
votes
1answer
4k views

Error when trying to use adb shell in recovery mode

I have a Chinese phone which I've been unable to install ClockworkMod on. I decided to try booting into recovery mode to manually backup/restore the system partition. However, if I plug my phone into ...
2
votes
0answers
246 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
2k views

Is it possible to enable Location Services via Shell?

Is it possible to enable Location Services(GPS or Google NetworkLocation) via ADB or Terminal Emulator? I'm on a rooted Phone. Extra Points: Is it also possible to change other system-related ...
2
votes
0answers
879 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
101 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
136 views

built in command line pager/text-file-viewer? 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
126 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 ...
1
vote
0answers
207 views

How to switch off HDMI

I have an android box with a HDMI port. Im connecting it to a projector. To the same projector Im also connecting a PC via VGA cable. Now I want to give my box a command to switch off the HDMI port, ...
1
vote
0answers
2k 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 ...
1
vote
0answers
304 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
41 views

Why do some keyevents not working in Tasker on my device?

I've found that at least following keyevents don't work: 61 KEYCODE_TAB 22 KEYCODE_DPAD_RIGHT They work from adb shell and Hacker's keyboard but not from Tasker =/ Shell script contains only "input ...
0
votes
0answers
285 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 ...
0
votes
0answers
16 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
136 views

shark (sniffer) cannot find shell commands

when I am trying to run shark it say: tmp-mksh: <stdin>[1]: tr: not found tmp-mksh: <stdin>[1]: cut: not found tmp-mksh: <stdin>[1]: killall: not found tmp-mksh: <stdin>[1]: ...
0
votes
0answers
99 views

How do I connect an existing VPN connection on my Android device using adb?

Under Wireless & networks > VPN I have an existing profile for an L2TP VPN. I'd like to use adb to connect (and disconnect) that profile from the command line. It would looks something like ...
0
votes
0answers
53 views

Polling JavaScript from shell script in Android?

I want to measure the real, system and user time for running a web benchmark (1). It basically runs some pre-stored site data emulating basic human interaction. It contains index.html, results.html ...
0
votes
0answers
46 views

How can I detect if a shell script is running on Android?

What is the most reliable way to detect if a script is running on Android (instead of a regular Linux build)? To run scripts, I'm using bash, the Terminal app, and BusyBox.
0
votes
0answers
27 views

Trigger sync of calendar/addressbook remotely

I would like to trigger the synchronization of calender and address book on the command line (using an adb command or a script). The background is that I have set up my own caldav and carddav server ...
0
votes
0answers
51 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
97 views

How to stop Android shell from echoing control characters?

When I su to root, any control character that I type is echoed by the Android shell. For example, when I type "ls /sd" followed by a tab, instead of displaying the default tab completion of ...
0
votes
0answers
341 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 ...