1

I want try my application on a chinese device with android.

I try to

lsusb shows :

Bus 001 Device 04: ID 18d1:0002 Google Inc.

In /etc/udev/rules.d/51-android.rules I put :

SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0660"

But it doesn't work.

I can't see my device with adb devices (usb debug is enabled)

Goo
  • 1,318
  • 1
  • 13
  • 31

2 Answers2

1

The answer of Goo is basically correct, but not best practice.

SUBSYSTEM==”usb”, ATTR{idVendor}==”18d1″, MODE=”0660″, GROUP=”plugdev”

is a better way to achieve it, because the rights are granted for the group plugdev and not for everyone.

Afterwards add your user to the plugdev group with this command:

sudo adduser [username] plugdev

Leandros
  • 16,805
  • 9
  • 69
  • 108
0

I had this case one, try to change your 51-android.rules by :

SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666"

and restart adb

edit : to restart adb adb kill-server then adb devices

Goo
  • 1,318
  • 1
  • 13
  • 31