adb command to install apk to Android device

Step 1: To use the adb command, you must first configure the environment variables, as shown below

Add a line of input path (need to find the sdk path)

Step 2: Start the cmd command window:

Connect to Android device: adb connect device name (ip:5555)
Find device: adb devices

adb kill-server, adb start-server, end adb service, start adb service,
usually the two commands are used together

Install Apk: adb install "E:\*****.apk" adb install .apk path
Uninstall: adb uninstall xx.apk

If there is more than one Android installation after adb devices: adb -s ip:5555 install "F:\**\**\**\**.apk"

adb logcat, prints Android system logs.

 

Guess you like

Origin blog.csdn.net/hemiaoyuan1989/article/details/91460518