Android Debug Bridge version 1.0.32
Revision cc6ae925e394-android
-a - directs adb to listen on all interfaces for a connection
-d - directs command to the only connected USB device,returns an error if more than one USB device is present.
-e - directs command to the only running emulator.returns an error if more than one emulator is running.
-s <specific device> - directs command to the device or emulator with the given serial number or qualifier. Overrides ANDROID_SERIAL environment variable.
-p <product name or path> - simple product name like 'sooner', or a relative/absolute path to a product out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT environment variable is used, which must be an absolute path.
-H - Name of adb server host (default: localhost)
-P - Port of adb server (default: 5037)
devices [-l] - list all connected devices ('-l' will also list device qualifiers)
is specified.
es.
:
adb push [-p] <local> <remote>- copy file/dir to device('-p' to display the transfer progress)
adb pull [-p] [-a] <remote> [<local>]- copy file/dir from device('-p' to display the transfer progress)('-a' means copy timestamp and mode)
adb sync [ <directory> ] - copy host->device only if changed(-l means list but don't copy)
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
g format:
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
if <local> is already forwarded
adb forward --remove <local> - remove a specific forward socket connection
adb forward --remove-all - remove all forward socket connections
adb reverse --list - list all reverse socket connections from device
adb reverse <remote> <local> - reverse socket connections
reverse specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
if <remote> is already reversed.
adb reverse --remove <remote>- remove a specific reversed socket connection
ice
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-lrtsd] <file>
l it
(-l: forward lock application)
(-r: replace existing application)
(-t: allow test packages)
(-s: install application on sdcard)
(-d: allow version code downgrade)
(-p: partial application install)
)
that should be included in a bug report.
.
themselves in the archive; the default is noapk.)
is noobb.)
lt is noshared.)
ns)
de system apps)
e backed up.
ordinarily cause them to be omitted.)
archive
adb disable-verity - disable dm-verity checking on USERDEBUG builds
s
are overwritten.
adb help - show this help message
adb version - show version num
:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb get-devpath - prints: <device-path>
/oem (if present) partitions on the device read-write
der or recovery program.
covery program (adb root required).
tomatically after the sideload regardless of the result.
adb sideload <file> - sideloads the given package
adb root - restarts the adbd daemon with root permissions
ns
adb usb - restarts the adbd daemon listening on USB
e specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.adb sync notes:
adb sync [ <directory> ]<localdir> can be interpreted in several ways:
sent) and /data partitions will be updated.
is updated.
:
ity over this if given.
bug tags are printed.