I was developing a quick prototype for an Android application today, and was having some trouble getting my Samsung Galaxy S working on Linux. Running “adb devices” only revealed it as “????????” – so I was not able to launch my application on the device.
The fix was pretty simple, and would be easy to find if you’re smart enough to poke around the documentation a little – but I ended up Googling for it, so maybe someone else will do the same. Here’s how I made it work on Ubuntu 10.10:
- Create a file /etc/udev/rules.d/51-android.rules as root.
- Open up your favourite editor and put the following line in the file:
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666" - Make it executable: chmod a+r /etc/udev/rules.d/51-android.rules
That’s all it took. The above should work for all Samsung devices, the Android documentation has a reference to other vendor IDs that you might use if you don’t have a Samsung device.
very nice!