Stats

274 Contributors: 1
2017-03-13
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

adb shell

Download android eBook

Introduction

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.

Syntax

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

Parameters

ParameterDetails
-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