Now that we always have system mounted early, we're starting to load various daemons during the `init` trigger and these daemons need the environment set up from init.environ.rc, so we move it to early-init. This shouldn't need to go any further earlier in the future, since nothing besides ueventd should ever start in early-init. Test: systems boot, early daemons get right environment Change-Id: I02f425a1500377c5de3427afa7872073e77a066f
15 lines
542 B
Text
15 lines
542 B
Text
# set up the global environment
|
|
on early-init
|
|
export ANDROID_BOOTLOGO 1
|
|
export ANDROID_ROOT /system
|
|
export ANDROID_ASSETS /system/app
|
|
export ANDROID_DATA /data
|
|
export ANDROID_STORAGE /storage
|
|
export ANDROID_RUNTIME_ROOT /apex/com.android.runtime
|
|
export EXTERNAL_STORAGE /sdcard
|
|
export ASEC_MOUNTPOINT /mnt/asec
|
|
export BOOTCLASSPATH %BOOTCLASSPATH%
|
|
export SYSTEMSERVERCLASSPATH %SYSTEMSERVERCLASSPATH%
|
|
%EXPORT_GLOBAL_ASAN_OPTIONS%
|
|
%EXPORT_GLOBAL_GCOV_OPTIONS%
|
|
%EXPORT_GLOBAL_HWASAN_OPTIONS%
|