Thanks. This helped me get the G1 recognized on Fedora. I have no clue what else you're talking about (I'm a n00b).
On Oct 30, 8:05 pm, ______ <[EMAIL PROTECTED]> wrote: > There is information at the following link about enabling USB > debugging on the T1 phone in Ubuntu: > > http://code.google.com/android/intro/develop-and-debug.html#developin... > > however those instructions don't work for me in Fedora. I eventually > found a udev rule that did work (the syntax is slightly different in > Fedora), but then discovered the "right" solution is to create a hal/ > PolicyKit rule to match the device then give r/w access to the console > user. > > As root, I saved the following as /usr/share/hal/fdi/policy/ > 20thirdparty/20-tmobile-g1.fdi : > > <?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> > > This gives the device whatever access rights the "pda" device type > gets, which can be changed by running polkit-gnome-authorization > (under org.freedesktop.hal.device-access.pda). By default: > Anyone: No > Console: No > Active Console: Yes > > I had to subsequently reboot my machine (restarting haldaemon caused > hal to give weird errors when the phone was plugged in, but after a > reboot everything was fine.) > > With this file in place, after rebooting with the phone plugged in I > get: > > # ls -lR /dev/bus/usb/001 > crw-r--r-- 1 root root 189, 0 2008-10-30 23:23 001 > crw-r--r-- 1 root root 189, 2 2008-10-30 23:23 003 > crw-rw-r--+ 1 root root 189, 3 2008-10-30 23:26 004 > > The device node is now correctly ACL-controlled (hence the +), however > the console user still only has read permission as they are not part > of the "root" group. > > Additionally, removing the USB plug and plugging it in again causes > the SD card to get mounted as an external drive, and the HAL rule > above doesn't work the second time (i.e. the node is just owned by > root, no ACLs, and has 644 perms). > > What is the correct way to set this up? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

