O'Reilly logo

Embedded Android by Karim Yaghmour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 1
    start ueventd

on init 2

sysclktz 0

loglevel 3

# setup the global environment 3 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required