* Smartphone support
@ 2010-07-01 1:05 Juanje Ojeda
2010-08-05 16:34 ` Juanje Ojeda
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Juanje Ojeda @ 2010-07-01 1:05 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 1062 bytes --]
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
[-- Attachment #2: 0001-Added-udev-acl-tag-to-the-new-android-based-smartpho.patch --]
[-- Type: text/x-patch, Size: 2425 bytes --]
From 8f92370b6102f8b811db9c2ce19d33ecdd77d925 Mon Sep 17 00:00:00 2001
From: Juanje Ojeda <jojeda@emergya.es>
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@emergya.es>
---
| 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
--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
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: Smartphone support
2010-07-01 1:05 Smartphone support Juanje Ojeda
@ 2010-08-05 16:34 ` Juanje Ojeda
2010-08-05 16:50 ` Jim Paris
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Juanje Ojeda @ 2010-08-05 16:34 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]
Hi
Did anyone check this patch? Any questions, advises, anything?
Thanks in advance :-)
2010/7/1 Juanje Ojeda <jojeda@emergya.es>:
> 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
[-- Attachment #2: 0001-Added-udev-acl-tag-to-the-new-android-based-smartpho.patch --]
[-- Type: text/x-patch, Size: 2425 bytes --]
From 8f92370b6102f8b811db9c2ce19d33ecdd77d925 Mon Sep 17 00:00:00 2001
From: Juanje Ojeda <jojeda@emergya.es>
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@emergya.es>
---
| 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
--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
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: Smartphone support
2010-07-01 1:05 Smartphone support Juanje Ojeda
2010-08-05 16:34 ` Juanje Ojeda
@ 2010-08-05 16:50 ` Jim Paris
2010-08-05 16:54 ` Kay Sievers
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jim Paris @ 2010-08-05 16:50 UTC (permalink / raw)
To: linux-hotplug
Juanje Ojeda wrote:
> Hi
>
> Did anyone check this patch? Any questions, advises, anything?
This seems WAY too generic.
> +SUBSYSTEM="usb", ATTR{idVendor}="04e8", TAG+="udev-acl" # Sansung
For example, from http://www.linux-usb.org/usb.ids, this would cover
all of the devices listed below.
-jim
04e8 Samsung Electronics Co., Ltd
0100 Kingston Flash Drive (128MB)
0110 Connect3D Flash Drive
0111 Connect3D Flash Drive
1003 MP3 Player and Recorder
1006 SDC-200Z
2018 WIS09ABGN LinkStick Wireless LAN Adapter
2035 Digital Photo Frame Mass Storage
2036 Digital Photo Frame Mini Monitor
3004 ML-4600
3005 Docuprint P1210
3008 ML-6060 laser printer
300c ML-1210 Printer
300e Laser Printer
3104 ML-3550N
3210 ML-5200A Laser Printer
3226 Laser Printer
3228 Laser Printer
322a Laser Printer
322c Laser Printer
3230 ML-1440
3232 Laser Printer
3236 ML-1450
3238 ML-1430
323a ML-1710 Printer
323b Phaser 3130
323c Laser Printer
323d Phaser 3120
323e Laser Printer
3240 Laser Printer
3242 ML-1510 Laser Printer
3248 Color Laser Printer
324a Laser Printer
324c ML-1740 Printer
324d Phaser 3121
325b Xerox Phaser 3117 Laser Printer
325f Phaser 3425 Laser Printer
3260 CLP-510 Color Laser Printer
3268 ML-1610 Mono Laser Printer
326c ML-2010P Mono Laser Printer
3276 ML-3050/ML-3051 Laser Printer
328e CLP-310 Color Laser Printer
3296 ML-2580N Mono Laser Printer
3409 SCX-4216F Scanner
340c SCX-5x15 series
340d SCX-6x20 series
340e MFP 560 series
340f Printing Support
3412 SCX-4x20 series
3413 SCX-4100 Scanner
3415 Composite Device
3419 Composite Device
341a Printing Support
341b SCX-4200 series
341c Composite Device
341d Composite Device
341f Composite Device
3420 Composite Device
3426 SCX-4500 Laser Printer
3605 InkJet Color Printer
3606 InkJet Color Printer
3609 InkJet Color Printer
3902 InkJet Color Printer
3903 Xerox WorkCentre XK50cx
390f InkJet Color Printer
3911 SCX-1020 series
5000 YP-MF series
5001 YP-100
5002 YP-30
5003 YP-700
5004 YP-30
5005 YP-300
5006 YP-750
500d MP3 Player
5010 MP3 Player
5011 YP-780
5013 YP-60
5015 yepp upgrade
501b MP3 Player
503b YP-U1 MP3 Player
5050 YP-U2 MP3 Player
507d YP-U3 MP3 Player
508b YP-S5 MP3 Player
5a00 YP-NEU
5a01 YP-NDU
5a03 Yepp MP3 Player
5a04 YP-800
5a08 YP-90
5a0f MTP Device
5b01 Memory Stick Reader/Writer
5b02 Memory Stick Reader/Writer
5b03 Memory Stick Reader/Writer
5b04 Memory Stick Reader/Writer
5b05 Memory Stick Reader/Writer
5b11 SEW-2001u Card
5f00 NEXiO Sync
5f01 NEXiO Sync
5f02 NEXiO Sync
5f03 NEXiO Sync
5f04 NEXiO Sync
6601 Z100 Mobile Phone
6611 MITs Sync
6613 MITs Sync
6615 MITs Sync
6617 MITs Sync
6619 MITs Sync
661b MITs Sync
661e Handheld
6620 Handheld
6622 Handheld
6624 Handheld
662e MITs Sync
6630 MITs Sync
6632 MITs Sync
663e D900e Phone
663f SGH-E720/SGH-E840
6640 Usb Modem Enumerator
6708 U600 Phone
6759 D900e Media Player
675a D900e Mass Storage
675b D900e Camera
6795 S5230
681c Galaxy Portal/Spica Android Phone
681d Galaxy Portal/Spica Android Phone
7011 SEW-2003U Card
7021 Bluetooth Device
7061 eHome Infrared Receiver
7080 Anycall SCH-W580
7081 Human Interface Device
8001 Handheld
e020 SERI E02 SCOM 6200 UMTS Phone
e021 SERI E02 SCOM 6200 Virtual UARTs
e022 SERI E02 SCOM 6200 Flash Load Disk
ff30 SG_iMON
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Smartphone support
2010-07-01 1:05 Smartphone support Juanje Ojeda
2010-08-05 16:34 ` Juanje Ojeda
2010-08-05 16:50 ` Jim Paris
@ 2010-08-05 16:54 ` Kay Sievers
2010-08-05 18:55 ` Juanje Ojeda
2010-08-05 18:57 ` Juanje Ojeda
4 siblings, 0 replies; 6+ messages in thread
From: Kay Sievers @ 2010-08-05 16:54 UTC (permalink / raw)
To: linux-hotplug
On Thu, Aug 5, 2010 at 18:34, Juanje Ojeda <jojeda@emergya.es> wrote:
> Did anyone check this patch? Any questions, advises, anything?
I'll actually remove all these specific hardware lists for ACLs from
udev, we should do only do classes of devices, not individual pieces
of hardware.
There is no way for us to manage this in the long term, and it needs
to be thought through what we want here, but it surely isn't a list of
phones in the udev source tarball installed on all systems. :)
Kay
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Smartphone support
2010-07-01 1:05 Smartphone support Juanje Ojeda
` (2 preceding siblings ...)
2010-08-05 16:54 ` Kay Sievers
@ 2010-08-05 18:55 ` Juanje Ojeda
2010-08-05 18:57 ` Juanje Ojeda
4 siblings, 0 replies; 6+ messages in thread
From: Juanje Ojeda @ 2010-08-05 18:55 UTC (permalink / raw)
To: linux-hotplug
2010/8/5 Jim Paris <jim@jtan.com>:
> Juanje Ojeda wrote:
>> Hi
>>
>> Did anyone check this patch? Any questions, advises, anything?
>
> This seems WAY too generic.
>
>> +SUBSYSTEM="usb", ATTR{idVendor}="04e8", TAG+="udev-acl" # Sansung
>
> For example, from http://www.linux-usb.org/usb.ids, this would cover
> all of the devices listed below.
[...]
Yeah, I'm afraid so... :-/
Thanks :-)
--
Juanje Ojeda
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Smartphone support
2010-07-01 1:05 Smartphone support Juanje Ojeda
` (3 preceding siblings ...)
2010-08-05 18:55 ` Juanje Ojeda
@ 2010-08-05 18:57 ` Juanje Ojeda
4 siblings, 0 replies; 6+ messages in thread
From: Juanje Ojeda @ 2010-08-05 18:57 UTC (permalink / raw)
To: linux-hotplug
2010/8/5 Kay Sievers <kay.sievers@vrfy.org>:
> On Thu, Aug 5, 2010 at 18:34, Juanje Ojeda <jojeda@emergya.es> wrote:
>
>> Did anyone check this patch? Any questions, advises, anything?
>
> I'll actually remove all these specific hardware lists for ACLs from
> udev, we should do only do classes of devices, not individual pieces
> of hardware.
>
> There is no way for us to manage this in the long term, and it needs
> to be thought through what we want here, but it surely isn't a list of
> phones in the udev source tarball installed on all systems. :)
That's true, it's very realistic to try to mantain the list in the
long term. I hope there will be a way to manage those devices.
Thanks for your answer :-)
--
Juanje Ojeda
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-08-05 18:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-01 1:05 Smartphone support Juanje Ojeda
2010-08-05 16:34 ` Juanje Ojeda
2010-08-05 16:50 ` Jim Paris
2010-08-05 16:54 ` Kay Sievers
2010-08-05 18:55 ` Juanje Ojeda
2010-08-05 18:57 ` Juanje Ojeda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox