1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 06:18:17 +01:00
tldr/pages/common/adb.md
2016-11-26 16:03:36 +00:00

725 B

adb

Android Debug Bridge: communicate with an Android emulator instance or connected Android devices.

  • Check whether the adb server process is running and start it:

adb start-server

  • Terminate the adb server process:

adb kill-server

  • Start a remote shell in the target emulator/device instance:

adb shell

  • Push an Android application to an emulator/device:

adb install -r {{path/to/file.apk}}

  • Copy a file/folder from the target device:

adb pull {{path/to/device_file_or_folder}} {{path/to/local_destination_folder}}

  • Copy a file/folder to the target device:

adb push {{path/to/local_file_or_folder}} {{path/to/device_destination_folder}}

  • Get a list of connected devices:

adb devices