Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

A "command line" is a text interface to enter commands interactively. In our context, it usually means a "Unix Shell" in a terminal app, or the ADB shell on a computer to interact with an Android device.

-1
votes
0answers
11 views

Android-x86 8.1-rc1 GUI not booting

I installed Android-x86 8.1-rc1 on my USB pendrive. I have a one small problem with my installation. Booting is stuck on command line and nothing more. No ANDROID bootlogo, etc... Did I something ...
0
votes
0answers
15 views

Is there a command in /system/bin to wipe cache?

Is there a command in /system/bin to perform cache clearing?
0
votes
1answer
19 views

How to take screenshot from terminal

I am writing a python script to process an image. I need to take automated screenshots. How can i do that with some kind of command ? No root acces. I am using termux and terminal emulator.
0
votes
0answers
27 views

Connect a paired bluetooth device via terminal

I need to connect a paired bluetooth devices via the terminal, when it does not connect automatically. On my android device (7.1) normally I would click the bluetooth device to connect it, in ...
0
votes
1answer
53 views

what is the standard editor in Android?

I'm connecting to this Google phone via adb, I need to change a character inside of a text file, and I would use vi, or maybe sed -i, or even pico if nothing else helps, but I don't find any well ...
0
votes
0answers
22 views

Duplicate photos not recognized by Google Photos app

I was writing a script and ran into some perculiar behaviour. For instance, do something like: newDir='/sdcard/Pictures/NewDirectory/' oldDir='/sdcard/Pictures/Screenshots/' newPic='Screenshot_Copy' ...
0
votes
2answers
48 views

How to do GREP text searching without root?

There is busybox and there are terminal emulators that include grep, but they require root to run. It would be better if they could also run without root but with limited access. I only need to grep (...
0
votes
0answers
104 views

How to get USSD response from android mobile to PC through ABD?

When i dial a particular USSD number e. g. *999*012345678901*50*2255# through ADB using windows command prompt, it executes successfully and on my android device it dials the afore mentioned USSD ...
0
votes
1answer
34 views

How to store 'adb devices -l' output to a text file?

Is there any way to store the output of adb devices -l command to a text file? Note: output of adb devices -l command is List of devices attached 1101530abd5a234b device product:j1pop3hjv ...
0
votes
1answer
34 views

How to run GNU utilities without root?

Is there any way to use GNU utilities like GNU's sed, find, bash, and awk WITHOUT root? Android's utilities that are provided by toolbox and the BusyBox applets provided by one particular application ...
0
votes
0answers
31 views

Does 'find' command not exist on non-rooted android 5.0 and below?

Recently i have tested and seen that the "find" command can not be found on android 5.0 and 4.0, but i can not find any post that discusses about this problem. Does anyone know the answer?
2
votes
1answer
244 views

Manually trigger MediaScanner to scan files on Internal Storage on Nougat/Oreo

I often manage my files in Termux with scripts that use the mv command to move or rename them. I want to manually trigger MediaProvider to scan my internal stroage (/storage/emulated/0) or a given ...
0
votes
0answers
44 views

Running commands operating on files always results in permission denied errors

When I try executing commands operating on files, they always fail. I can't check permissions on the terminal because I'd have to run a command that operates on a file (directory) in order to do so. ...
0
votes
1answer
80 views

Does Xposed Framework require to be buillt specifically for the device or just the Android version?

When installing the Xposed framework do I need the device specific binary (like custom recovery or ROM) or just the app that works for Android (4.4.4 in my case). The device is Galaxy Tab E T560. ...
1
vote
1answer
371 views

How to pass commands to ADB shell?

I am trying to create a script to automatize a few repeated things I need to do with adb. I can run most of the commands on my local bash. But at one step, I need to find the list of some files. I ...
0
votes
0answers
27 views

How to register on alarmmanager from shell

I want to take pictures at a list of given times with terminal emulator on Cyanogenmod 4.4 . I couldn't find an app to do that (without draining battery), or manage to start a script over adb and ...
2
votes
0answers
24 views

is it possable to install a linux distro ie:- nethunter on a android device

I have been trying to work out how to use my old Android tablet as a stand alone Linux tool for pen-testing and network monitoring and logging. I have it boot straight into the OS without having to ...
0
votes
1answer
3k views

Backup boot.img via terminal one-line command

I am trying to make an image backup of boot. The script must work on any android. I think on any Android the boot location is /dev/block/platform/???/by-name/boot My command line find /dev/block/...
0
votes
1answer
1k views

How to test internet speed using terminal emulator on Android

I have Termux app installed on my Android phone. Is there a speed test tool that I can install and use from the command line? I have tried speedtest-cli, installed it by: pip install speedtest-cli ...
1
vote
0answers
216 views

How to assess what apps or settings are causing high CPU usage from system_server process on Android Nougat?

I am running root Android Nougat on a Nexus 6P. My battery is draining in <3hrs. When I run su -c htop it shows system_server is using >400% CPU. I have now factory reset 3 times and each time this ...
2
votes
0answers
35 views

Why does every adb command take several minutes?

I've run adb devices and adb push some-stuff /sdcard, and both commands take several minutes. Once adb push gets started though, it races through the file, so the throughput is fine. It just takes an ...
0
votes
0answers
97 views

Viewing the GPS-location of an Android Device?

So at the moment I'm looking for a way to show the live position of an android device. Mainly for a way to let the device send it's current GPS-position. All apps I've been looking at only allow to ...
0
votes
1answer
299 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 ...
0
votes
1answer
71 views

Calling adb through command line ignored

So the problem I am having after a Windows reinstall, is that whenever I call ADB, it just gets ignored. Calling adb from my custom tools seems to be working (have a d.bat file, that calls python, ...
1
vote
1answer
860 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
2answers
824 views

How to get tomorrow's date and next week's number for use in Tasker

Based on this answer I am looking for a way how to get tommorow's date and next week number to use in Tasker app, Run Shell Command. I have tried: date -d '+1 day' +"%Y%m%d" and similar, but still ...
2
votes
1answer
9k views

Launch AVD manager from command line

I'm on Windows 10. Android studio version 2.3.3 How can I launch the AVD Manager with-out opening the Android Studio and creating a project ? I remember it was possible for earlier version of ...
0
votes
0answers
127 views

In Ubuntu Desktop my Arduino Uno shows up as /dev/ttyACM0 … where is it in android?

When I connect an Arduino Uno via USB to my Linux Ubuntu Desktop 14.04, the arduino shows up as /dev/ttyACM0 .... When I connect it via usb to an android phone the device is powered and recognized in ...
0
votes
1answer
245 views

How to enable server in hotspot?

I got the error while trying this on command line interface root@sabresd_6dq:/ # hostapd_cli wps_pbc Failed to connect to hostapd - wpa_ctrl_open: No such file or directory How to solve this?
1
vote
1answer
592 views

Issue with Viewing Netstat Process Info on Android

I am unable to view the PIDs or process names associated with network activity on my android device. I was wondering if there is another way to go about doing that, besides netstat? Or if anyone might ...
0
votes
1answer
117 views

rooted phone su user changes

Is there a way, once rooting is done, and i have customized my phone a bit (a change in one of the config files of linux), to change the user accounts and permissions? To create a new user account and ...
1
vote
1answer
427 views

Android Emulator size issue

I'm having some issues managing/running AVDs from the commandline. Whatever device I create/run seems to get cropped and displayed wrongly (see below). I've tried various devices and settings (-...
1
vote
1answer
168 views

Issue a command to the camera from command line via SSH

If I have an SSH app like SSH Droid, is it possible to issue a command to the camera to take a picture from the command line of a remote SSH client? If so, would you have an example of such a command? ...
1
vote
2answers
164 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
1answer
3k views

termux - help installing a package

I am trying to install texlive using termux. It's in the package manager, but unfortunately the package has some faulty instructions. Specifically, the package calls wget with a faulty option. if ...
6
votes
1answer
12k views

How to install app from command line (terminal)?

How to install app from command line (terminal)? I would like to start a terminal window and do the apk installation from command line (shell script) EDIT1: within the phone. Also is it possible ...
0
votes
0answers
659 views

Making executable files in GNURoot

I have recently installed GNURoot Debian and I really enjoy having Bash on my phone and access to the vast repository for various other GNU/Linux programs. But when I tried downloading a package ...
0
votes
0answers
73 views

Eject SD card via ADB

Is it possible to emulate physical eject/cut power supply for SD card in Android via ADB terminal? What I'm looking for is something similar to the functionality achieved on GNU/Linux for USB devices ...
0
votes
1answer
141 views

Bootanimation command not recognized without root

I am thoroughly confused. In a terminal, without root, when I run bootanimation, it says /system/bin/sh: bootanimation: not found. But when I am root, and run it, it works. Why is this? I attached a ...
3
votes
2answers
6k views

Wget using Termux download directory

I just installed Wget using Termux on my Android. But, when I download a file, I cannot find it's location. Can anyone please tell me where it's located? And how can I change that location to my ...
3
votes
1answer
655 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 ...
1
vote
1answer
403 views

How can I check if a device is booted into safe mode from adb?

Is it possible to use adb to detect whether a device is booted into "Safe Mode" or normal mode? I've looked through the output of getprop and other command-line tools and haven't found any good ...
1
vote
1answer
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 ...
-4
votes
1answer
534 views

Can I use Linux commands on Android? [duplicate]

Android is a kind of Linux. So I would be able to use the commands. Can I use Linux commands on Android? If I can, how do I?
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 ...
1
vote
1answer
1k views

Does using brightness dimmer (screen filter) really save battery?

We know that the lower the scree light/brightness, the lower the battery consumption. There are some applications which provide ability (without root) to lower the brightness beyond the (default) ...
0
votes
1answer
50 views

How can I list all files in a directory with timestamps (in a touch compatible format) on Android

For starters, I am on a Nexus 5, on Android 6.0.1 and I am rooted. Normally, I'd just do this find /path -maxdepth 1 -type f -printf '%TY%Tm%Td%TH%TM%Ts %p\n' However, it appears that busybox, ...
0
votes
1answer
363 views

Batch file for android that runs at startup

On my windows laptop, I have a batch file which checks for a specific file and deletes it. My question is, is this possible on android, to make a file that runs at startup (without root), checks for ...
0
votes
2answers
438 views

sending AT command with NCK code unlock sim?

I need information. How can I send the NCK unlock code network using AT commands? Or is there any other ways?
0
votes
0answers
378 views

Ffmpeg on non-rooted Android?

I've set several places where I can get a ffmpeg binary for Android, but I cannot seem to run it. I use the . command to run shell scripts, but not ffmpeg. Is there any way at all I can run ffmpeg ...