1. Run sudo vi/etc/udev/rules. d/51-Android.rules to create the 51-android.rules configuration file.
2. Add an entry in the following data format:
SUBSYSTEM = "usb", ATTR {idVendor} = "xxxx1", ATTR {idProduct} = "xxxx2", MODE = "0600", OWNER = "xxxx3"
3. Enter xxx1, xxx2, and xxx3 based on your device information.
Where,
(1) xxx3 is the user name when you log on to mongout.
(2) how to search for xxx1 and xxx2,
Run the command lsusb to find your usb Device (). My Device entry is: Bus 001 Device 014: ID 2207: 0006
Among them, 2207 is the idVendor of the device, and 0006 is the idProduct.
4. Run the sudo chmod a + rx 51-android.rules command to modify the permissions of 51-android.rules and add the readable and executable permissions to him.
5. Run the command. vi ~ /. Android/adb_usb.ini: Create adb_usb.ini and add the idVendor of the device you just found.
6. Finally, the last step is reached,
Run the following command: adb kill-server and adb devices ,: