set up device for development (???????????? no permissions)

后端 未结 26 2499
再見小時候
再見小時候 2020-11-22 12:27

I am using a Samsung galaxy nexus phone (Android 4.0 platform) .

I am developing Android app on Ubuntu linux OS. I would like to run my application

26条回答
  •  广开言路
    2020-11-22 13:24

    I had the same problem with my Galaxy S3. My problem was that the idVendor value 04E8 was not the right one. To find the right one connect your smartphone to the computer and run lsusb in the terminal. It will list your smartphone like this:

    Bus 002 Device 010: ID 18d1:d002 Google Inc.
    

    So the right idVendor value is 18d1. And the line in the /etc/udev/rules.d/51-android.rules has to be:

    SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev" 
    

    Then I run sudo udevadm control --reload-rules and everything worked!

提交回复
热议问题