March 2013
Intermediate to advanced
410 pages
11h 49m
English
This appendix contains the default init.rc files found in 2.3/Gingerbread and 4.2/Jelly Bean.[38] I usually dislike books where files are printed for pages on end, and you won’t find much of this in my writings. However, init.rc is one case where the best way to explain something is to actually show it to you. To make it easier for you to follow the operations conducted in the file, I’ve added some callouts throughout to provide insight on key parts of the files. Refer to Chapter 6 for more information regarding the actions, triggers, commands, services, and service options used in init.rc files.
on early-initstart ueventd on init
sysclktz 0 loglevel 3 # setup the global environment
export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin export LD_LIBRARY_PATH /vendor/lib:/system/lib export ANDROID_BOOTLOGO 1 export ANDROID_ROOT /system export ANDROID_ASSETS /system/app export ANDROID_DATA /data export EXTERNAL_STORAGE /mnt/sdcard export ASEC_MOUNTPOINT /mnt/asec export LOOP_MOUNTPOINT /mnt/obb export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycast le.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framewo ...