Hi,
I want to ask somebody about proper documentation of init process and 
init.rc scripts.
Right now I'm trying to port 4.2.2 Android to some new device and I had 
faced some problem with init.rc.

Looking to /system/core/init/readme.txt I can be informed that there are 
few triggers for actions: boot, <name>=<value>, device-added-<path>, 
device-removed-<path>, service-exited-<name>.
Also I was informed that:
"Actions and Services implicitly declare a new section.  All commands or 
options belong to the section most recently declared.  Commands or options 
before the first section are ignored"
For reference: 
https://android.googlesource.com/platform/system/core/+/android-4.2.2_r1.2/init/readme.txt

Then I looked to example file:
https://android.googlesource.com/platform/system/core/+/android-4.2.2_r1.2/rootdir/init.rc

And I can see some triggers:
init
fs
post-fs
...

Which even doesn't exists in keywords.h or init_parser.c - how those 
actions are triggered (I know what means post-fs but I wan't to know what 
kind of action IS the "post-fs" and why?, how to extend those actions?).
More over - "include" section which is in readme.txt described as 
"commands" is _before_ first action so should be ignored according 
documentation... (!?!) So why it's at the beginning of example file?

Can somebody point me to real, I mean REAL documentation for init process 
in Andorid?
Because this what is provided by AOSP is really poorly written. To not say "
slovenly".

Thanks
Kamil

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to