adb shell

Download android eBook


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.


  • adb shell [-e escape] [-n] [-Tt] [-x] [command]


-echoose escape character, or "none"; default '~'
-ndon't read from stdin
-Tdisable PTY allocation
-tforce PTY allocation
-xdisable remote exit codes and stdout/stderr separation

Related Examples


274 Contributors: 1
Monday, March 13, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial:

Download eBook