May 2017
Beginner to intermediate
470 pages
10h 49m
English
The source code of system-generated init scripts is located in the $AOSP/system/core/rootdir folder. They are copied to $OUT/root in the build process.
The init process parses the init.rc script first. All other scripts are imported by init.rc and then parsed by the init process. If we look at the following code snippet of init.rc, we can see that there are a few scripts that are imported by init.rc:
# Copyright (C) 2012 The Android Open Source Project # # IMPORTANT: Do not create world writable files or directories. # This is a common source of Android security bugs. # import /init.environ.rc import /init.usb.rc import /init.${ro.hardware}.rc import /init.usb.configfs.rc import /init.${ro.zygote}.rc ...Read now
Unlock full access