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
2answers
1k 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/...
2
votes
1answer
770 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 ...
13
votes
4answers
35k 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
2k 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
26 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
13 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?
3
votes
2answers
2k 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 ...
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
1answer
92 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
68 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
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
0answers
28 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 ...
1
vote
1answer
3k 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
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
0answers
34 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
7k 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
2k 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, ...
1
vote
1answer
564 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 ...
2
votes
1answer
937 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
18 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 ...
0
votes
2answers
3k views

How to kill terminal emulator, or should I stop caring?

I have a Sprint LG G3 running Android 4.4.2. I'm using jackpal's terminal emulator. It respawns after I close the app. I see the terminal process and the child shell but killing that way seems too ...
1
vote
1answer
58 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 ...
0
votes
1answer
110 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 ...
1
vote
2answers
1k views

How do I turn off USB tethering or restart USB connection via computer/PC's terminal?

How do I turn off USB tethering or restart USB connection via computer/PC's terminal?
0
votes
2answers
1k views

Can android device issue adb commants to itself?

I made a simple shell (actually windows batch) script that automates a task on android phone. It can be ran on any computer. I thought that if I convert the batch to linux sh script, I could issue the ...
0
votes
0answers
33 views

stat -c “%x” [file] shows the current time. ls -lu [file] too

How to get the access time of a file in terminal? stat -c "%x" [file] shows the current time. ls -lu [file] too.
15
votes
3answers
49k views

Equivalent of CTRL + C (break) in android console

Recently I discovered, that via QPython console I can execute android (linux) commands. Ping works. Question is: how to interrupt it's output on smartphone? CTRL + C obviously isn't the answer.
0
votes
3answers
2k views

php with mysql support from the command line on Android

Is there a terminal emulator for Android which allows to use vi and php with mysql support? PS. Termux unfortunately doesn’t allow to connect php to the mysql.
0
votes
0answers
40 views

Mount image as USB-OTG

Is there a way to emulate an image to the phone as being an usb device? I don't want to mount the image in a computer like DriveDroid does (Mounting .img from internal storage as USB Mass Storage) but ...
3
votes
2answers
6k views

is there a way to run *.sh file by just touching it in a file manager?

I mean like it is when user opens an image file a pane opens where user can select app for given type. But when I'm clicking on *.sh file the first option that shows up is to open as text/audio/video/...
3
votes
3answers
4k views

which termux package provides the “mount” command?

i try to install "mount" with apt, but i can't locate it, or a package that contains "mount". i've tried: just to run mount: no command 'mount' found apt update && apt upgrade apt ...
3
votes
3answers
7k views

How to install bundles of additional terminal commands for rooted devices?

I rooted a HTC Wildfire S device recently and flashed an Android 4.1.2 AOKP Jelly Bean Custom ROM. One benefit is that I can use the terminal now. I'm a little used to using terminal emulators on ...
1
vote
0answers
2k 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, ...
0
votes
0answers
175 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 ...
0
votes
0answers
33 views

Issue trying to flash lineage OS on Samsung s6 through heimdall on terminal - mac

Trying to flash lineage OS to my Samsung galaxy s6 but for some reason the Mac cannot detect my device.. The only way I can cannot it to transfer data files through USB is by enabling USB debugging in ...
9
votes
4answers
10k views

Accessing termux user environment from other consoles

I've recently started using the amazing Termux terminal app and linux environment. It provides a wealth of full-function terminal utilities. It would be great to be able to access these utilities ...
2
votes
1answer
355 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 ...
0
votes
1answer
2k 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. ...
1
vote
1answer
465 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'...
0
votes
1answer
640 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?
3
votes
2answers
5k views

adb device always unauthorized

Im running Ubuntu 16.04 adb version Android Debug Bridge version 1.0.32 However, when I plug in my devices for testing via ADB I always get an unauthorized error. adb devices List of devices ...
1
vote
0answers
50 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 ...
0
votes
1answer
2k views

command line text editor for android lollipop terminal emulator [closed]

Is there any text editor for lollipop which i can use from terminal emulator??The editor must be like gedit or notepad like (means i can create any kind of file like .txt .c .cpp .html etc)I have used ...
0
votes
2answers
1k 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
0answers
22 views

Netstat -l -p stop working when I'm root

I need to know why this process named "camera test" in Nestat plus (though I can't find this name in the lsof log) is listening some ports it is the first four processes after netstat -l-p in the ...
4
votes
4answers
25k 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
38 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 ...
0
votes
0answers
62 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, ...