-
Notifications
You must be signed in to change notification settings - Fork 3
/
adb
32 lines (17 loc) · 806 Bytes
/
adb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# adb
> Android Debug Bridge: communicate with an Android emulator instance or connected Android devices.
> More information: <https://developer.android.com/studio/command-line/adb>.
- 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/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