Android devices provide a Unix shell that you can use to run a variety of commands on the device. The command binaries are stored in the file system the device.
Questions tagged [android-shell]
36 questions
1
vote
1 answer
How to interact with android device through a script?
I need a bump in the right direction here.
I want to write a script that will scroll up or down, maybe unlock the screen ( no lockscreen security set ) every 30 minutes or so. Also if possible I'd like for it to press the next button on my YouTube…

fluffehStack
- 81
- 1
- 12
1
vote
0 answers
Is there any command to launch directory in file manager of android using adb?
I want to open Download folder in my android phone using adb. I have example:
start . /path/to/that/folder command for command-prompt and nautilus /path/to/that/folder for ubuntu terminal.

babloo
- 55
- 2
- 7
1
vote
0 answers
Signing an Apk with a System certificate
I am developing for a specific device, and I have the system certificate installed on this device.
my task is to download another app and install it without user interaction
I've tried to sign my app with the system certificate and install it…

Mohammed Sy
- 240
- 1
- 4
- 14
1
vote
1 answer
ADB: How to automate complete BT Scan, pair and connect
I am looking for Automating the below activities using ADB.
Bluetooth settings -> TunrnOn BT -> Pairing (To a BT mac address which i can set) -> Connect to the BT Device on certain profiles like A2DP/HFP.
I have already found here and here how to…

Dhanesh
- 1,121
- 2
- 18
- 28
1
vote
1 answer
How to get Saved WIFI SSID information (not saved wifi Password) by using adb shell command - on Non-rooted devices?
I am trying to find a way by which I can get a list of the remembered networks' SSID on an Android device.
I have seen a few threads asking similar questions. However, the few questions that I have found are trying to get the known network passwords…

Sridhar Reddy S
- 121
- 2
- 13
1
vote
1 answer
Android shell chown u0_49
I'm having some trouble with changing owner in the shell on my android. I'm trying to change the owner and group of a file to match another file in the directory. When I ls -l the other files have an owner of u0_a49 I tried to su chown u0_a49:u0_49…

DasPete
- 831
- 2
- 18
- 37
0
votes
0 answers
how to connect a bluetooth device to android using android shell command line
I want to connect a device through Bluetooth to android phone using adb shell command line.
I know how to enable and disable Bluetooth using adb shell.
you can find the linked issue in the this stackoverflow link:
android enable disable bluetooth…

Teapot
- 1
- 2
0
votes
1 answer
how to make sms sent with adb show in messages app
I'm using a Samsung phone with Android 10
I found this adb command online
adb shell service call isms 7 i32 0 s16 "com.android.mms.service" s16 "${phone}" s16 "null" s16 "'${text}'" s16 "null" s16 "null"
This works, it sends the SMS if i respect…

John
- 1,081
- 1
- 9
- 34
0
votes
1 answer
How to read current immersive mode status via shell/ADB?
Is there an Android shell command that can get the current status of Immersive Mode (i.e. immersive.full, immersive.status, immersive.navigation, or immersive.off)?
Immersive mode can be set via the shell command settings put global policy_control…

ETL
- 188
- 10
0
votes
1 answer
How to use adb shell command to launch the app with same package id but different application id
I have 2 variants of the same app installed on my Android device which have the same package id but different application id. I am not able to launch the application using the shell command whose application id is different than the package id.
I am…

Varun Bhatia
- 4,326
- 32
- 46
0
votes
0 answers
run executable file "Permission denied" on Android 4.2.2
I tried run ssserver on Nexus4 with Android 4.2.2 but can't. The result is "Permission denied". File permissions appear to be normal:
shell@mako:/data/local/tmp $ ls -al ssserver
-rwxrwxrwx shell shell …

kaisar
- 1
- 3
0
votes
1 answer
ADB Shell Android how to delete group of contacts?
I am using adb shell to delete contacts from phone. For example if I have 50 contacts, how to delete first 10?
I use this to delete one by one, is there a way to delete more contacts at once, by one command, to make process faster?
adb shell content…

Robert
- 91
- 2
- 12
0
votes
2 answers
Cannot run executable using a prebuilt shared library using android ndk
Im trying to build an executable which depends on a shared library in C for android. I want to run the executable on android shell.
I first built the executable using android ndk (I'm using android-ndk-r16b), then using adb push I put the files…

Rohith Mohan
- 83
- 8
0
votes
1 answer
Empty InputStream for Android Porcess with "su"
I have Android 7 device with root (it works)
I want to execute root commands via OutputStream and get messages about results via InputStream.
private void getSu() {
if (mProcess != null) return;
try {
mProcess =…

asf
- 355
- 1
- 3
- 17
0
votes
1 answer
adb broadcast with user ID
I'm trying to broadcast an adb-command to a broadcast-receiver. This would be a very simple task, but the braodcast-receiver has:
android:exported="false"
On the offical android.developer website, it says:
If "false", the only messages the…

Foster
- 25
- 2
- 9