Bug 18292 - Please add ConsoleKit rule for Android USB debugging
Summary: Please add ConsoleKit rule for Android USB debugging
Status: RESOLVED INVALID
Alias: None
Product: ConsoleKit
Classification: Unclassified
Component: PAM module (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: william.jon.mccann
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-29 06:39 UTC by Luke Hutchison
Modified: 2008-10-30 20:35 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Luke Hutchison 2008-10-29 06:39:35 UTC
The T-Mobile G1 Android phone can be debugged over USB, but by default after plugging in the USB device, it is owned by root with and doesn't have world write access.  There are various (now obsolete?) ways of setting up write access based on udev rules to create symlinks combined with pam rules etc, but these solutions aren't ideal because, for example, some people want to debug apps on more than one phone at a time.

It would be great if ConsoleKit could include support for this device.  The match part of the udev rule for the device are:
SUBSYSTEM=="usb",ATTR{idVendor}=="0bb4",ATTR{idProduct}=="0c02"
ConsoleKit would just have to match these device ids and then give rw access to the console user.

Thanks!
Comment 1 Luke Hutchison 2008-10-30 20:35:46 UTC
Hmm, it appears this is not the right place for this bug, based on the fact that hal installs files in /usr/share/hal/fdi/policy/10osvendor, and everything else is supposed to put rules in .../20thirdparty on an as-needed basis.

For reference, the working rule is:

<?xml version="1.0" encoding="UTF-8"?> 

<deviceinfo version="0.2">
  <device>
    <match key="info.subsystem" contains="usb_device">
      <match key="usb_device.vendor_id" int="0x0bb4">
        <match key="usb_device.product_id" int="0x0c02">
          <append key="info.capabilities" type="strlist">access_control</append>
          <merge key="access_control.type" type="string">pda</merge>
          <merge key="access_control.file" type="copy_property">linux.device_file</merge>
        </match>
      </match>
    </match>
  </device>
</deviceinfo>

Closing the bug.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.