gingerbread uses a uevent daemon, you can use ueventd.rc to map the devices.
On Tue, May 17, 2011 at 8:29 AM, Amit Pundir <pundira...@gmail.com> wrote: > On Tue, May 17, 2011 at 5:46 AM, George Nychis <gnyc...@gmail.com> wrote: > > Is there a way for me to add a udev rule on my Android device? Not > > for my Android device on my host computer, but on the actual Android > > phone. Is there a way for me to add a udev rule when the phone is > > acting as a USB host? > > Hi, > > There may be more generic way which I'm not aware of but this worked > for me. In $ANDROID_AOSP/system/core/init/devices.c , map your uevents > in this function handle_device_event() > > Regards, > Amit Pundir > > > > > Thanks! > > George > > > > -- > > unsubscribe: android-kernel+unsubscr...@googlegroups.com > > website: http://groups.google.com/group/android-kernel > > -- > unsubscribe: android-kernel+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-kernel > -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel