Androidadb shell

Download Android for free

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

Changing file permissions using chmod command