Search code examples
androidlinux-kernelbootinitandroid-kernel

android boot - where is the init.%hardware%.rc read in init.c ? where are services started?


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.


Solution

  • Ok got it - both questions are answered in init.rc.

    NB: I refer to KitKat - YMMV