Recently, I encountered the problem of installing software on the development board. Since the Android system on the development board does not have the tools to parse the apk file, I cannot install the software by directly opening the apk file. Therefore, after searching various information, I found that you can use the adb tool, so that you can install software on your Android device on your computer.
ADB is the bridge that connects Android phones and PCs, so ADB is also called the Android debugging bridge, which allows users to perform comprehensive operations on their phones on the computer!
Table of contents
2. Configure environment variables
2. Install the apk package to the Android device
first step
Open the developer options in the settings on the Android device, select developer options, and allow USB debugging.
Step 2
To connect an Android device to a computer using a USB cable, select File Transfer MTP for the purpose of USB.
third step
Download adb, there are several steps to follow.
1.Download
Paste the following address into your browser to download it. After downloading, extract it to the directory where you want to place it.
Windows version: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
2. Configure environment variables
Enter Win+R, then enter control system and click OK. You can see obvious advanced system settings.
Then, enter the advanced system settings, click Environment Variables, select the path in the system variable, click New, and put the path of adb.exe in the file you just decompressed into the path of the system variable.
3.Show adb version
Computer Win+R, enter cmd to open the command line window, enter the command
adb version :显示 adb 版本
Displaying the adb version indicates that the installation is successful!
the fourth step
1. Obtain root permissions
Enter the following command on the command line to obtain the permissions of the Android administrator (root user). Android devices may pop up some prompts, such as whether to allow debugging of the device, etc. Just agree to debugging.
adb root
2. Install the apk package to the Android device
Find the file path + the name of the apk package where the apk package you want to install on your Android device is located, and put it into the following command, for example
adb install D:/xxx/xxx.apk
Run the command to install the apk package on your Android device