1: Use the LSUSB command to view USB devices
[Email protected]:~$ Lsusb
Bus 001 Device 002:id 8087:8000 Intel Corp.
Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 003 Device 001:id 1d6b:0003 Linux Foundation 3.0 root Hub
Bus 002 Device 006:id 5986:0268 Acer, Inc.
Bus 002 Device 005:id 0bda:8761 Realtek Semiconductor Corp.
Bus 002 Device 004:id 138a:0017 Validity Sensors, Inc.
Bus 002 Device 024:id 109B:90C8
Bus 002 Device 002:id 0461:4d80 Primax Electronics, LTD
Bus 002 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
: My phone Idvendor is 109b,idproduct is 90c8
2: Add configuration file
$sudo Vim/etc/udev/rules.d/70-android.rules
70 don't know what it means, 50,51 can
Add a line:subsystem== "USB", attrs{idvendor}== "109b", attrs{idproduct}== "90c8", mode= "0666"
Then add execute permissions and restart the device
$sudo chmod a+rx/etc/udev/rules.d/70-android.rules
$sudo Service Udev Restart
3: Use the ADB command to view the device, prompting no permissions
[Email protected]:~$ adb kill-server
[Email protected]:~$ adb devices
* Daemon not running. Starting it now on Port 5037 *
* Daemon started successfully *
List of devices attached
???????????? No permissions
4: Resolve???????????? No permissions
First use the-s parameter to enter root
[Email protected]:~$ sudo-s
[Email protected]:~# adb kill-server
[Email protected]:~# adb start-server
* Daemon not running. Starting it now on Port 5037 *
* Daemon started successfully *
[Email protected]:~# exit
Performing the ADB devices again successfully shows
[Email protected]:~$ adb devices
List of devices attached
U966device
Running the Android program in ADT will now recognize the phone as usual: