Questions tagged [terminal]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
788 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:...
3
votes
0answers
5k 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 ...
3
votes
1answer
2k 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 ...
1
vote
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
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 ...
0
votes
0answers
9 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/)
1
vote
2answers
4k 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 ...
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 ...
0
votes
0answers
15 views

Accidentally Uninstalled “AndroidSystem” Black Screen After Splash Image

A good friend hit uninstall on AndroidSystem icon (looks like a fan belt wrapped around a larger and a smaller circular object. AndroidSystem is the name of the icon). Since then, the tablet (a JP5s ...
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 ...
0
votes
2answers
3k 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
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: /...
1
vote
1answer
834 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 ...
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? ...
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, ...
0
votes
1answer
58 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 ...
9
votes
3answers
9k views

How to access and modify previous commands (bash history) in Termux

I use Termux on my Fairphone 2 and I want to speed up working with it. What slows me down is not having an up arrow key that I can use to access the last command in my bash history. I can do !! !7 and ...
18
votes
2answers
47k views

Running own executable on Android shell

I need a specific command line tool and I have made a C program in my Linux shell. I have compiled the program with an ARM cross-compiler. I have then moved the program into the Android file system ...
4
votes
1answer
1k 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 ...
2
votes
2answers
186 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
29 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 ...
1
vote
2answers
4k 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
108 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 ...
0
votes
0answers
43 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] : ...
21
votes
3answers
79k 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
460 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
7k 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
10k 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
2k 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
1answer
34 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 ...
1
vote
2answers
3k views

Change wallpaper via ADB/terminal

Is there any terminal (ADB) command for Android to change the launcher wallpaper?
4
votes
4answers
28k 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 ...
0
votes
0answers
104 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-...
1
vote
1answer
909 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
882 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
692 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
4k 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 ...
13
votes
6answers
69k 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 ...
16
votes
5answers
92k views
1
vote
2answers
2k 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 ...
2
votes
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/...
16
votes
3answers
41k 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
2k 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 ...
0
votes
1answer
68 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 ...
1
vote
1answer
683 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
233 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
8k 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
109 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 ...
2
votes
3answers
12k 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
2 3 4 5