1.
First connect the mobile phone to the USB interface, and then enter lsusb on the terminal
Several rows of results appear.
Bus 004 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 003 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 002 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 001 device 003: Id 04e8: 681c Samsung Electronics Co., Ltd
Bus 001 device 001: Id 1d6b: 0002 Linux Foundation 2.0 root Hub
The fourth line is what we want.
2.
Next, run the following command:
Sudo gedit/etc/udev/rules. d/99-android.rules
Add the following line in the edit window.
Subsystem = "USB", sysfs {"Samsung Electronics Co., Ltd" }== "04e8", mode = "0666"
Save, exit, and return to the terminal.
Run the following three commands:
Sudo chmod A + Rx/etc/udev/rules. d/99-android.rules
Sudo/etc/init. d/udev restart
3.
Run the CD command to go to the directory of ADB under your android SDK directory (usually platform-tools or tools), and then run the following command
Sudo./ADB kill-Server
Sudo./ADB start-Server
Sudo./ADB Devices
A result similar to the following indicates that the operation is successful.
List of devices attached <br/>
100089955137 Device
If the following content appears, you must repeat the two commands above.
List of devices attached
???????????? No Permissions
This is also true for other devices!