tldr/pages/common/adb.md

34 lines
895 B
Markdown
Raw Permalink Normal View History

# adb
2016-01-06 06:18:54 +00:00
> Android Debug Bridge: communicate with an Android emulator instance or connected Android devices.
> Some subcommands such as `adb shell` have their own usage documentation.
> More information: <https://developer.android.com/studio/command-line/adb>.
2016-01-06 06:18:54 +00:00
- Check whether the adb server process is running and start it:
2016-01-06 06:18:54 +00:00
`adb start-server`
- Terminate the adb server process:
2016-01-06 06:18:54 +00:00
`adb kill-server`
- Start a remote shell in the target emulator/device instance:
2016-01-06 06:18:54 +00:00
`adb shell`
- Push an Android application to an emulator/device:
2016-01-06 06:18:54 +00:00
`adb install -r {{path/to/file.apk}}`
- Copy a file/directory from the target device:
`adb pull {{path/to/device_file_or_directory}} {{path/to/local_destination_directory}}`
- Copy a file/directory to the target device:
`adb push {{path/to/local_file_or_directory}} {{path/to/device_destination_directory}}`
- Get a list of connected devices:
`adb devices`