android:oneplus:adb
This is an old revision of the document!
ADB Commands
| Command Instruction | Description |
|---|---|
| adb devices [-l] | List connected devices (-l for long output) |
| adb help | Show this help message |
| adb version | Show version num |
| adb push [–sync] LOCAL… REMOTE | Copy local files/directories to device –sync: only push files that are newer on the host than the device |
| adb pull [-a] REMOTE… LOCAL | Copy files/dirs from device -a: preserve file timestamp and mode |
| adb shell [-e ESCAPE] [-n] [-Tt] [-x] [COMMAND…] | Run remote shell command (interactive shell if no command given) -e: choose escape character, or “none”; Default '~' -n: don't read from stdin -T: disable pty allocation -t: allocate a pty if on a tty (-tt: force pty allocation) -x: disable remote exit codes and stdout/stderr separation |
| adb install [-lrtsdg] [–instant] PACKAGE adb install-multiple [-lrtsdpg] [–instant] PACKAGE… | Push one or more packages to the device and install them atomically -r: replace existing application -t: allow test packages -d: allow version code downgrade (debuggable packages only) -p: partial application install (install-multiple only) -g: grant all runtime permissions –abi ABI: override platform's default ABI –instant: cause the app to be installed as an ephemeral install app –no-streaming: always push APK to device and invoke Package Manager as separate steps –streaming: force streaming APK directly into Package Manager –fastdeploy: use fast deploy –no-fastdeploy: prevent use of fast deploy –force-agent: force update of deployment agent when using fast deploy –date-check-agent: update deployment agent when local version is newer and using fast deploy –version-check-agent: update deployment agent when local version has different version code and using fast deploy |
| adb reboot bootloader | Reboot the device to bootloader. |
| adb reboot recovery | Reboot to recovery too. |
| adb reboot sideload | Sideload reboots into recovery and automatically starts sideload mode |
| adb reboot sideload-auto-reboot | Same but reboots after sideloading. |
| adb sideload OTAPACKAGE | Sideload the given full OTA package |
| adb root | Restart adbd with root permissions |
| adb unroot | Restart adbd without root permissions |
| adb usb | Restart adbd listening on USB |
| 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 |
android/oneplus/adb.1600375040.txt.gz · Last modified: (external edit)
