Hi guys :-) I was trying to debug my Android based phone (Nexus One) and I found that I needed some extra permissions. I also found a bug about it[1] which was solved by adding ACL to the specific model so it could work. This change was made at revision 4fe41ac at the 70-acl.rules file. The problem with that is that the line has idVendor and idProduct, so the new models from the same vendor (HTC) are not supported. But there are new vendors with a lot of models. The list is almost (the Nexus One is missing) updated at the Android developer site: http://developer.android.com/guide/developing/device.html#VendorIds I think if we left just the idVendor we won't need to update the list so much and the list will keep sorter. I've removed the idProduct and added the whole list of vendors and works for me. With my Nexus One. It should be working with any HTC, Motorola, etc with Android. I've attached the patch in case you guys see this change good and useful. Greetings [1] https://bugs.launchpad.net/ubuntu/+source/udev/+bug/316215 -- Juanje Ojeda
From 8f92370b6102f8b811db9c2ce19d33ecdd77d925 Mon Sep 17 00:00:00 2001 From: Juanje Ojeda <jojeda@xxxxxxxxxx> Date: Thu, 1 Jul 2010 02:41:51 +0200 Subject: [PATCH] Added udev-acl tag to the new android based smartphones It was just supported the G1 but now there are lots of new devices. As long as each vendor has many models and Adndroid developer site recomend to use just the idVendor, the idProduct has been removed, so the new models from those vendors will be supported. The list of vendors has been extracted from: http://developer.android.com/guide/developing/device.html#VendorIds And it has been added the Google Nexus One, which wasn't in that list. Signed-off-by: Juanje Ojeda <jojeda@xxxxxxxxxx> --- extras/udev-acl/70-acl.rules | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/extras/udev-acl/70-acl.rules b/extras/udev-acl/70-acl.rules index 8300ec2..7a12f4f 100644 --- a/extras/udev-acl/70-acl.rules +++ b/extras/udev-acl/70-acl.rules @@ -65,7 +65,22 @@ ENV{ID_SMARTCARD_READER}=="*?", TAG+="udev-acl" SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", TAG+="udev-acl" # smart phones -SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", TAG+="udev-acl" +SUBSYSTEM=="usb", ATTR{idVendor}=="0502", TAG+="udev-acl" # Acer +SUBSYSTEM=="usb", ATTR{idVendor}=="413c", TAG+="udev-acl" # Dell +SUBSYSTEM=="usb", ATTR{idVendor}=="043c", TAG+="udev-acl" # Foxconn +SUBSYSTEM=="usb", ATTR{idVendor}=="091e", TAG+="udev-acl" # Garmin-Asus +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", TAG+="udev-acl" # HTC +SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", TAG+="udev-acl" # Huawei +SUBSYSTEM=="usb", ATTR{idVendor}=="0482", TAG+="udev-acl" # Kyocera +SUBSYSTEM=="usb", ATTR{idVendor}=="1004", TAG+="udev-acl" # LG +SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", TAG+="udev-acl" # Motorola +SUBSYSTEM=="usb", ATTR{idVendor}=="0955", TAG+="udev-acl" # Nvidia +SUBSYSTEM=="usb", ATTR{idVendor}=="10a9", TAG+="udev-acl" # Pantech +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", TAG+="udev-acl" # Sansung +SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", TAG+="udev-acl" # Sharp +SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", TAG+="udev-acl" # Sony Ericsson +SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", TAG+="udev-acl" # ZTE +SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", TAG+="udev-acl" # Nexus One # color measurement devices ENV{COLOR_MEASUREMENT_DEVICE}=="*?", TAG+="udev-acl" -- 1.7.0.4