first step:
Unzip the downloaded sdk installation package
Step 2:
1. Configure environment variables: create a JAVA_HOME in the system variable; write the path to the sdk decompression path
2. Add the decompressed platform-tools and tools folder paths to the path under the path path, pay attention to separating them with semicolons eg:%JAVA_HOME%\platform-tools;%JAVA_HOME%\tools
3. Enter the adb command in the cmd command line window to check whether the environment variable is successfully set up. After entering the command, the adb command appears, indicating that the installation is successful.
Step 3: Connect the device (here takes the night god simulator as an example)
The device name of the night god simulator is generally: 127.0.0.1:52001/62001
Connection command: adb connect device name eg: adb connect 127.0.0.1:52001
Enter the command to verify: adb devices The device name description appears to connect successfully
Note: The connection to the real phone needs to open usb debugging
Common commands of adb
Start/stop adb service: adb start-server/adb stop-server
Install the application under adb: adb install xxx.apk
Specify the device to operate: adb -s <devicename>
Application management
1. Copy files between pc and phone adb push/pull
2. adb uninstall <package name> Uninstall the application according to the package name of the application