All apps/Android Debug Bridge

Android Debug Bridge

adb

Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device.

Runs as adb|macOS, Linux, Windows|developer.android.com

Command form

ai-draft · 5 tasks · 19 fields

Talk to Android devices. Device selection flags apply to every subcommand; logcat, forwarding and server management are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui adb
Android Debug BridgeExample values, fixed in this page — nothing here reaches a terminal
Basic
Device serial
string
USB device only
-d
Emulator (TCP/IP) only
-e
Advanced
Transport id
string
ParametersOnly these flags are editable in the form
Device serial
Target a specific device.
string
-s
USB device only
boolean
-d
Emulator (TCP/IP) only
boolean
-e
Transport id
string
-t

adb install

Install an APK

Push a package to the device and install it. Fast-deploy and agent options are left out.

Install an APKExample values, fixed in this page — nothing here reaches a terminal
Basic
APK file*
file
Replace existing app
-r
Grant all runtime permissions
-g
TasksEach one presets the form for one job
Install an APK
packagereplacegrant
ParametersOnly these flags are editable in the form
APK file
path · positional 0
Replace existing app
boolean
-r
Allow test packages
boolean
-t
Allow version downgrade
boolean
-d
Grant all runtime permissions
boolean
-g

adb push

Copy files to device

Copy local files or directories to the device.

Copy files to deviceExample values, fixed in this page — nothing here reaches a terminal
Basic
Local files*
any
Remote path*
string
Advanced
Only newer files
--sync
TasksEach one presets the form for one job
Push files
localremotesync
ParametersOnly these flags are editable in the form
Local files
path · positional 0 · repeatable
Remote path
Destination on the device, for example /sdcard/Download/.
string · positional 1
Only newer files
boolean
--sync
Dry run
boolean
-n

adb pull

Copy files from device

Copy files or directories from the device.

Copy files from deviceExample values, fixed in this page — nothing here reaches a terminal
Basic
Remote paths*
string
Local destination*
any
Preserve timestamp and mode
-a
TasksEach one presets the form for one job
Pull files
remotelocalpreserve
ParametersOnly these flags are editable in the form
Remote paths
string · positional 0 · repeatable
Local destination
path · positional 1
Preserve timestamp and mode
boolean
-a

adb shell

Run a shell command

Run a command on the device, or open an interactive shell when none is given.

Run a shell commandExample values, fixed in this page — nothing here reaches a terminal
Basic
Command*
string
TasksEach one presets the form for one job
Run a command
command
Interactive shell
ParametersOnly these flags are editable in the form
Command
Command and arguments; leave empty for an interactive shell.
string · positional 0 · repeatable
Do not read stdin
boolean
-n
Disable pty allocation
boolean
-T
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed adb against its version. A form that does not match your version is not offered.