diff options
author | Rob Herring <robh@kernel.org> | 2016-01-08 16:22:26 -0600 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2016-01-08 16:22:26 -0600 |
commit | aa08a7864de3d7b6675ed15486218e80f3f79080 (patch) | |
tree | f8714f8047b5718a7e0510517ee99837668f86f7 /init.rc |
Initial commit
This is a partially generated device configuration allowing building
same config on multiple architectures. Since the Android build system
uses TARGET_PRODUCT to set the build path and requires it match a
directory under device/, this setup allows trivially adding
architectures or other configuration options.
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'init.rc')
-rw-r--r-- | init.rc | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -0,0 +1,34 @@ +on fs + mount_all /fstab.unknown + +on early-init + mount debugfs debugfs /sys/kernel/debug + +# setprop ro.kernel.qemu 1 + + setprop ro.hardware.gralloc drm + setprop ro.hardware.hwcomposer drm + setprop debug.sf.no_hw_vsync 1 + setprop hwc.drm.use_framebuffer_target 1 + setprop hwc.drm.use_overlay_planes 0 + +# setprop debug.sf.nobootanimation 1 +# setprop debug.egl.callstack 1 +# setprop debug.egl.trace 1 + +on init + # See storage config details at http://source.android.com/tech/storage/ + mkdir /storage/sdcard 0555 root root + + export EXTERNAL_STORAGE /storage/sdcard + + # Support legacy paths + #symlink /storage/sdcard /sdcard + #symlink /storage/sdcard /mnt/sdcard + +on boot +# fake some battery state + setprop status.battery.state Slow + setprop status.battery.level 5 + setprop status.battery.level_raw 50 + setprop status.battery.level_scale 9 |