Android USB driver installation under Ubuntu to connect to ADB
Turn on USB debugging on the phone
Make sure that the Android device has enabled USB debugging, which is the first step in the connection
ADB command executable
Make sure to add the environment variable of adb
configuration
Add user to plugdev group
Execute the following command to add the current user to the plugdev group
sudo usermod -aG plugdev $LOGNAME
This command will take effect after the current user logs in again, and you can restart it directly. It is recommended to wait until the next step is completed before restarting.
Install udev rules
Execute the following command to install udev rules (the android-sdk-platform-tools-common package contains a set of default udev rules suitable for Android devices and maintained by the community)
apt-get install android-sdk-platform-tools-common
After the installation is complete, restart. At this time, you can use the adb devices command to view the connected device. At this time, you may need to allow usb debugging on the Android device (Andriod devices will pop up a prompt)
quote
Other configuration scheme 1. Other
configuration scheme 2 .
Remark
Author ubuntu version 18.0.4