http://letsgoustc.spaces.live.com/blog/cns!89AD27DFB5E249BA!428.entry
android/system/core/init/readme.txt
2 kind of section in android init script, Actions and Services, defines as follows:
Actions
on trigger
command
command
command
tigger means the condition that fire the following commands. Can be init, boot or propery...
Services
service name pathname [ argument ]*
option
option
...
Default services can be found at android/system/core/rootdir/init.rc, list as below:
service console /system/bin/sh
service adbd /sbin/adbd
service servicemanager /system/bin/servicemanager
service vold /system/bin/vold
#service mountd /system/bin/mountd
service debuggerd /system/bin/debuggerd
service ril-daemon /system/bin/rild
service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
service media /system/bin/mediaserver
service bootsound /system/bin/playmp3
service dbus /system/bin/dbus-daemon --system --nofork
service hcid /system/bin/hcid -s -n -f /etc/bluez/hcid.conf
service hfag /system/bin/sdptool add --channel=10 HFAG
service hsag /system/bin/sdptool add --channel=11 HSAG
service installd /system/bin/installd
service flash_recovery /system/bin/flash_image recovery /system/recovery.img
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment