Posts tagged “udev”

Udev rules for Nexus One and Dream/Magic

Just found out that I had to change my udev rules for my Nexus One to work with my laptop, which I had made rules for to work with my HTC Magic – the vendor IDs have changed a bit for the Nexus One, so for the Nexus One I use the following rules which reside in /etc/udev/rules.d/50-android.rules

1
2
3
4
SUBSYSTEM=="usb|usb_device", SYSFS{idVendor}=="18d1", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="usb|usb_device", SYSFS{idVendor}=="0bb4", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="usb|usb_device", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", SYMLINK+="android_adb"
SUBSYSTEM=="usb|usb_device", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"

This works well with both adb and fastboot.

Oh and for reference I had the following rules for my Magic which ought to work with the Dream as well:

1
2
3
SUBSYSTEM=="usb|usb_device", SYSFS{idVendor}=="0bb4", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="usb|usb_device", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
SUBSYSTEM=="usb|usb_device", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", SYMLINK+="android_adb"