August 29, 2011
ueventd.rc is the android equvivalent of udev rules, but it scope is very limited. It mentions the permissions and the owner of the newly added file in the system. /ueventd.rc is read by the init deamon itself, and it listens on the netlink socket for events from the kernel. This is similar to how udev deamon listens for the events from the kernel.
Few example lines are as follows:
# Device name permissions owner group owner /dev/null 0666 root root /dev/zero 0666 root root /dev/full 0666 root root /dev/ptmx 0666 root root /dev/cam 0660 root camera /dev/pmem 0660 system graphics /dev/pmem_adsp* 0660 system audio /dev/pmem_camera* 0660 system camera /dev/oncrpc/* 0660 root system /dev/adsp/* 0660 system audio /dev/snd/* 0660 system audio
vold (Volume Deamon), netd (Network Deamon) also listen on events from the kernel. vold manages pulling out and plugging in of sdcard and new usb drives mounted via micro USB cable. netd listens on network interface like 3G, WIFI going up and down.
tags : android