|
| 1 | +### Android Debug Bridge :more information from: |
| 2 | +http://developer.android.com/guide/developing/tools/adb.html |
| 3 | + |
| 4 | +[Press ENTER to continue reading, or Control+C to Quit] |
| 5 | + |
| 6 | +Android Debug Bridge (adb) is a versatile command line tool that |
| 7 | +lets you communicate with an emulator instance or connected |
| 8 | +Android-powered device. It is a client-server program that includes |
| 9 | +three components: |
| 10 | +- A client, which runs on your development machine. You can |
| 11 | + invoke a client from a shell by issuing an adb command. Other |
| 12 | + Android tools such as the ADT plugin and DDMS also create |
| 13 | + adb clients. |
| 14 | +- A server, which runs as a background process on your |
| 15 | + development machine. The server manages communication |
| 16 | + between the client and the adb daemon running on an emulator |
| 17 | + or device. |
| 18 | +- A daemon, which runs as a background process on each |
| 19 | + emulator or device instance. |
| 20 | + |
| 21 | +### Issuing adb Commands |
| 22 | + |
| 23 | +You can issue adb commands from a command line on your development machine or from a script. The usage is: |
| 24 | + |
| 25 | + adb [-d|-e|-s <serialNumber>] <command> |
| 26 | + |
| 27 | +### Commands |
| 28 | + |
| 29 | +adb devices |
| 30 | + - Prints a list of all attached emulator/device instances. |
| 31 | + |
| 32 | +adb help |
| 33 | + - Prints a list of supported adb commands. |
| 34 | + |
| 35 | +adb version |
| 36 | + - Prints the adb version number. |
| 37 | + |
| 38 | +adb logcat |
| 39 | + - Prints log data to the screen. |
| 40 | + |
| 41 | +adb bugreport |
| 42 | + - Prints dumpsys, dumpstate, and logcat data to the screen, for |
| 43 | + the purposes of bug reporting. |
| 44 | + |
| 45 | +adb jdwp |
| 46 | + - Prints a list of available JDWP processes on a given device. |
| 47 | + |
| 48 | +adb install <path-to-apk> |
| 49 | + - Pushes an Android application (specified as a full path to |
| 50 | + an .apk file) to the data file of an emulator/device. |
| 51 | + |
| 52 | +adb pull <remote> <local> |
| 53 | + - Copies a specified file from an emulator/device instance to your |
| 54 | + development computer. |
| 55 | + |
| 56 | +adb push <local> <remote> |
| 57 | + - Copies a specified file from your development computer to an |
| 58 | + emulator/device instance. |
| 59 | + |
| 60 | +adb start-server |
| 61 | + - Checks whether the adb server process is running and starts it, |
| 62 | + if not. |
| 63 | + |
| 64 | +adb kill-server |
| 65 | + - Terminates the adb server process. |
| 66 | + |
| 67 | +adb shell |
| 68 | + - Starts a remote shell in the target emulator/device instance. |
| 69 | + |
| 70 | +adb shell stop |
| 71 | + - Stops execution of an emulator/device instance. |
| 72 | + |
| 73 | +adb shell start |
| 74 | + - Starts (restarts) an emulator/device instance. |
| 75 | + |
0 commit comments