Going through the code in init.c
and trying to figure out 2 things:
Where is the hardware specific init.%hardware%.rc read ?
Where are the services started - meaning zygote, /system/bin/servicemanager etc
An example of an init.%hardware%.rc would be appreciated.
Ok got it - both questions are answered in init.rc.
hardware specific
init.%hardware%.rc
read at http://androidxref.com/4.3_r2.1/xref/system/core/rootdir/init.rc#8, where we see the lineNow,
ro.hardware
is read from the command line (main, process_kernel_cmdline and finally export_kernel_boot_props). Where is the command line, well...Services started: in main the boot action is triggered, which contains the lines
that start all the core and main services. Got the info from Where are the Android system services started?
NB: I refer to KitKat - YMMV