Android adb and Android adb
Reference: http://blog.csdn.net/veryitman/article/details/6437090
1.Go to shell
Enter DeviceShellAdb shell
2. Install apk
<Path_to_apk> indicates the path of your apk file (for example,/home/../*. apk ).
Adb install <path_to_apk>
3. Copy files from the device to the Local Computer
<Remote> indicates the path of the folder or file in the mobile phone, and <local> indicates the path of the folder or file on the local computer.
Adb pull <remote> <local>
For example, adb pull/sdcard/360/test.txt d: \ myproject copies test.txt from the mobile phone to the myproject file on the d drive of the computer.
4. Copy files from the device to the local device
<Remote> indicates the path of the folder or file in the mobile phone, and <local> indicates the path of the folder or file on the local computer.
Adb push <local> <remote>
Example: adb pull d: \ myproject \ copytest.txt/sdcard/360/copy copytest.txt under the myproject file of the d drive to the mobile phone
5. View logcat
Adb logcat | grep tag
6. query several android devices connected to the adb server
Adb devices