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

Autocomplete

Fig spec, with what the manifest adds · 66 subcommands · 8 options
Published once and never changed; check the digest before caching
sha256
0595a0105ca0cf6ff354abba813d199ac4f8abae63f945ec2d5f5644f7098d22
Size
25158 bytes
Subcommands66 subcommands
adb devices
List connected devices
adb help
Show this help message
adb get-state
Print offline | bootloader | device
adb get-serialno
Print <serial-number>
adb get-devpath
Print <device-path>
adb remount
Remount partitions read-write. if a reboot is required, -R will automatically reboot the device
adb jdwp
List pids of processes hosting a JDWP transport
adb root
Restart adbd with root permissions
adb unroot
Restart adbd without root permissions
adb usb
Restart adbd listening on USB
adb sideload
Sideload the given full OTA package
adb start-server
Ensure that there is a server running
adb kill-server
Kill the server if it is running
adb reconnect
Kick connection from host side to force reconnect
adb reconnect device
Kick connection from device side to force reconnect
adb reconnect offline
Reset offline/unauthorized devices to force reconnect`
adb tcpip
Restart adbd listening on TCP on PORT
adb reboot
Reboot the device; defaults to booting system image but supports bootloader and recovery too. sideload reboots into recovery and automatically starts sideload mode, sideload-auto-reboot is the same but reboots after sideloading
adb disable-verity
Disable dm-verity checking on userdebug builds
adb enable-verity
Re-enable dm-verity checking on userdebug builds
adb wait-for-device
Wait for state=device
adb wait-for-recovery
Wait for state=recovery
adb wait-for-rescue
Wait for state=rescue
adb wait-for-sideload
Wait for state=sideload
adb wait-for-bootloader
Wait for state=bootloader
adb wait-for-disconnect
Wait for state=disconnect
adb wait-for-usb-device
Wait for usb in state=device
adb wait-for-usb-recovery
Wait for usb in state=recovery
adb wait-for-usb-rescue
Wait for usb in state=rescue
adb wait-for-usb-sideload
Wait for usb in state=sideload
adb wait-for-usb-bootloader
Wait for usb in state=bootloader
adb wait-for-usb-disconnect
Wait for usb in state=disconnect
adb wait-for-local-device
Wait for local in state=device
adb wait-for-local-recovery
Wait for local in state=recovery
adb wait-for-local-rescue
Wait for local in state=rescue
adb wait-for-local-sideload
Wait for local in state=sideload
adb wait-for-local-bootloader
Wait for local in state=bootloader
adb wait-for-local-disconnect
Wait for local in state=disconnect
adb wait-for-any-device
Wait for any in state=device
adb wait-for-any-recovery
Wait for any in state=recovery
adb wait-for-any-rescue
Wait for any in state=rescue
adb wait-for-any-sideload
Wait for any in state=sideload
adb wait-for-any-bootloader
Wait for any in state=bootloader
adb wait-for-any-disconnect
Wait for any in state=disconnect
adb keygen
Generate adb public/private key; private key stored in FILE
adb logcat
Show device log (logcat --help for more)
adb version
Show version num
adb connect
Connect to a device via TCP/IP [default port=5555]
adb disconnect
Disconnect from given TCP/IP device [default port=5555], or all
adb uninstall
Remove this app package from the device
adb bugreport
Write bugreport to given PATH [default=bugreport.zip];
adb pair
Pair with a device for secure TCP/IP communication
adb ppp
Run PPP over USB
adb emu
Run emulator console command
adb install
Push a single package to the device and install it
adb install-multiple
Push multiple APKs to the device for a single package and install them
adb install-multi-package
Push one or more packages to the device and install them atomically
adb shell
Run remote shell command (interactive shell if no command given)
adb mdns
Mdns utils
adb mdns check
Check if mdns discovery is available
adb mdns services
List all discovered services
adb push
Copy local files/directories to device
adb sync
Sync a local build from $ANDROID_PRODUCT_OUT to the device (default all)
adb pull
Copy files/dirs from device
adb forward
Forward connection
adb reverse
Reverse connection
OptionsOn adb itself
-a
Listen on all network interfaces, not just localhost
-d
Use USB device (error if multiple devices connected)
-e
Use TCP/IP device (error if multiple TCP/IP devices available)
-s
Use device with given serial (overrides $ANDROID_SERIAL) <SERIAL>
-t
Use device with given transport id <ID>
-H
Name of adb server host [default=localhost] <host name>
-P
Port of adb server [default=5037] <port>
-L
Listen on given socket for adb server [default=tcp:localhost:5037] <socket>