Leem.fin Leem.fin - 1 year ago 77
Linux Question

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

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 directly on the Samsung handset device, so I did the following setup steps:

  1. in my project AndroidManifest.xml file, add
    to the

  2. On device, Settings > Security enable Unknown sources

  3. On device, Settings > Developer options enable USB debugging

  4. On my computer, create file
    , the content of the file is:

    SUBSYSTEM=="usb", ATTR{idVendor}=="04E8", MODE="0666", GROUP="plugdev"

  5. On my computer, run command
    chmod a+r /etc/udev/rules.d/51-android.rules

Then, I open a terminal and execute command
adb devices
on my computer , I got:

List of devices attached
???????????? no permissions

Since I did not see my device but only "??????? no permissions", I then run the following commands:

adb kill-server
adb start-server
adb devices

But I still get:

List of devices attached
???????????? no permissions

Why? What am I missing??

Answer Source

What works for me is to kill and start the adb server again. On linux: sudo adb kill-server and then sudo adb start-server. Then it will detect nearly every device out of the box.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download