udev rules on Android device?

3,033 views
Skip to first unread message

George Nychis

unread,
May 16, 2011, 8:16:36 PM5/16/11
to Android Linux Kernel Development
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?

Thanks!
George

Amit Pundir

unread,
May 17, 2011, 2:29:00 AM5/17/11
to android...@googlegroups.com

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-kerne...@googlegroups.com
> website: http://groups.google.com/group/android-kernel

hedwin

unread,
May 17, 2011, 4:16:03 AM5/17/11
to android...@googlegroups.com
gingerbread uses a uevent daemon, you can use ueventd.rc to map the devices.

hedwin

unread,
May 17, 2011, 4:18:20 AM5/17/11
to android...@googlegroups.com
wrt usb host support, on the 2011 google io days it was mentioned that android 3.1 will support usb host.
Reply all
Reply to author
Forward
0 new messages