2016-09-07 22:30:46 +03:00
|
|
|
# adb
|
2016-01-06 09:18:54 +03:00
|
|
|
|
2016-09-07 22:30:46 +03:00
|
|
|
> Android Debug Bridge: communicate with an Android emulator instance or connected Android devices.
|
2016-01-06 09:18:54 +03:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Check whether the adb server process is running and start it:
|
2016-01-06 09:18:54 +03:00
|
|
|
|
|
|
|
`adb start-server`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Terminate the adb server process:
|
2016-01-06 09:18:54 +03:00
|
|
|
|
|
|
|
`adb kill-server`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Start a remote shell in the target emulator/device instance:
|
2016-01-06 09:18:54 +03:00
|
|
|
|
|
|
|
`adb shell`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Push an Android application to an emulator/device:
|
2016-01-06 09:18:54 +03:00
|
|
|
|
2016-07-13 11:53:22 +03:00
|
|
|
`adb install -r {{path/to/file.apk}}`
|
2016-11-26 19:03:36 +03:00
|
|
|
|
|
|
|
- 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`
|