Reference: http://blog.csdn.net/veryitman/article/details/6437090
1. Enter the shell
Enter device Shell adb shell
2. Install APK
<path_to_apk> represents your apk file path (such as/home/. /*.APK).
ADB install <path_to_apk>
3. Copy the files from the phone to the local computer from the device
<remote> represents the path to a folder or file in your phone, <local> indicates the path to the local computer's folder or file
ADB pull <remote> <local>
Example: adb pull/sdcard/360/test.txt d:\myproject Copy the test.txt from your phone to the MyProject file on your computer's D drive
4. Copying files from the device to the local
<remote> represents the path to a folder or file in your phone, <local> indicates the path to the local computer's folder or file
ADB push <local> <remote>
Example: adb pull d:\myproject\copytest.txt/sdcard/360/Copy the copytest.txt from the MyProject file of the computer D drive to the phone
5. View Logcat
ADB logcat |grep Tag
6. Query for several Android devices connected to ADB server
ADB devices
Use of Android adb