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 performed the following setup steps:
in my project
AndroidManifest.xml
file, addedandroid:debuggable="true"
to the<application>
elementOn the device, in the Settings > Security enabled Unknown sources
On the device, in the Settings > Developer options enabled USB debugging
On my computer, created the
/etc/udev/rules.d/51-android.rules
file with the following content:SUBSYSTEM=="usb", ATTR{idVendor}=="04E8", MODE="0666", GROUP="plugdev"
On my computer, run the
chmod a+r /etc/udev/rules.d/51-android.rules
command
Then, on my computer I opened a terminal and executed the adb devices
command, 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 got:
List of devices attached
???????????? no permissions
Why? What am I missing?
In Archlinux this can happen occasionally. The fix:
I had the same problem, the solution is as fellow: (by the way, you don't have to root your device.)
Enjoy.
I had the same problem with my Galaxy S3. My problem was that the
idVendor
value04E8
was not the right one. To find the right one connect your smartphone to the computer and runlsusb
in the terminal. It will list your smartphone like this:So the right
idVendor
value is18d1
. And the line in the/etc/udev/rules.d/51-android.rules
has to be:Then I run
sudo udevadm control --reload-rules
and everything worked!In my case on ubuntu 12.04 LTS, I had to change my HTC Incredible usb mode from charge to Media and then the device showed up under adb. Of course, debugging was already on in both cases.
If anyone faces the following error message when they use
adb devices
Execute the following
That fixed the issue for me on a custom build android device