From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev rule needed for Android USB debugging
Date: Wed, 29 Oct 2008 05:49:26 +0000 [thread overview]
Message-ID: <20081029054926.GA12356@kroah.com> (raw)
In-Reply-To: <3a0a97520810282119u69870823se6d97448c03e36e6@mail.gmail.com>
On Wed, Oct 29, 2008 at 12:19:39AM -0400, Luke Hutchison wrote:
> Debugging the new T-Mobile G1 Android phone over a USB transport
> doesn't work out of the box on Linux, because udev does not
> automatically create a device node for the phone in
> /dev/bus/usb/###/### when the phone is plugged in. Interestingly, the
> correct entry is created in /proc/bus/usb by hotplug, and the phone
> works fine as a mass storage device, but as adb (the Android debugger)
> scans through /dev/bus/usb for Android devices, it does not detect the
> phone by default.
>
> Adding the following rule causes the device node to be created:
>
> SUBSYSTEM="usb",ATTR{idVendor}="0bb4",ATTR{idProduct}="0c02"
>
> Why would this rule need to be added for the device node to be
> created? Shouldn't udev just create the device node even if it
> doesn't recognize the device?
Yes, it should, I don't understand what this rule does. It only
contains rules to match a device, and then does nothing with it.
> The above rule doesn't give the console user the needed r/w perms on
> the device, this will still need to be handled by ConsoleKit or
> similar.
Exactly.
What does running 'udevadm monitor' and then plugging the device in
show?
> Somehow generically fixing this upstream would be very helpful as
> (based on various G1 dev forums) the exact udev rule needed to get
> this working seems to vary across distributions.
No new rule should be needed at all to create the usbfs device node for
it, the "default" ones should work just fine.
thanks,
greg k-h
next prev parent reply other threads:[~2008-10-29 5:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-29 4:19 udev rule needed for Android USB debugging Luke Hutchison
2008-10-29 5:49 ` Greg KH [this message]
2008-10-29 13:32 ` Luke Hutchison
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081029054926.GA12356@kroah.com \
--to=greg@kroah.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).