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
1 answer
27 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 ...
user avatar
1 vote
1 answer
61 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 ...
user avatar
2 votes
0 answers
56 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. ...
user avatar
  • 247
0 votes
2 answers
24 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 ...
user avatar
1 vote
1 answer
351 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 ...
user avatar
0 votes
0 answers
81 views

Installing v4l2loopback and other modules on android?

I'm trying to install v4l2loopback, ffmpeg and v4l-utils onto my android device. I believe I have figured out how to install v4l2loopback (by pushing it as a signed kernel module), but I'm stuck ...
user avatar
1 vote
1 answer
77 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 ...
user avatar
  • 11
0 votes
0 answers
61 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 ...
user avatar
3 votes
2 answers
1k 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.
user avatar
  • 111
3 votes
1 answer
615 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 ...
user avatar
0 votes
0 answers
61 views

How to resolve the "Permission Denied" to access termux files - no root [duplicate]

I have a number of terminal applications, When I change the directory to: cd /data/data/com.termux/files I get permission denied. How to make another terminal app to be able to access termux files? (...
user avatar
  • 1
1 vote
0 answers
48 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 ...
user avatar
  • 11
1 vote
1 answer
128 views

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

Is it possible to change this setting using termux?
user avatar
0 votes
0 answers
326 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 ...
user avatar
  • 111
0 votes
1 answer
158 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 ...
user avatar
1 vote
0 answers
68 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/...
user avatar
  • 151
1 vote
0 answers
39 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/)
user avatar
  • 53
0 votes
1 answer
95 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 ...
user avatar
  • 1
0 votes
0 answers
77 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 ...
user avatar
  • 1
0 votes
0 answers
364 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
2k 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 ...
user avatar
  • 1
3 votes
1 answer
10k 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 ...
user avatar
0 votes
1 answer
44 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 ...
user avatar
0 votes
1 answer
2k 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 -...
user avatar
  • 1
2 votes
2 answers
584 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 ...
user avatar
2 votes
2 answers
3k 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 ...
user avatar
  • 176
1 vote
1 answer
2k views

How to configure and Enable WiFi Hotspot through terminal without ROOT

How can i configure and enable/disable the WiFi Hotspot by using terminal command without ROOT? Also I want to kick user from my hotspot using terminal command
user avatar
1 vote
1 answer
1k 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 ...
user avatar
0 votes
1 answer
620 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 ...
user avatar
0 votes
0 answers
484 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 ...
user avatar
  • 195
1 vote
1 answer
86 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 ...
user avatar
0 votes
1 answer
735 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 ...
user avatar
0 votes
1 answer
125 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 ...
user avatar
5 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, ...
user avatar
0 votes
0 answers
793 views

Using Termux to Backups 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 ...
user avatar
  • 111
2 votes
1 answer
3k 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'...
user avatar
  • 235
2 votes
1 answer
3k 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 ...
user avatar
  • 121
0 votes
0 answers
95 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 ...
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 ...
user avatar
4 votes
1 answer
3k 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 ...
user avatar
1 vote
0 answers
2k 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, ...
user avatar
1 vote
0 answers
74 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 ...
user avatar
0 votes
1 answer
299 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 ...
user avatar
2 votes
1 answer
2k 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 ...
user avatar
1 vote
2 answers
4k 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 ...
user avatar
0 votes
2 answers
3k 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 ...
user avatar
3 votes
1 answer
4k 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 ...
user avatar
  • 928
2 votes
0 answers
7k 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 ...
user avatar
1 vote
2 answers
2k 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 ...
user avatar
1 vote
0 answers
817 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 ...
user avatar
  • 11

1
2 3 4 5