3

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.

Mr_and_Mrs_D
  • 32,208
  • 39
  • 178
  • 361
  • It's sometimes hard to track which of various possibilities in source end up on a runnable build. I believe recent Android releases now have a working `grep` with the -R recursive flag, so I might be tempted to use that on an emulator to figure out where these things are in that particular example. It would be harder on a device since so much is locked down now even against reading, but on the emulator the adb shell runs as root. – Chris Stratton Dec 13 '13 at 18:01
  • @ChrisStratton: I am mainly interested in a general walkthrough of the boot process, not in any particular device's very precise boot details – Mr_and_Mrs_D Dec 13 '13 at 18:12

1 Answers1

4

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

NB: I refer to KitKat - YMMV

Community
  • 1
  • 1
Mr_and_Mrs_D
  • 32,208
  • 39
  • 178
  • 361