Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [terminal]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
430 views

How to run Python 2 and Python 3 CLI programs on Android 14 phones?

It looks like all the methods which used to work for running Python 2 and Python 3 CLI programs on Android phones is now outdated: SL4A QPython Termux + python packages I can't believe we can't run ...
Fetchinson0234's user avatar
0 votes
0 answers
53 views

Starting service with su -c "start vendor.diag-router" in SeLinux enforced mode gives error

While being in enforced mode i ran below in Termux: su -c "start vendor.diag-router" which gave me output: Unable to start service 'vendor.diag-router' See dmesg for error reason. In logs ...
gurmel singh's user avatar
0 votes
0 answers
49 views

Terminal - restorecon -R isn' running recursively

Device info: I'm running Phh-Treble GSI Android 13 on a Lenovo TB-9707F device. Rooted Tablet. I'm trying to run restorecon -R on a folder to recursively restore SElinux context for the whole tree. If ...
Sruly's user avatar
  • 988
1 vote
1 answer
138 views

Running a console app on non-rooted Android Phone [duplicate]

I was able to run a console app (compiled with NDK) on a rooted Android phone, but can't run it on a non-rooted phone. I tried: adb push MyApp /mnt/sdcard/temp adb shell cd /mnt/sdcard/temp chmod a+x ...
Alexey Starinsky's user avatar
1 vote
0 answers
452 views

How to add new user to group, modify user/group, or log in as root on Android?

I have my crappy Samsung J5 (6) phone and after rooting it, I want to do something. I'm testing what happens if I add the current user to the root group. My username is j5xnlte, but when I try usermod,...
Mai Ngọc Vinh's user avatar
1 vote
1 answer
263 views

Does Android support a default terminal application?

Considering that both KDE Plasma and Windows 11 support a default terminal, and the availability of brilliant terminals like Termux, this seems like it would be an obvious feature, at least ...
RokeJulianLockhart's user avatar
0 votes
0 answers
1k views

How to move the entire termux to sdcard

i have seen multiple posts but non helped. i have root access and i want to put the whole termux on my 32GB sdcard because i have a very limited internal storage (8GB) and most of it is used by the ...
RTX Halwy's user avatar
0 votes
0 answers
51 views

How to know apps which boots with system using commands in Android terminal?

I need commands for Android 4-6. How to know via Android terminal and command which apps loading on the system's start? While I tried 2nd command from here.
Paul K.'s user avatar
  • 11
0 votes
0 answers
355 views

How to use file picker from command line

I would like to launch a file picker from a script to graphically select file. While I am able to launch a file picker by sending intent am start -a android.intent.action.OPEN_DOCUMENT -d /storage/...
Real Tadpole's user avatar
0 votes
0 answers
394 views

Connect to a Network over wifi or ethernet adapter, with twrp and use the terminal?

Im a noobie with twrp and android, i have Install it on a very cheap Nexus 5 and it works. Is it possible now, connect with twrp to a network with the terminal, if not possible over WiFi could it be ...
Z0OM's user avatar
  • 101
3 votes
1 answer
7k views

Check IP details via Android Terminal App in Android 13

Seems that Android 13 doesn't allow any more access to /system/bin/ip command. I tried to list the connected hotspot devices via ip neigh [1]. The error message is: Cannot bind netlink socket: ...
wittich's user avatar
  • 133
0 votes
1 answer
1k views

How to flash boot partition from the phone itself?

I already have Magisk installed by patching boot_b — the current boot partition. Therefore I have root privilege and can access it through the su command in Termux. The issue is that when I update ...
Maksym Hazevych's user avatar
1 vote
1 answer
590 views

Avoid re-downloading files with Termux in its own downloads folder

I have some files for which I don't have any app to open them with, but whenever I try to open them, instead of the "try looking in the Play Store for an app to open your file" dialog, I get ...
Kai Vinter's user avatar
1 vote
1 answer
1k views

Is `device_idle_constants` deprecated in Android 12?

Recently I've been trying to optimize the doze settings for my device. I found many guides that date back to 2015/16. All of them say something similar: To change a deviceidle setting, I have to input ...
DennisHackerman's user avatar
3 votes
0 answers
3k views

How to enable/disable VPN via adb/termux/terminal?

I have a VPN configured on my android device running Lineage OS 18.1 (Android 11). I'm not using any third party apps, I'm simply using the standard Android settings to specify my VPN login data etc. ...
Forivin's user avatar
  • 337
0 votes
2 answers
81 views

Can I create a file on Android similar to Windows that reads and processes commands?

In Windows, it is possible to use a "bat" file format that reads and processes written commands, such as a command to open the Windows Calculator (which you can also do via CMD). Is this ...
David Cawan's user avatar
1 vote
1 answer
4k views

How do I format my SD card via terminal/Termux?

I'm running a MIUI 12.5.5 xiaomi.eu ROM on a rooted Redmi Note 9 Pro. I'm trying to format my 128GB micro SD Card via Settings > Storage > Format SD Card, but this causes the device to reboot. I ...
Fabio Freitas's user avatar
2 votes
1 answer
2k views

How can I open the power menu in Android without pressing the power button?

The power button on my Android phone is dodgy and doesn't always work. I think it's on its last legs so I want to avoid pressing it if possible to extend its lifespan! I know nothing about coding or ...
glauco's user avatar
  • 21
0 votes
0 answers
129 views

What is terminal pathname to external SD card on Moto G Power?

I put an SD card into a Moto G Power, running Android 11. Settings -> Storage -> [name] allows me to "Open with Files", which shows me the directories. Opening "Music" shows ...
Ray Butterworth's user avatar
3 votes
2 answers
2k views

How to install Another Term, an alternative to Termux for Android 6.0 and below?

I am running a lower Android version and need to install a Linux proot container in Android. Another Term is the closest alternative, but how do I install it? It seems pretty hard.
Silent's user avatar
  • 121
3 votes
1 answer
1k views

How to access texts on rooted Android device from terminal

How do I access text messages on my rooted device using the command line? I specifically want to extract a text transcript, without using any cloud services and thereby exposing sensitive or personal ...
mcp's user avatar
  • 161
1 vote
0 answers
57 views

What is Android OS in context of Chrome OS?

What kind of operating system is Android? I've tried using other file types, but not any of them work: .ios, .img, .exe, .pkg. My terminal needs a password which is chromeos-setdevpasswd. Yet, when I ...
Dustin's user avatar
  • 11
1 vote
1 answer
570 views

Restrict app's background battery usage using terminal (root granted)

Is it possible to change this setting using termux?
Cyber Avater's user avatar
0 votes
1 answer
2k views

Put Termux environment on external SD card

Following this answer, I formated my sdcard as ext4-fs. Then tried mounting the sdcard into termux home as the link above says mount /dev/block/mmcblk1p2 /data/data/com.termux/files/home/ext4-fs I ...
Mab's user avatar
  • 111
1 vote
2 answers
2k views

Limiting Display Frame Rate to Lower

Is in Android there is an available database set for limits display frame rate? If they’re available, is using ADB/Root (Terminal), or how, or even it can't? I've been searching this for years, and ...
Agus Fadillah Sani's user avatar
1 vote
0 answers
71 views

How to resize SD card using terminal? and create a new partition on it? [duplicate]

I don't have SD card reader for my computer, so maybe I could do it directly from termux instead. How to resize SD card without losing data? And make new EXT4 partition. (parted) p: Disk /dev/block/...
Jtnqr's user avatar
  • 161
1 vote
0 answers
92 views

no write permission to memory card storage from termux [duplicate]

is it possible to write/edit the files on the memory card with Termux i tried the command: termux-setup-storage but it only gives the permission to write on my device storage(/emulated/0/)
ANDuser's user avatar
  • 83
0 votes
1 answer
138 views

How to connect Bluetooth keyboard + bt mouse to Android smartphone to work in parallel?

re.: How to send carriage return + newline from Bluetooth keyboard connected to Android smartphone running shell emulator ? followed answer links to similar questions like How to create a newline on ...
darius's user avatar
  • 1
0 votes
0 answers
192 views

How do I copy the entire system root to an SD Card or USB Flash Drive?

I am trying to make a direct 1:1 clone of my Android 9 system. I have the device rooted and I am running 'Terminal Emulator' as super user. Now, if I am in the root directory (IE: ":/ #") and I feed ...
t0rxe's user avatar
  • 1
0 votes
0 answers
551 views

How to disable user input (touchscreen) from command line without root

In the android command line, I need to disable the touchscreen user inputs. I do not want to use root because I want it to be universal instead of device-specific (root is obviously not as widespread ...
user avatar
0 votes
0 answers
4k views

Is there any command to launch directory of file manager in android phone using adb?

I want to open Download folder in my android phone using adb. I have example command for different terminal:start . /path/to/that/folder command for command-prompt and nautilus /path/to/that/folder ...
babloo's user avatar
  • 1
4 votes
1 answer
18k views

How to send all internet traffic to a SOCKS5 proxy server in local network?

I got the inspiration here. It looks like AFWall+ is able to create a NAT forwarding policy to keep all traffic going through a SOCKS5 proxy and fool Google apps into thinking they are not connected ...
Aero Windwalker's user avatar
0 votes
1 answer
174 views

How to launch a pdf from a terminal?

I gain precious time by launching pdf from the terminal in Linux evince ~/mypdf.pdf What is the exact command that allows me to do that on android? This post gives the following template: am start ...
user123456's user avatar
0 votes
1 answer
3k views

How to send SMS from terminal in background on Android?

I'm trying to send text message (SMS) from my Android terminal app in background (sim 1 or 2). I can send message in foreground using this command: am start -a android.intent.action.SENDTO -d sms:121 -...
Rabib's user avatar
  • 1
2 votes
2 answers
794 views

How to automate sending my current battery percentage to PC over the internet every 5 minutes?

I'm using Android 9 on my device, there are many times when I'm away from my phone and it is charging in a different room or someone else is using it, is there was a way to send over the battery ...
himanshuxd's user avatar
3 votes
2 answers
6k views

How to perform a hot reboot using the terminal emulator?

How do I perform a hot reboot on my device using the Terminal Emulator? I do not have busybox installed, but my phone is rooted. EDIT: I am looking for a solution to perform a hot reboot(see Quick ...
LCZ's user avatar
  • 196
2 votes
1 answer
4k views

How to configure and Enable WiFi Hotspot through terminal without root

How can I configure and enable/disable the WiFi Hotspot using the terminal without root? Also I want to kick a user from my hotspot using the terminal.
DanielSeow's user avatar
1 vote
1 answer
2k views

How To Enable Debug Mode From ADB Shell or ADB Via Terminal In Linux

so far I have put my android device in ftm mode i have tried from adb sideload now i am trying with busybox ash I'm able to run ls but anything else says permission denied or error:closed. / $ ls ...
antoinepl514's user avatar
0 votes
1 answer
1k views

Local equivalent to adb install

With a PC connection and adb, I can install packages by running adb install foobar.apk There is also an option to downgrade a package to an earlier version and keep data (as long the app itself did ...
user149408's user avatar
0 votes
0 answers
1k views

file manager doesn't find folders

I am using a terminal, Termux, and Qute. The terminal Qute shows me a path data/user/0/com.ddm. In the file manager Cx File explorer I am not able to find them. In Android folder, there is a data ...
kouty's user avatar
  • 225
1 vote
1 answer
119 views

“agrep” for Android Terminal?

How can I do this (agrep) in the Android Terminal? This program allows elastic text searching, which means that searchqwery would match searchquery, and searching Android would also match Anfroid or ...
neverMind9's user avatar
0 votes
1 answer
1k views

How can you open a URI from the command line?

I recently started playing with the app called 'Automate'. The starting block for each Automate flow provides a URI. Can this URI be used to initiate a flow? Can I accomplish this from the command ...
user306690's user avatar
0 votes
1 answer
177 views

While pushing to git using Termux, it crashes while compressing files

I am pushing large number of files to git from android using Terrmux. git push origin master There is no issue pushing up to 40 files of around 1.5 MB. But when number of files is larger, Termux ...
Mayank Kumar Chaudhari's user avatar
6 votes
0 answers
8k views

Install Split APK Manually

Recently I got to know a thing called split apks, and found the slices as invalid apk files, only the base is. Unfortunately, this means the usual default package installer is unable to handle this, ...
404 Name Not Found's user avatar
0 votes
0 answers
1k views

Using Termux to Backup Android's Contact List

In Termux's website's main page, they write (among other stuff): "use rsync to store backups of your contact list on a remote server" This makes me wonder: Android's Contact List is stored in an ...
spaceman's user avatar
  • 111
2 votes
1 answer
4k 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'...
Vinayak's user avatar
  • 235
2 votes
1 answer
4k 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 ...
Seth's user avatar
  • 121
0 votes
0 answers
147 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 ...
falhumai96's user avatar
0 votes
0 answers
2k 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 ...
neverMind9's user avatar
4 votes
1 answer
4k views

How to find UID of an app installed on Android and use it as a shell user?

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 ...
highsciguy's user avatar

1
2 3 4 5 6