Oneplus 6 with Ubuntu 16.04

I met this error blow:

$ adb devices
List of devices attached
471bc66c        no permissions (user in plugdev group; are your udev rules wrong?); see 
[http://developer.android.com/tools/device.html]

So I checked lsusb,

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 138a:0090 Validity Sensors, Inc. 
Bus 001 Device 003: ID 04f2:b531 Chicony Electronics Co., Ltd 
Bus 001 Device 007: ID 2a70:4ee7  #=> This is my oneplus 6
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

android – set up device for development (???????????? no permissions) – Stack Overflow

Then I added udev rule.

$ sudo cat /etc/udev/rules.d/51-android.rules
# adb protocol on oneplus 6
SUBSYSTEM=="usb", ATTR{idVendor}=="2a70", ATTR{idProduct}=="4ee7", MODE="0666", GROUP="plugdev"

After that

sudo service udev restart
adb kill-server
adb start-server
$ adb devices                                                                           
List of devices attached
471bc66c        unauthorized

I “authorized this computer” in popup,

$ adb devices
List of devices attached
471bc66c        device

It works!

広告