Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
0answers
17 views

Android Terminal does not work immediaely 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
18 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
9 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
47 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
107 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
21 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
93 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
47 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
139 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
90 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
96 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
110 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
233 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
1answer
344 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
44 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
490 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
428 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
127 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
423 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
78 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
30 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
153 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
86 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
69 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
62 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
22 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
42 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
42 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
58 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
110 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
3k 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
46 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
309 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
46 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
361 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
244 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\...
0
votes
0answers
736 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
745 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 ...
0
votes
1answer
1k views

App keyboard has a done button instead of return

Terminal emulator usually has a return button that works fine. But after opening another app then going back to terminal emulator the return is replaced by a Done button, that obviously doesn't work. ...
0
votes
1answer
33 views

My phone is going silent every day at 08.00 PM. Can't disable

I have Android 4.4.4 and once (or maybe after playing with settings) it started to go silent at 08.00 PM every day. And morning it is going back (usually I am doing it manually earlier). In settings ...
0
votes
1answer
592 views

Installation of R packages in Termux app

I having trouble installing 'curl' , a R package in Termux app. Without that, I can not install the much acclaimed tidyverse package in R. Whenever I tried to install 'curl', it spits out ...
0
votes
0answers
83 views

/system/xbin/custom-command cannot be found

Originally I copied a shell command file to /system/xbin/ as custom-command and it worked, meaning when I am in terminal emulator, I could type custom-command and it runs. What I did was simply ...
0
votes
1answer
630 views

Moving files with Terminal Emulator 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/...
2
votes
1answer
741 views

How to get router's ip aka gateway in Android's shell?

In a normal linux environment we can do gateway=`netstat -rn | grep ^0\.0\.0\.0 | awk '{print $2}'` or gateway=$(netstat -rn | grep ^0\.0\.0\.0 | awk '{print $2}') but since Android's busybox/...
1
vote
2answers
440 views

Why does adb shell have higher permissions than common terminal applications?

For example you can write to /data/local/tmp with adb shell but not a common terminal application. Why is that?
0
votes
0answers
1k views

/system not found in proc/mounts : terminal android

I'm facing this issue with remounting /system partition. Here is the command I'm working with. mount -o rw, remount /system mount -o rw, remount system And the error I'm getting is, mount: /system ...
1
vote
2answers
2k views

Update Nexus 7 to a Nougat ROM

I have an old Nexus 7 (picked up from I/O 2012) that got unbearably slow after an OTA upgrade to Android 5. After seeing hints from early adopters that Nougat is serviceable on this device, I decided ...