Questions tagged [terminal]

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

Filter by
Sorted by
Tagged with
4
votes
1answer
802 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 ...
1
vote
1answer
2k views

Mount Binding to move App data to External Memory

I recently came across the idea of mount binding in Linux. I am wondering if I can mount bind the /storage/emulated/0/Android to /storage/sdcard1/Android. Will this extend my internal storage? ...
3
votes
1answer
1k 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 ...
0
votes
1answer
3k views

Kali Nethunter Terminal Keep Crashing

Device : OnePlus 2 OS : OOS 3.5.6 on android 6.0.1 I tried to install nethunter many times, unlocked phone, rooted and install modified super su for oneplus 2, flashed overlay-rom nethunter, ...
2
votes
2answers
151 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 ...
1
vote
0answers
21 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 ...
0
votes
2answers
2k 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
vote
2answers
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 ...
0
votes
0answers
35 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 ...
1
vote
1answer
76 views

Terminal emulator on Android device: Can I communicate with with the terminal on my Linux machine over bluetooth?

I am trying to issue a command in my terminal emulator on my Android device over Bluetooth from a Linux machine. The command is meant to launch an app, and looks like this: am start —user 0 -n com....
0
votes
0answers
23 views

files /proc/asound/card0/pcm0c/sub0/status and /proc/asound/card1/pcm0c/sub0/status writing always 'closed'

cat /proc/asound/card0/pcm0c/sub0/status and cat /proc/asound/card1/pcm0c/sub0/status are writing always closed even in the time audio recorder is working. Why? cat /proc/asound/devices: 0: [ 0] : ...
19
votes
3answers
67k 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 ...
0
votes
0answers
60 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 ...
0
votes
3answers
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 ...
5
votes
3answers
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 ...
14
votes
2answers
9k views

Start an Android application via a shell script?

Is it possible to start an actual Android application from the command line in Android? For example, say I'd simply like to start/bring to the front my calendar. Is there a way that I can do this like:...
3
votes
1answer
689 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 ...
0
votes
3answers
4k views

Closing/killing “Android Terminal Emulator” app

I have a Sprint LG G3 running Android 4.4.2. I'm using Android Terminal Emulator by Jackpal. It respawns after I close the app. I see the terminal process and the child shell but killing that way ...
0
votes
1answer
23 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 ...
0
votes
1answer
2k views

Copy Directory to SMB Share Through Terminal

On Rooted Android 4.1, I have it set up to be able to make NAndroid backups through terminal emulator. What I hope to do is schedule a Tasker job to create a NAndroid backup and then copy/move it ...
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
1answer
248 views

How to Sending 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:...
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 ...
3
votes
2answers
1k views

Invoke /system/bin/sdcard manually via terminal

I am trying to mount an EXT4 formatted SD card under Cyanogenmod 13.1 (Android 6.0.1). So far, I have setup scripts to mount the card at /mnt/ext_sdcard during boot. My current understanding is that ...
4
votes
4answers
27k views

Allow “unknown sources” from Terminal without going to Settings App?

I have a corrupted Settings app in CyanogenMod and have a possible idea to restore a backup of it (App and Data) in Titanium Backup. But it's currently set to not allow "unknown sources" so Titanium ...
1
vote
1answer
4k 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: /...
0
votes
0answers
68 views

Unable to get root access on Meizu 5 Pro Flyme OS

I'm trying to copy a file using Busybox and terminal emulator on Android. The command I need to execute but fails with "Permission denied": /system/xbin/busybox cp -f /sdcard/proinfo-MeizuPro5-...
0
votes
1answer
876 views

Installing APK via Terminal Emulator

I have installed Android 4.4 through VirtualBox on my PC. I want to know how to install an APK (e.g. FIFA 14) in it via a command in terminal. How to do that?
2
votes
2answers
371 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 ...
1
vote
1answer
282 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
3
votes
2answers
3k views

How to create a wifi hotspot from the terminal?

How would you suggest to create a hotspot from a root terminal? I would need to create hidden hotspot hotspot without password I am looking for an equivalent of create_ap for android. Here is the ...
12
votes
6answers
67k views

A Real Terminal (Root or No-Root)

I use KUBUNTU on my laptop, but this goes for any Linux distro. I can open a terminal window and type in things like sudo apt-get update, sudo apt-get install packagename. Is there a terminal that can ...
0
votes
0answers
32 views

How to upload GSM CID LAC to telegram channel

Various apps show GSM CellID (CID) and Location Area Code (LAC). How can I get current ones via Terminal and upload to a Telegram channel with hourly frequency? I tried this but it's not updated, ...
16
votes
5answers
86k views
1
vote
2answers
1k 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
2k views

How to save files to external SD card 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/...
14
votes
3answers
38k views

Is it possible to enable Location Services via Shell?

Is it possible to enable Location Services(GPS or Google NetworkLocation) via ADB or Terminal Emulator? I'm on a rooted Phone. Extra Points: Is it also possible to change other system-related ...
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 ...
1
vote
2answers
3k 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
1answer
50 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 ...
0
votes
0answers
19 views

Is there a way to host a public minecraft server on a 32-bit Android device

I have only a 32-bit android device. Is there a way to host a minecraft bedrock edition server on it?
1
vote
1answer
397 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 ...
0
votes
1answer
132 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 ...
2
votes
1answer
7k views

Tasker to run scripts in terminal shell

I have searched for this but till now I have not found any tasker that would be able to do this, so I decided to ask here. Till now I have been using Trigger Pro as my favorite tasker but it lacks in ...
0
votes
0answers
49 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 ...
0
votes
0answers
55 views

How to change my Android lock screen from Terminal? [duplicate]

What I want to achieve is to change lock screen, regularly. As an example, the lock screen is a PIN, and the PIN number should be increased by one everyday (e.g., using cron jobs). It seems there is ...
2
votes
3answers
9k 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 ...
1
vote
1answer
960 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 ...
0
votes
0answers
27 views

mdadm and other services in android x86 8.1

I have been reading up on android x86 lately and would like to know if it can read /dev/md0 (RAID5) created by mdadm (with ext4 partition on it) and whether it is possible to use applications such as ...
1
vote
1answer
65 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 ...

1
2 3 4 5