adb shell
suggest changeIntroduction
adb shell opens a Linux shell in a target device or emulator. It is the most powerful and versatile way to control an Android device via adb.
This topic was split from http://stackoverflow.com/documentation/android/1051/adb-android-debug-bridge after that page reached its example limit. Many of those examples used the adb shell command.
Syntax
- adb shell [-e escape] [-n] [-Tt] [-x] [command]
Parameters
| Parameter | Details |
|---|---|
-e |
Choose the escape character, or none. The default is ~. |
-n |
Do not read from stdin |
-T |
Disable PTY allocation |
-t |
Force PTY allocation |
-x |
Disable remote exit codes and stdout/stderr separation |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents