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 ADB (Android Debug Bridge) due to reaching the limit of examples, many of which were involving adb shell command.
| Parameter | Details |
|---|---|
| -e | choose escape character, or "none"; default '~' |
| -n | don't read from stdin |
| -T | disable PTY allocation |
| -t | force PTY allocation |
| -x | disable remote exit codes and stdout/stderr separation |