adb doesn't get phone's device name/number
- by Dona Hertel
Okay, I have a strange problem I haven't seen listed anywhere. I'm developing an android app and I would like to run it on my Huawei Ascend. I have set up a file in /etc/udev/90-android.rules with the line:
SUBSYSTEM=="usb", SYSFS{idVendor}=="12d1", MODE="0666"
where '12d1' is the correct vendor ID for this phone (I verified this with 'lsusb' command).
When I plug in the phone (it does have debugging on) and restart the adb server I get a connection but the name field does not get set. The output to 'adb devices' is:
List of devices attached \n
???????????? device
Plugging and unplugging the cable doesn't resolve this. Neither does restarting the adb server. Nor does a total reboot of both my computer or the phone.
This is fine as I can get logs and a shell. The problem is that in the eclipse plugin, the device's name is list as "????????????" and so when it tries connect, it quits with an error message of 'device not found' even though the device is listed and 'online'. Is there something else I need to do? Do I need to set the name of the device somehow?
cocofan
P.S.: The app has 'debuggable' set to true in the manifest file.