We’re rewarding the question askers & reputations are being recalculated! Read more.

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
0answers
597 views

Backup and restore Android app data with Terminal Emulator (rooted) [duplicate]

What is the right or the best way to backup and restore android app data by terminal emulator in a rooted phone? su -c cp -r /data/data/the.app.id /sdcard/the/backup/directory can copy the app data, ...
0
votes
2answers
57 views

How to “fetch v8” on Android phone?

I have installed Termux on my phone(Android 7), then I installed git then git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git, then export PATH=$PATH:/data/data/com.termux/files/...
0
votes
1answer
570 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
0answers
2k views

How to get wget on my non rooted Android device

I installed an app from the Play Store called Material Terminal. It allows me to enter Linux commands and run them such as: cd, mkdir, touch, etc. I wonder if it is possible to get the wget command ...
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
0answers
1k views

Change shown username and hostname in terminal emulator

I am usong Sony Xperia Z3 6603 with latest available android. When using the Terminal Emulator, by default, the shown username@device is some random jibberish@D6603. Copy below: u0_a218@6603 I have ...
1
vote
1answer
1k views

(Android) Launch app activity shortcuts from the command line?

I'd like to know how would it be possible to launch an action "shortcut" (like Greenify's auto-hibernation shortcut) through the command line in Android. I'm trying to launch a StrongSwan VPN ...
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. ...
0
votes
1answer
35 views

My phone is going silent every day at 08.00 PM. Can't disable

I have Android 4.4.4 and once (or maybe after playing with settings) it started to go silent at 08.00 PM every day. And morning it is going back (usually I am doing it manually earlier). In settings ...
0
votes
1answer
840 views

Installation of R packages in Termux app

I having trouble installing 'curl' , a R package in Termux app. Without that, I can not install the much acclaimed tidyverse package in R. Whenever I tried to install 'curl', it spits out ...
0
votes
0answers
152 views

/system/xbin/custom-command cannot be found

Originally I copied a shell command file to /system/xbin/ as custom-command and it worked, meaning when I am in terminal emulator, I could type custom-command and it runs. What I did was simply ...
1
vote
1answer
1k views

How to move 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
978 views

How to get router's ip aka gateway in Android's shell?

In a normal linux environment we can do gateway=`netstat -rn | grep ^0\.0\.0\.0 | awk '{print $2}'` or gateway=$(netstat -rn | grep ^0\.0\.0\.0 | awk '{print $2}') but since Android's busybox/...
1
vote
2answers
722 views

Why does adb shell have higher permissions than common terminal applications?

For example you can write to /data/local/tmp with adb shell but not a common terminal application. Why is that?
1
vote
2answers
2k views

Update Nexus 7 to a Nougat ROM

I have an old Nexus 7 (picked up from I/O 2012) that got unbearably slow after an OTA upgrade to Android 5. After seeing hints from early adopters that Nougat is serviceable on this device, I decided ...
0
votes
1answer
612 views

Android 4.0.4 Where to Download su or sudo Binary?

I have a Huawei Android 4.0.4 phone and I've recently downloaded a Terminal Emulator app. This app allows me to run a Linux shell from inside Android; it runs /system/bin/sh. I started to navigate ...
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 ...
1
vote
2answers
324 views

Default terminal emulator/console

There should be at least a console accessible since Android use the linux kernel. Why is there no terminal emulator or console installed by default in Android OS ? Is there a particular reason?
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.
2
votes
0answers
484 views

Which precise commands allow me to send a mail locally with Termux

Which precise commands allows me to send a mail locally I would be able to do it with mutt but how do I start a SMTP server?
1
vote
0answers
190 views

Android terminal emulator run executable

I am trying to run the linux version of the ctrtool executable to extract the RomFS and ExeFS from a .cxi file, but I got an error that said not executable: magic 7F45. The ctrtool executable is in /...
2
votes
1answer
6k 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

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
2k views

run C executable termux Android 6

I have just installed termux in my Android 6 phone and have given storage permissions so I can read, write or compile from the terminal in the folder /sdcard/myC/ by using clang -o birthday birthday.c ...
1
vote
0answers
388 views

How termux and other terminal emulators are able to work in Android?

I know that Android is based on the linux kernel. Since an OS is kernel + programs, I understand that it should be possible to execute binaries in the Android system. Is this how terminal emulators ...
1
vote
0answers
1k views

How do I add repository to Android and what repositories do I add to get xrdp?

I'm using Termux. What do I type in my Terminal on Android to add a new repository in order to install more applications into my terminal? I'm using Android 5, ZTE Blade S7 if that helps.
0
votes
1answer
1k views

Opening CMD app on Android

I have got a software that I use on my pc, it is some kind of console that runs on CMD. Can I port or open the software in my phone? The file extension in the software is .exe but once I open it it ...
10
votes
3answers
61k views

I'd like to run Termux as root: possible?

I'd like to have an SSH, HTTP and SMB server on standard ports on my phone. There's a way to run Termux as root and have the servers run on privileged ports? Running rooted Android 7.1 on an ...
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 ...
15
votes
2answers
57k views

Termux - How do I create a directory of files accessible outside of Termux?

I discovered that the files and directory that are created in (default) Termux, are not accessible to other apps on non-rooted phones. Where is the folder that Termux defaults to? How do I set it ...
2
votes
1answer
928 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 ...
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 ...
1
vote
1answer
828 views

PM error Could not access the Package Manager

I am trying to freeze an app on my phone using the solution given here. I am using the Terminal Emulator app to execute the commands: su pm disable {package_name} But am getting an error: ...
6
votes
3answers
3k views

Fastboot freezes on Mac OS Sierra

I just got a new MacBook 2016 with Mac OS Sierra installed, after setting up my complete development environment and all required tools via Android Studio, I tried to flash a new Android Wear release ...
0
votes
0answers
17 views

Extract a gpg file in a nexus 7?

I want to extract a gpg file (passphrase only, no key), with a Nexus 7. It's just a gpg with a txt file inside. How do I get it to the nexus 7 and then even if I can extract it, how do I get to it ...
0
votes
0answers
429 views

How to do development on a Google Pixel C tablet device?

Is there a terminal app that can do development like on linux? And is it possible save the source local but not ssh remote server?
0
votes
1answer
54 views

How to install android from my Computer terminal?

I have a HTC M7 without any OS on it (it goes to black screen when I boot it). It doesn't have any memory card. I am however able to have a root shell with "adb shell" when connecting it with USB. ...
0
votes
1answer
607 views

Decrypting Adopted Storage: What's wrong with this process?

Just want to say I've read just about everything I can find about this Marshmallow 6.0 adopted storage issue.. The most helpful of all of the different slight variations on the same answer was: How to ...
4
votes
1answer
3k views

Package manager for android terminal

Just wanted to ask whether there was a package manager which could be installed on android terminal like homebrew cask, macports (macOS). PS Just wanted to install small application like wget and curl....
0
votes
1answer
201 views

Terminal on Android device itself

I'm trying to follow this advice on checking USB connectivity status which suggests using ADB, "or from a shell on the phone" where I should execute: cat /sys/class/typec/typec_device/current_detect ...
0
votes
0answers
73 views

Moved mp3's from internal storage to sdcard with su privileges - music apps don't see them now

In order to free up space on internal storage I opened a terminal and su removed some uneeded files. While still su root, I also moved my mp3 collection out of internal storage onto the external ...
0
votes
1answer
116 views

Why isn't ~/.profile sourced when I start the terminal app?

I have created some busybox aliases in the ~/.profile file, but when I open the terminal app, that script isn't sourced and the aliases aren't available. However, when I manually run source ~/.profile,...
1
vote
1answer
835 views

Cannot install ffmpeg with Termux

Why do I get a 404 Not Found [IP: 104.18.36.234 80] after attempting to install ffmpeg? # apt-install ffmpeg Reading package lists... Building dependency tree... Reading state ...
9
votes
3answers
8k 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 ...
2
votes
1answer
1k views

How to automate command line when specific application is launched?

So basically I want to run a few line of code each time a specific application is launched and closed. Is there application which could do that ? (Busybox ?) I actually have to print it my self in ...
1
vote
1answer
1k views

Terminal emulator in android just hangs when I type su?

I'm fairly new to Linux so sorry for my noobiness. Anyways I just wanted to check that my phone was rooted since I need an app that requires it to be rooted, but nothing happens in the app. I wanted ...
1
vote
0answers
434 views

what's the difference between mount point /sdcard & /sd-ext in recovery.fstab

This is the recovery.fstab # mount point fstype device [device2] /boot mtd boot /cache ext4 /dev/block/mmcblk0p39 /data ext4 /dev/block/mmcblk0p40 /...
2
votes
1answer
452 views

Can a Terminal Emulator on android do everything that a terminal on linux or mac does?

I downloaded a couple terminal emulators onto my android phone and wanted to know what the limitations on them are. Is there anything that a terminal can do the emulators simply cannot?
1
vote
0answers
113 views

Arduino heart rate sensor bluetooth terminal upon event command

I have an Arduino uno r3 set up as a pulse/heart rate monitor, I have a HC 05 bluetooth module set up so i can connect with my android phone, i get the reading on my android phone in a "heart rate is ...
1
vote
1answer
360 views

Edit hosts file from terminal IDE with root accessed

My terminal IDE accessed root but cannot edit hosts file. root@172.16.0.151:/system/etc #vim hosts But vim just opens hosts file as readonly. Where do I missed here?