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

Run 2 commands in the same line in terminal emulator

I want to execute two commands in the same line on Android terminal emulator. Example: the two commands svc wifi disable and `exit I want to create a widget to disable the WLAN and out of the ...
1
vote
2answers
3k views

Change wallpaper via ADB/terminal

Is there any terminal (ADB) command for Android to change the launcher wallpaper?
1
vote
4answers
4k views

Home screen icon for terminal program?

I'm using terminal-ide http://code.google.com/p/terminal-ide/ which is basically a terminal for android with all sorts of utilities. One is able to create bash scripts for example. Is there a way to ...
1
vote
1answer
90 views

How do I change the factory settings that an Android device reverts to?

'm looking to change some of the default settings that a device reverts to such as language, timezone, resolution. Is there a way to do this through the terminal assuming my device is rooted?
1
vote
1answer
2k 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 ...
1
vote
2answers
821 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
1answer
392 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?
1
vote
1answer
398 views

List main CPU consuming processes since boot

How to list the 10 main CPU-consuming process, not in instantaneous CPU usage %, but rather in CPU usage since boot ? i.e. : a process that peaks at 50% CPU during 10 seconds won't be listed a ...
1
vote
1answer
6k views

Reason for chroot failure: tmp-mksh: chroot: not found

Introduction: I formatted a SDCard in ext4 and copied an ArchVersion on it to run it from Android like in this guide (step 6). Of course my device is rooted and am running the following scripts and ...
1
vote
1answer
9k views

How to find out sd card partition in dev/block?

In order to mount an ext4-formated sd card in Android I followed this guide. In the bash script msd2.sh is followking command: mount -t ext4 /dev/block/mmcblk1p1 /storage/extSdCard && sleep ...
1
vote
2answers
4k views

Running am commands in terminal without using su

Android: JB 4.2.2 I am trying to launch Android apps from the terminal emulator using the am command. When I tried the phone's terminal emulator application, it gave me an error:- java.lang....
1
vote
1answer
356 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
1
vote
1answer
1k 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'...
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 ...
1
vote
1answer
896 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: ...
1
vote
1answer
981 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 ...
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 ...
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 ...
1
vote
2answers
2k 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?
1
vote
1answer
1k views

Terminal-IDE / wifi routing issues

As cited here, I think there are likely issues unique to Terminal-IDE users because Terminal-IDE is, effectively, an "accessable-linux-on-your-non-rooted-Android" environment. And, therefore, it ...
1
vote
2answers
778 views

Is there an Android equivalent of diskutil?

I'm a Mac and Android user. I've used simple commands in the Terminal from time to time. But now I'm trying to understand the Terminal Emulator included in the Rom Toolbox app for my Android. What I'...
1
vote
0answers
23 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
1answer
112 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....
1
vote
1answer
461 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 ...
1
vote
1answer
68 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
vote
0answers
54 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 ...
1
vote
0answers
547 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 ...
1
vote
0answers
2k views

Change Resolution of HDMI output (USB-C / Slimport)

I have been working on this problem to avail I want to change the screen resolution of my EXTERNAL monitor connected to my android phone. Phone is android 7.0 LG v20, and I am using a USB-C Hub with ...
1
vote
0answers
86 views

Termux android usage for linux based work on the go

Any tutorial to lear termux commands??? for termux-ubuntu package, to perform allmost all the linux based work on android.
1
vote
0answers
192 views

How to manually activate download manager process via adb or terminal emulator?

Playstore relies on a process called download manager embedded in Android OS, yet it cannot be manually activate resulting in prolong wait time when using secure proxy to download playstore apps. What ...
1
vote
1answer
731 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
3k 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
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
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
0answers
211 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 /...
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.
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
463 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 /...
1
vote
0answers
117 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
0answers
2k views

I can't remount /system as rw. I get an error message: mount: Read-only file system

I'm using a rooted Huawei G7 and i'm trying to install BusyBox, but I keep getting an error. I'm 100% sure this error is because there is some weird write protection on /system. I know this because ...
1
vote
0answers
98 views

Detect when “settings” command in terminal has finished saving

When I execute the following command, it doesn't save anything: settings put global <KEY> <VALUE>;reboot I think it's because it does not have enough time to save the value, because it ...
1
vote
0answers
236 views

How to use my android smartphone to call a distant modem?

I have a domotic app using a modem on a RTC line and would like to connect to the modem with my smartphone as I can do with my PC through Hyperterminal. Is there a means to do that, using the phone ...
1
vote
1answer
300 views

Determining file type from android terminal emulator

I have a file of unknown type that does not display properly in es file explorer and I have no other app installed that can open it. Can I use the terminal emulator (or some other method?) To ...
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? ...
1
vote
0answers
125 views

phone crashing constantly

can you help me discover what is causing my phone to crash? I've been having this problem for a while now but it seems to be getting worse. it happens at random and is almost like a RAM seizure. the ...
1
vote
0answers
852 views

How to check sim lock via Terminal Emulator

I wonder, is it possible to check sim lock status in Terminal Emulator? Is there any universal command for most of Android phones? I know many different ways to check this issue, but I'm just curious....
1
vote
1answer
374 views

Installing command line apps

I have an unrooted Samsung Galaxy S4 Active running Android 4.2 Jelly Bean. I have installed the Terminal Emulator and am wondering how to install apps to the command line. Is it possible for me to ...
1
vote
1answer
92 views

Forward console output to computer

Is there a way to forward the console output of your phone (I'm assuming there is some because Linux) to your computer, maybe using ADB? I'm especially interested in how to get the boot time messages, ...
1
vote
0answers
246 views

how do I type special characters in ConnectBot?

I use an Apple bluetooth keyboard with my android Nexus 5. In ConnectBot I do not get the special chars when I use the Shift-key. How can I type special chars like +_)(*&^ in the terminal?