Thanks Tick. I dug thru devices.c and figured out how to add my device to the devperms partners table via undocumented commands in init.rc Anyone interested should look at system/core/init/keywords.h and builtins.c Also init.c for on early-init so that it happens early enough in the sequence so the perms are available when the USB completes the connection.
Mike On Dec 7, 7:34 pm, Tick <ticktoc...@gmail.com> wrote: > Hi Mike, > You may take a look of system/core/init/device.c. > > Cheers, > Tick > > On Tue, Dec 8, 2009 at 5:28 AM, ms12 <mstic...@gmail.com> wrote: > > I have a GSM radio connected via the USB port on a beagle board. If I > > type chmod 0666 /dev/ttyUSB1 at the console, it connects to the radio > > just fine. If I put the chmod in init.rc, the permissions don't get > > set. I believe the reason is /dev/ttyUSB1 is created after init > > because of the time to do the USB probing and USB/serial setup. > > > I tried adding > > > on device-added-/dev/ttyUSB1 > > chmod 0666 /dev/ttyUSB1 > > chown radio radio /dev/ttyUSB1 > > > to init.rc, but this does not seem to work either. > > > Is there any way to get the permissions set during init on a USB/ > > serial device? > > > Mike > > > -- > > unsubscribe: android-porting+unsubscr...@googlegroups.com > > website:http://groups.google.com/group/android-porting -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting