We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [terminal]

A terminal app is the way of providing a command prompt to Android devices.

Filter by
Sorted by
Tagged with
1
vote
1answer
500 views

What sepolicy context will allow any other context to access it?

I am on a bootloader locked Sprint Samsung Galaxy S7, eng boot.img flashed to phone with SELinux permissive, which gives root adb shell from where I can change system partitions, debloat, install ...
1
vote
4answers
4k views

Home screen icon for terminal program?

I'm using terminal-ide http://code.google.com/p/terminal-ide/ which is basically a terminal for android with all sorts of utilities. One is able to create bash scripts for example. Is there a way to ...
13
votes
2answers
15k views

how to run a specific app's action via terminal?

I need to run my android app from a remote computer via SSH, but I'm not a command-line expert, so I would like to know: how to run a specific action of an app? (not just open it) Which implies: how ...
5
votes
1answer
32k views

Run adb command inside the terminal emulator or programmatically without root

Is there a way to run theadb backupcommand on the device itself without using a ᴘᴄ computer ? Of course when I try to do it,adbcomplains the daemon isn’t started and it fails to find a device. ...
1
vote
1answer
1k views

How to move files to external SD card on a non-rooted Android?

I'm using the Terminal Emulator app on a non-rooted Android 5.0.2 phone. When moving files from a folder of the external SD card to another with: mv /storage/extSdCard/DCIM/Camera/* /storage/...
18
votes
7answers
27k views

Where can I find documentation for shell commands? [closed]

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 ...
13
votes
2answers
39k views

Running own executable on Android shell

I need a specific command line tool and I have made a C program in my Linux shell. I have compiled the program with an ARM cross-compiler. I have then moved the program into the Android file system ...
12
votes
3answers
35k 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 ...
3
votes
2answers
6k views

is there a way to run *.sh file by just touching it in a file manager?

I mean like it is when user opens an image file a pane opens where user can select app for given type. But when I'm clicking on *.sh file the first option that shows up is to open as text/audio/video/...
15
votes
2answers
57k views

Termux - How do I create a directory of files accessible outside of Termux?

I discovered that the files and directory that are created in (default) Termux, are not accessible to other apps on non-rooted phones. Where is the folder that Termux defaults to? How do I set it ...
32
votes
11answers
211k views

How to get hardware specs of Android device?

How can I find information on the hardware of my Android device like processor architecture, RAM, etc?
10
votes
3answers
61k views

I'd like to run Termux as root: possible?

I'd like to have an SSH, HTTP and SMB server on standard ports on my phone. There's a way to run Termux as root and have the servers run on privileged ports? Running rooted Android 7.1 on an ...
8
votes
5answers
29k views

Can I restart Bluetooth from the terminal?

I have a rooted Galaxy S 2 (I9100) and was wondering if I can restart the Bluetooth on my phone via the terminal client on my phone.
5
votes
2answers
22k views

How do i open a text file from a terminal window from within the android gui

I'm trying to open a text file from within a terminal window emulator -- but not so it opens in the actual terminal but more like I've just clicked on it. So my question is: What command can I use to ...
2
votes
1answer
1k views

How to automate command line when specific application is launched?

So basically I want to run a few line of code each time a specific application is launched and closed. Is there application which could do that ? (Busybox ?) I actually have to print it my self in ...
1
vote
2answers
26k views

How can I format a flash drive using terminal emulator?

I have a Huawei u8160 running Cyanogenmod 7.2. I've recently installed the usb host package and some time then I successfully activated the usb host mode. after that I needed to format a flash drive ...
2
votes
2answers
3k views

How can I execute a script on the SD card and be able to pass arguments to it?

I tried executing a script on the sdcard as is because on FAT, everything is 777. ./.profile ./.profile: permission denied I added this as the initial command for the Android shell and it executes ...
16
votes
9answers
16k views

Where can I obtain an SQLite 3 command line binary for Android?

When I read documentation such as examining SQLite 3 databases from a remote shell I get the impression an SQLite command-line binary should exist on my phone. Sadly I can't seem to find it on my ...
13
votes
6answers
42k views

Android terminal not able to nslookup?

Every time I try to telnet to a domain on my LG Ally it fails, but it works if I use an IP address. So I tried to use nslookup telehack.com and it returns: Server: 0.0.0.0 Address 1: 0.0.0.0 ...
12
votes
6answers
63k views

A Real Terminal (Root or No-Root)

I use KUBUNTU on my laptop, but this goes for any Linux distro. I can open a terminal window and type in things like sudo apt-get update, sudo apt-get install packagename. Is there a terminal that can ...
12
votes
2answers
45k views

Starting an activity listed under “Settings” from terminal (or adb shell)

I would like to start this activity from terminal: com.android.settings.Settings$PowerUsageSummaryActivity I tried am start -S com.android.settings/.Settings$PowerUsageSummaryActivity and this is ...
16
votes
3answers
48k views

terminal on real android device from PC

I want to run terminal on my device however the small screen is very inconvenient. I wondering if it is possible to run terminal on real android device from PC?
9
votes
7answers
25k views

Does access to logcat need root?

My device is already rooted, this is why I'm asking. Do you need root to monitor the logcat stream on the phone? If I ran the logcat command from within a Terminal on the phone, would that work?
5
votes
2answers
29k views

Compiling and running java applications from android terminal? [closed]

I recently got a bluetooth keyboard for my Motorola Xoom tablet, and upon realizing that BusyBox comes with vi for text editing I started wondering about writing and executing code on android. I ...
4
votes
4answers
24k views

Allow “unknown sources” from Terminal without going to Settings App?

I have a corrupted Settings app in CyanogenMod and have a possible idea to restore a backup of it (App and Data) in Titanium Backup. But it's currently set to not allow "unknown sources" so Titanium ...
16
votes
4answers
78k views

How can I execute command in the terminal as root?

How can I get root permissions in a terminal?
6
votes
4answers
35k views

How use Escape, directional keys on the virtual keyboard?

I recently bought Better Terminal Emulator Pro, and I like it, but how do I use the Escape key and directional keys? For instance, I'd like to switch between modes in vi or use the up and down arrows ...
5
votes
3answers
13k 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. ...
4
votes
4answers
16k views

How to see other partitions using the Terminal Emulator and mount them?

I just installed Android on my netbook and it caused it to not see Linux Mint on my machine and I'm assuming it removed it from the GRUB. Now the first problem is how do I see the contents of my ...
4
votes
4answers
16k views

Send files from Linux to Android via ssh

I want to send some specific files from my linux PC to my android device. I'd like to send it automatically using terminal commands, so there will be no drag and drop files. I don't know what is the ...
3
votes
1answer
15k views

Android shell script permissions? [duplicate]

I have a rooted phone, and I was playing around with Terminal Emulator. I tried writing a simple shell script (test.sh) : #!/bin/sh echo "Hello, World!" Then I opened terminal emulator, cd'd to the ...
3
votes
2answers
4k views

adb device always unauthorized

Im running Ubuntu 16.04 adb version Android Debug Bridge version 1.0.32 However, when I plug in my devices for testing via ADB I always get an unauthorized error. adb devices List of devices ...
3
votes
1answer
3k views

Is there a way to launch app via terminal in the background?

Is there a command to launch an app via terminal and have it start in the background? Something like the "&" in Linux...
3
votes
0answers
2k views

How can I change preferred network type through a script (or terminal command)

I'm currently attempting to create a workaround for a problem that is plaguing a ROM that I'm using. While my phone and ROM are capable of using LTE, and use it perfectly fine, the "preferred network ...
2
votes
1answer
276 views

Terminal-IDE: Is there a working wiki somewhere to discuss issues unique to this environment?

I'm trying to use the "Terminal-IDE" development environment. I think it's FANTASTIC from what I can see so far, but at the moment its promise is more than it delivers (to me at least) because I'm ...
2
votes
1answer
18k views

How to find out the UID of a given file/folder?

I have an issue with inconsistent UIDs. I would like to know how to manually find out the ID of a folder (specifically the /data partition). I think that it should be the same concept of an usual ...
1
vote
2answers
1k views

How do I turn off USB tethering or restart USB connection via computer/PC's terminal?

How do I turn off USB tethering or restart USB connection via computer/PC's terminal?
1
vote
3answers
13k views

How to set MAC address on (HTC Desire) Android terminal emulator?

I typed into the terminal this: ip link set eth0 address XX:XX:XX:XX:XX:XX the XX for my numbers and so on. But it says permission denied. Source: http://androidforums.com/incredible-tips-...
6
votes
2answers
1k views

Rootless CLI Utilities

Do I have to root my android device to install command line utilities? I would really like to run Vim, among other programs on my phone. I have no reason not to root my phone, I just want to know if ...
4
votes
1answer
9k views

How to give root access to apps that don't request it?

I've been using the app SystemPanel for some time now to archive my Android apps. It works great, but it cannot archive apps that have been installed under /data/app-private, because this directory ...
3
votes
1answer
11k views

cannot mount sdext for link2sd?

I have a huawei u8160 running Cyanogenmod 7.2. when I restart my phone I have to remount the sdext myself using terminal emulator. su mount -t ext2 /dev/block/mmcblk0p2 /data/sdext2 but now it ...
2
votes
1answer
1k views

Color Scheme with Vim on Android?

I am trying to get a "solarized dark" colorscheme to work with Vim on android. Vim itself runs, and the plugin itself runs, but the colorscheme comes out wrong. I am using jackpal.androidterm app (...
1
vote
2answers
871 views

Run 2 commands in the same line in terminal emulator

I want to execute two commands in the same line on Android terminal emulator. Example: the two commands svc wifi disable and `exit I want to create a widget to disable the WLAN and out of the ...
1
vote
1answer
415 views

How can run native executables compiled for ARM on unrooted Android devices? [duplicate]

Following this tutorial I have compiled a Hello World! ARM binary from C source using gcc. I want to run this program on my unrooted Android phone but I can't figure out an easy way to do it. What I'...
1
vote
1answer
360 views

Edit hosts file from terminal IDE with root accessed

My terminal IDE accessed root but cannot edit hosts file. root@172.16.0.151:/system/etc #vim hosts But vim just opens hosts file as readonly. Where do I missed here?
1
vote
0answers
113 views

Arduino heart rate sensor bluetooth terminal upon event command

I have an Arduino uno r3 set up as a pulse/heart rate monitor, I have a HC 05 bluetooth module set up so i can connect with my android phone, i get the reading on my android phone in a "heart rate is ...