I\'m new to Android development, and am attempting to run a test application on my actual device. I followed the instructions at http://developer.android.com/guide/developin
None of these solutions worked for me!
The device driver wasn't installing properly and i had to reboot my computer while holding F8 and turn off forced device signatures.
Put the phone in mass storage mode. This took me a day and half.
I am using HTC OneS. Eclipse on Ubuntu 12.04. I had the USB debugging enabled. But after plugged in, it doesn't let me deploy. It was recognized as a device: ????... no permissions
What solved my issue is the USB device permission. I found my answer here.
What I did:
$ sudo vi /etc/udev/rules.d/51-android.rules
I added this 2 lines in the rule file:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0cec", MODE="0666"
SUBSYSTEMS=="usb", SYSFS{product}=="Android Phone", MODE="0666"
My device USB vendor:product is "0bb4:0cec". To find it out, use command >lsusb. Then I unplug/plug my phone. It was recognized.
What usually works for me:
./adb wait-for-device
in terminal in your android-sdk platform-toolsEvery time one of my devices doesn't read, this seems to fix the problem.
An alternative is to repeat all those above steps, but don't disconnect the device (i.e. turn it off, run the command, turn it on).
If that doesn't work, another thing that I found that works for the older devices I use (2.1 update 1 and 2.3) is to unplug the usb, turn off usb debugging, turn back on usb debugging, and reconnect.
I am using an HTC, so it may be different, but for me i have to sync the device with the pc before it will recognize the phone. When its ready, a notification pops saying that the device is attached for debugging.
Also, you need to mark your app as debuggable if you haven't already done that as explained here
When I had this issue, I figured out that my phone's USB connection was set to media sync mode. When I switched it to mass storage mode, the hello world program loaded right up. I did this by dragging down the USB icon in the top tool bar of the phone's home page.