Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [terminal]

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

0
votes
1answer
30 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
votes
0answers
16 views

Android Terminal disabled for ~2 minutes after booting phone [duplicate]

After booting my Android mobile phone, jackpal.androidterm terminal app does not prompt. It just remains a black screen. All other apps start as usual. In addition, the window number ("Window 1") is ...
0
votes
0answers
16 views

What sepolicy context will allow anything to run it?

I know using root you can chcon a file/directory. What is a context that will allow any other context to execute that file/directory? I am trying to execute something without root, but unless ...
0
votes
0answers
10 views

Netstat -l -p stop working when I'm root

I need to know why this process named "camera test" in Nestat plus (though I can't find this name in the lsof log) is listening some ports it is the first four processes after netstat -l-p in the ...
0
votes
0answers
18 views

Problems in Local Terminal in Android's Developer Menu

I am currently having a problem in my Android 9's local terminal from the developer menu, where keys such as $ are turned into their counterpart in the QWERTY keyboard without pressing shift (for ...
-1
votes
0answers
10 views

Why doesn't Android Terminal work [duplicate]

Right after starting the Android device and opening the terminal, there is no prompt or keyboard, just plain black. It also does not indicate “Window 1”. Also noticed: Screenshots also do not work ...
0
votes
0answers
27 views

Android Terminal: Vibration command?

Which command in the Android Terminal can be used to vibrate? (for a custom length such as 50 milliseconds) I would like to integrate vibration feedback into a shell script. Maybe I need permission ...
1
vote
0answers
71 views

User names in an android shell

I am trying to find a way to determine the user name of the current shell user from within a shell / terminal on an android device. The android environment that I have in /system/bin and /system/xbin ...
0
votes
0answers
16 views

How to press & long press the “back” key with a terminal command?

We manage Zebra Mobile computing units running on Android 6.0 Marshmallow through an MDM. For some reason, the MDM interface doesn't show the Android buttons at the bottom of the screen (back, home, ...
1
vote
0answers
38 views

Android Terminal does not work immediately after reboot

jackpal.androidterm does not work immediately after starting the phone. Instead, it first just shows a blank screen. Then I need to wait around 20 to 60 seconds. Then, the terminal's prompt is ...
0
votes
0answers
28 views

Path to sensors and GPS data? (for Android Terminal)

For battery information, the path is /sys/class/power_supply/battery. What is the equivalent path for barometer (hPa), brightness sensor (lux) and GPS speed, altitude, latitude, longitude, accuracy?
0
votes
1answer
60 views

Send data via Bluetooth to Serial

I have an application running on Win that the JavaScript would capture the string from a webpage and wake up the cmd, cmd would have the parameter as below. bridgetool.exe -c serial -p com1: -b ...
2
votes
1answer
103 views

How to use lsof, netstat and ps commands with complete options on Android?

I tried T-ui and although it has the lsof command, it cannot do lsof -i for example, so I need to go through every single process in Android. My phone is rooted and I wanna know the PID of the process ...
0
votes
2answers
330 views

Is it possible to have temporary root access on termux or any other terminal without rooting your android phone?

I would like to know whether it is possible to be able to have a temporary root access to an android phone using a Termux or any other terminal in the same way that ubuntu does without rooting your ...
0
votes
0answers
30 views

Android Terminal volume keys do not send keyboard strokes

The volume keys in jackpal.androidterm do not emulate The terminal shows > or < while pressing the keys respectively, yet when pressing Volume Down + C, the Ctrl+C does not get sent to the ...
0
votes
2answers
256 views

how to change the Mac address without rooting your phone

I do have a Samsung Galaxy J5 2016, and I am trying to change its MAC address without rooting it. I've done a lot of internet search, and I've come across many useful guides and advice, such as ...
1
vote
1answer
116 views

Where can I get more information on the sm tool (command) used in the Terminal

I have seen the sm tool used a few places for example here. The way I understand it, it is a storage management tool but I haven't been successful in finding any more info about it. Where can I find ...
2
votes
0answers
800 views

Package installation in Termux

I'm reading this guide that describes how to install the statistical language R on Termux. My installation journey is briefly outlined below. I need to determine why nothing happens at Step #2 ...
0
votes
1answer
214 views

Possible to remap `Esc` key to `Caps Lock` on a bluetooth keyboard

Samsung Galaxy Note 9 with any old bluetooth keyboard. How do I remap the Esc key to Caps Lock? And remap the Caps Lock key to Esc. Swap them basically. I need this to make it easier to use Vim on ...
1
vote
0answers
226 views

Termux says file does not exist but it does

A while back I installed nano on Termux and it worked fine, but when I accidentally tried to copy a file into a nonexistant directory at nano's location, nano wouldn't run. I checked and the ...
0
votes
1answer
227 views

How can i mount all partitions of harddisk in android x86?

i installed android-x86-4.2-20130228 as a live but does'nt read my partition of my hardisk i tried with Paragon UFSD Root Mounter but not work good in 4.2.2 and es explorateur does'nt read any ...
-1
votes
1answer
769 views

Enable debug terminal in android x86

I download android-x86-4.2-20130228 from https://code.google.com/archive/p/android-x86/downloads and run it as live daul boot with windows i try to root it with Android-x86-RootScript but the ...
0
votes
2answers
499 views

Permission denied when working with/without “su -c” in /cache

I am trying to issue this command adb shell "su -c echo 'boot-recovery' > /cache/recovery/command" //OR// adb shell "echo 'boot-recovery' > /cache/recovery/command" outputs the same: /system/...
0
votes
1answer
119 views

How to change font scale from Terminal

I know these two commands to change density and resolution via Terminal: wm density <dpi> wm size <resolution> But how do I change the scale of system-wide font via Terminal?
1
vote
2answers
775 views

How can I run a python script in terminal emulator?

I tried running a python script in terminal emulator (app) with "./script.py" and I get an error saying "permission denied" so I googled how to do this and it said I have to download a file called ...
0
votes
0answers
605 views

Change Resolution of HDMI output (USB-C / Slimport)

I have been working on this problem to avail I want to change the screen resolution of my EXTERNAL monitor connected to my android phone. Phone is android 7.0 LG v20, and I am using a USB-C Hub with ...
0
votes
2answers
218 views

How to do GREP text searching without root?

There is busybox and there are terminal emulators that include grep, but they require root to run. It would be better if they could also run without root but with limited access. I only need to grep (...
0
votes
1answer
597 views

Immersive mode in Termux?

How can I enable immersive/fullscreen mode in Termux? I want to hide the bars at the top and bottom of the screen so that the entire screen displays the terminal. In summary, I'm looking for either ...
1
vote
1answer
82 views

How do I change the factory settings that an Android device reverts to?

'm looking to change some of the default settings that a device reverts to such as language, timezone, resolution. Is there a way to do this through the terminal assuming my device is rooted?
0
votes
0answers
33 views

Duplicated Enter key in BlueStacks?

I run a few terminal emulator apps and they all seem to have a problem: whenever I press Enter, the terminals receive three characters \r\n\n. Since it's a common issue for various terminal emulators, ...
0
votes
1answer
208 views

How to use GNU Root Debian from android terminal emulator?

I install GNU Root Debian on my android. Also i install jdk8. I can compile java programs. For example i can get java version. cd /data/data/com.gnuroot.debian/debian/usr/java/jdk1.8.0_181/bin ./java ...
0
votes
0answers
123 views

Running commands operating on files always results in permission denied errors

When I try executing commands operating on files, they always fail. I can't check permissions on the terminal because I'd have to run a command that operates on a file (directory) in order to do so. ...
0
votes
0answers
78 views

Linux/Android Segmentation Fault mpv

Recently I've been experiencing problems when trying to listen to online radios through the android terminal. Here's the code: $ mpv "http://strm112.1.fm/chilloutlounge_mobile_mp3" Playing: http://...
0
votes
1answer
65 views

After programmatically setting the resolution through an app, how can I make the device remember the new setting?

So I'm setting the resolution by editing system files. This has been the only way that works for me. More preciesly I issue this command: echo 1080p60hz > sys/class/display/mode to the device's ...
0
votes
0answers
24 views

How to create a new block partition in android?

I'm having a Nexus 4 and I want to make a new block partition a "/cust" with 256MB and so I want to do some experiments on it.
1
vote
0answers
56 views

Termux android usage for linux based work on the go

Any tutorial to lear termux commands??? for termux-ubuntu package, to perform allmost all the linux based work on android.
0
votes
0answers
47 views

How to register on alarmmanager from shell

I want to take pictures at a list of given times with terminal emulator on Cyanogenmod 4.4 . I couldn't find an app to do that (without draining battery), or manage to start a script over adb and ...
-1
votes
1answer
73 views

Closing zygote and seeing simple interface

Can i'm close zygote on my phone and see "terminal"? If i'm closing zygote with killall zygote my phone just rebooted and graphics interface starts again.
1
vote
0answers
122 views

How to manually activate download manager process via adb or terminal emulator?

Playstore relies on a process called download manager embedded in Android OS, yet it cannot be manually activate resulting in prolong wait time when using secure proxy to download playstore apps. What ...
0
votes
3answers
4k views

How to run “parted” command in terminal emulator on my android smartphone

Updated question (2018/2/20) Thanks to grawity's answer and comment, my question can be updated. My final goal is to acquire detailed partitioning information (including the start and end address ...
0
votes
1answer
57 views

scp for “Material Terminal”

OS: 5.0 Lolly-pop Device: Samsung Galaxy note 3 Using the terminal emulator "Material Terminal" is it possible to add an ssh command scp?
0
votes
2answers
44 views

Ran :(){ :|: & };: on my android device!

So I was seeing dangerous command in linux and I found a command which seemed funny: :(){ :|: & };: So I ran it on my Samsung Galaxy A7 term non-rooted phone and guess what it hung immediately. ...
0
votes
0answers
397 views

Backup and restore Android app data with Terminal Emulator (rooted) [duplicate]

What is the right or the best way to backup and restore android app data by terminal emulator in a rooted phone? su -c cp -r /data/data/the.app.id /sdcard/the/backup/directory can copy the app data, ...
0
votes
2answers
50 views

How to “fetch v8” on Android phone?

I have installed Termux on my phone(Android 7), then I installed git then git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git, then export PATH=$PATH:/data/data/com.termux/files/...
0
votes
1answer
409 views

Can I run a Linux executable on Android?

I wondered if it is possible to run a Linux executable on Android so I made a simple console application in Code::Blocks in C++ (I am using Ubuntu Linux), built it in release mode and copied it into a ...
0
votes
0answers
271 views

Unable to get the command prompt after sending a process to the background

I am using the Terminal of Android studio 2.3.3 ona Windows 7 64 bit machine to which a tablet is connected. While conducting a test on a mobile app, I can get logs which I can get with C:\path\to\...
1
vote
0answers
930 views

How to get wget on my non rooted Android device

I installed an app from the Play Store called Material Terminal. It allows me to enter Linux commands and run them such as: cd, mkdir, touch, etc. I wonder if it is possible to get the wget command ...
1
vote
1answer
2k views

Android Terminal error (file 64-Bit ELF)

So, I need to have the program 'objdump' on my phone thought I can just copy it from my Linux box to my phone and everything will be fine. But after I copied it with adb in the terminal it says sh: /...
1
vote
0answers
839 views

Change shown username and hostname in terminal emulator

I am usong Sony Xperia Z3 6603 with latest available android. When using the Terminal Emulator, by default, the shown username@device is some random jibberish@D6603. Copy below: u0_a218@6603 I have ...
1
vote
1answer
1k views

(Android) Launch app activity shortcuts from the command line?

I'd like to know how would it be possible to launch an action "shortcut" (like Greenify's auto-hibernation shortcut) through the command line in Android. I'm trying to launch a StrongSwan VPN ...