summaryrefslogtreecommitdiff
path: root/init.rc
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2016-01-08 16:22:26 -0600
committerRob Herring <robh@kernel.org>2016-01-08 16:22:26 -0600
commitaa08a7864de3d7b6675ed15486218e80f3f79080 (patch)
treef8714f8047b5718a7e0510517ee99837668f86f7 /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.rc34
1 files changed, 34 insertions, 0 deletions
diff --git a/init.rc b/init.rc
new file mode 100644
index 0000000..40db916
--- /dev/null
+++ b/init.rc
@@ -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