1. Check the adb version
adb version
2. Connect Yagami simulator
adb connect 127.0.0.1:62001
Tips:
Port night simulator is the law of God, the first simulator port is 62001, the second simulator port is 62025, and the third is 62025 + 1, and so on.
- Simulator 1: Android 4.4.2 address: 127.0.0.1: 62001
- Simulator 2: Andriod 5.1.1 address: 127.0.0.1: 62025
3. View device information
adb devices
4. The access device
adb shell
Enter the specified device
adb -s 127.0.0.1:62001
Quit Device
exit
The online installation equipment
adb install -s [equipment] specified install apk [name]
6. Uninstall
1) First, enter the equipment / data / app directory to find the app package name
adb shell
cd /data/app/
2) execute the command to delete
adb Uninstall | -k <apkName> Uninstall software
adb uninstall com.wandoujia.phoenix2
Tips: package name system after the installation will add a value of -1 and the like at the end, to be removed before they can successfully uninstalled. Software name for the package name without the .apk
-k -k plus parameters, but retains the configuration and cache files to uninstall the software.
7. Check the name of the application package installed on the device
adb pm list packages
8. The file is written to the device from the computer
adb push <local> <remote>
9. The file read from the device to the computer
adb pull <remote> <local>
10.adb service Startup and Shutdown
adb kill-server
adb start-server
Tips: If port 5037 is occupied can use the following command to release the port
C:\Users\Shuqing> netstat -ano | findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 11072
TCP 127.0.0.1:5037 127.0.0.1:59519 TIME_WAIT 0
taskkill -f -pid XXX