Questions tagged [terminal]

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

Filter by
Sorted by
Tagged with
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
1answer
1k views

Terminal emulator in android just hangs when I type su?

I'm fairly new to Linux so sorry for my noobiness. Anyways I just wanted to check that my phone was rooted since I need an app that requires it to be rooted, but nothing happens in the app. I wanted ...
1
vote
0answers
451 views

what's the difference between mount point /sdcard & /sd-ext in recovery.fstab

This is the recovery.fstab # mount point fstype device [device2] /boot mtd boot /cache ext4 /dev/block/mmcblk0p39 /data ext4 /dev/block/mmcblk0p40 /...
2
votes
1answer
464 views

Can a Terminal Emulator on android do everything that a terminal on linux or mac does?

I downloaded a couple terminal emulators onto my android phone and wanted to know what the limitations on them are. Is there anything that a terminal can do the emulators simply cannot?
1
vote
0answers
114 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 ...
1
vote
1answer
378 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?
9
votes
4answers
11k views

Accessing termux user environment from other consoles

I've recently started using the amazing Termux terminal app and linux environment. It provides a wealth of full-function terminal utilities. It would be great to be able to access these utilities ...
19
votes
3answers
59k views

No permissions for Termux to access internal storage - even for reading

Using the termux (https://termux.com) terminal-emulation program, I type the following command: ls /sdcard I get the following error: ls: can't open '/sdcard': Permission denied Realizing that the ...
1
vote
2answers
924 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 ...
2
votes
1answer
5k views

How to turn off screen of android with terminal emulator?

How to turn off screen of android with terminal emulator? I am using Android 5.0.
1
vote
1answer
375 views

List main CPU consuming processes since boot

How to list the 10 main CPU-consuming process, not in instantaneous CPU usage %, but rather in CPU usage since boot ? i.e. : a process that peaks at 50% CPU during 10 seconds won't be listed a ...
5
votes
2answers
1k views

How to write android shell history to file

Using Terminal Emulator for Android, is there a way to enable a persistent command history? So far, I've tried the following: initial command of export HISTFILE=$HOME/.mksh_history user mksh profile ...
1
vote
0answers
2k views

I can't remount /system as rw. I get an error message: mount: Read-only file system

I'm using a rooted Huawei G7 and i'm trying to install BusyBox, but I keep getting an error. I'm 100% sure this error is because there is some weird write protection on /system. I know this because ...
3
votes
2answers
5k 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 ...
1
vote
1answer
5k views

Reason for chroot failure: tmp-mksh: chroot: not found

Introduction: I formatted a SDCard in ext4 and copied an ArchVersion on it to run it from Android like in this guide (step 6). Of course my device is rooted and am running the following scripts and ...
1
vote
1answer
8k views

How to find out sd card partition in dev/block?

In order to mount an ext4-formated sd card in Android I followed this guide. In the bash script msd2.sh is followking command: mount -t ext4 /dev/block/mmcblk1p1 /storage/extSdCard && sleep ...
1
vote
0answers
95 views

Detect when “settings” command in terminal has finished saving

When I execute the following command, it doesn't save anything: settings put global <KEY> <VALUE>;reboot I think it's because it does not have enough time to save the value, because it ...
0
votes
1answer
1k views

How to open an URL in Chrome Incognito Tab by launching the Incognito Activity?

Is there any way to open a link in Google Chrome's Incognito Mode from the Terminal ? I tried this but it didn't work: am start -n com.android.chrome/com.google.android.apps.chrome.document....
0
votes
2answers
2k views

Can android device issue adb commants to itself?

I made a simple shell (actually windows batch) script that automates a task on android phone. It can be ran on any computer. I thought that if I convert the batch to linux sh script, I could issue the ...
1
vote
2answers
2k views

Change wallpaper via ADB/terminal

Is there any terminal (ADB) command for Android to change the launcher wallpaper?
0
votes
2answers
6k views

Downloading and installing the DEBIAN ARM packages and installing them on Termux?

Ok, so I was looking for a terminal emulator for android and I found Termux. Then I discovered that it has "apt-get" as a package manager and I played around with it and installed a few packages. Then ...
2
votes
0answers
2k views

Using Remix OS(Android-x86) terminal shell to turn off the touchscreen

I have recently installed Remix OS on my PC, and now it's like a craze. Nothing worked. I always think it was the problem with the touchscreen, because EVERY operating system I used on my PC, the ...
5
votes
1answer
34k 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. ...
-3
votes
1answer
101 views

When using a terminal emulator why are there so many normal Linux commands that do not work?

There are a lot of standard Linux commands that do not work from a Terminal Emulator in Android. I thought Android is based on the Linux kernel, but it lacks so many functions, like man groups find ...
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. ...
0
votes
1answer
240 views

Is it normal for a USB OTG converter to show in lsusb

When running lsusb (not as root) with an OTG adapter plugged in without anything plugged into it I get : u0_a83@flounder:/ $ lsusb Bus 001 Device 001: ID 1d6b:0002 Bus 002 Device 001: ID 1d6b:0002 ...
2
votes
0answers
2k views

Is it possible to change values in build.prop without editing it?

I want to change the line ro.build.type from user to userdebug in /system/build.prop to enable multiwindow. But this modifies the /system partition and will prevent OTA updates (and some apps) from ...
3
votes
1answer
1k views

Can I use the file command on Android?

The UNIX file command, which tells you what is inside a file, is seemingly not available either in Busybox or the system directory of Android. Is there any way to run file on Android? (via Terminal ...
0
votes
2answers
3k views

su command not working, eventhough I am rooted

My problem is that my rooted android phone with Terminal Emulator app doesn't seem to be executing the 'su' command correctly. I am trying to execute this command, after having executed the 'su' ...
3
votes
1answer
2k views

Real root can not change any thing on /system original files!

On my rooted device running Android 4.2.2, I have following tools installed: Terminal Emulator BusyBox Free On Terminal Emulator, su command successfully changes user to a real root: root@hwH30-U10:...
-2
votes
2answers
682 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....
2
votes
0answers
345 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
1answer
2k views

How to search in files content using terminal emulator?

I have tablet with android 4.4.2. The tablet is rooted. I want to search for a string in the files in the whole file system. I tried to use the 'find' command but it didn't work. What command i can ...
-1
votes
2answers
161 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?
5
votes
1answer
5k views

How to get battery status in terminal?

I have gingerbread(2.3.6) phone with dropbear installed. I usually access my phone over wifi & run commands in putty. I want to get Battery status & percentage in terminal. Is there any ...
0
votes
0answers
181 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 ...
3
votes
1answer
509 views

How do I enable a keyboard if I can't open Settings?

Apologies for the long story, feel free to skip. :) So I goofed up pretty amusingly the other day. I bought a $10 LG Optimus Exceed, rooted it with Towelroot, then downloaded the jumobile System ...
0
votes
0answers
311 views

ADB version of these terminal emulator instructions?

I have the "Insufficient storage" bug on my Moto G X1032. This answer fixes it with the terminal emulator app, which i can't install. They recommend performing the following commands in adb if that's ...
1
vote
1answer
3k 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 ...
7
votes
1answer
16k views

How to check my phone hardware specs on Android terminal emulator

I was wondering if there is a command to check the hardware specs of my phone. I just installed the Android terminal emulator. I've tried the 'lshw' but it does not work. Thanks in advance.
0
votes
0answers
236 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 ...
3
votes
1answer
2k views

Launch app with UI in background

Is it possible to start a regular app – with a GUI – in the background, without displaying its UI? Also, it needs to be launched from the shell terminal, not from java. What I'm using currently: am ...
2
votes
0answers
3k views

Error `ssh not found` in terminal Android

I'm trying to use ssh in the app Terminal Emulator in Android, but it gives me the error /system/bin/sh: ssh: not found. This is strange to me, since I also use ssh in the apps AndFTP and SSH Server ...
2
votes
2answers
468 views

I have a Samsung Galaxy S Relay with a physical keyboard; how can I remap a spare key to send Esc?

I have a Samsung Galaxy S Relay running Android 4.1.2; it's an unusual phone because it slides open to reveal a built-in physical keyboard. The keyboard has no Esc key. It'd be nice to have one, so ...
1
vote
0answers
235 views

How to use my android smartphone to call a distant modem?

I have a domotic app using a modem on a RTC line and would like to connect to the modem with my smartphone as I can do with my PC through Hyperterminal. Is there a means to do that, using the phone ...
0
votes
2answers
1k views

Opening an html file located in Terminal IDE working directory

For some reason I am producing some html files from Terminal IDE. However I can't seem to open any of them located in the working directory. Say we have /data/data/com.spartacusrex.spartacuside/files/...
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 (...
0
votes
1answer
2k views

How to launch apps from terminal

In linux I like to launch the applications from the terminal. Most of the time it is the fast way to launch apps especially on repeated use. In android there are good launcher like Fast app search ...
1
vote
3answers
1k views

Set/Get value of variables in '/proc/sys/net' using terminal

consider these values which are stored in their respected files in this path: /proc/sys/net /core/rmem_default 32768 /core/rmem_max 65536 /core/wmem_default 32768 /core/wmem_max 65536 /core/somaxconn ...
0
votes
2answers
4k views

Root commands on terminal emulator not working system-wide

I want to run the following command as root in the Android Terminal Emulator. mount -o bind /storage/extSdCard /data/media I have tested this on a Samsung Galaxy S3 running CyanogenMod 11 and it ...