Appendix D. Default init.rc Files
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.
2.3/Gingerbread’s default init.rc
on early-init start 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 ...
Get Embedded Android now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.