diff options
Diffstat (limited to 'init.juno.rc')
-rw-r--r-- | init.juno.rc | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/init.juno.rc b/init.juno.rc new file mode 100644 index 0000000..ce0f35d --- /dev/null +++ b/init.juno.rc @@ -0,0 +1,102 @@ +on init + # mount debugfs + mount debugfs /sys/kernel/debug /sys/kernel/debug + +on init + # disable transparent huge pages + write /sys/kernel/mm/transparent_hugepage/enabled "never" + + # See storage config details at http://source.android.com/tech/storage/ + mkdir /mnt/shell/emulated 0700 shell shell + mkdir /storage/emulated 0555 root root + export EXTERNAL_STORAGE /storage/emulated/legacy + export EMULATED_STORAGE_SOURCE /mnt/shell/emulated + export EMULATED_STORAGE_TARGET /storage/emulated + # Support legacy paths + symlink /storage/emulated/legacy /sdcard + symlink /storage/emulated/legacy /mnt/sdcard + symlink /storage/emulated/legacy /storage/sdcard0 + symlink /mnt/shell/emulated/0 /storage/emulated/legacy + + # Disabled virtual memory randomization + # (if randomization is enabled the AEM-JIT will have a lower cache hit rate) + write /proc/sys/kernel/randomize_va_space 0 + +on fs + mount_all /fstab.juno + setprop ro.crypto.fuse_sdcard true + +on post-fs-data + mkdir /data/media 0770 media_rw media_rw + mkdir /data/misc/gatord 0700 root root + + # Set SELinux security contexts for files used by lava. + restorecon_recursive /data/local/tmp/lava + +on post-fs + # insert gator kernel module for DS-5/Streamline + insmod /system/modules/gator.ko + + chmod 0666 /dev/ump + chmod 0666 /dev/ion + chmod 0666 /dev/mali0 + chmod 0666 /dev/graphics/fb0 + +on boot + + setprop ARGH ARGH + setprop ro.radio.use-ppp no + setprop ro.build.product generic + setprop ro.product.device generic + +# 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 + +# Set Display density + setprop ro.sf.lcd_density 160 + +# Set supported opengles version + setprop ro.opengles.version 196608 + +# change permissions for process groups +# https://bugs.launchpad.net/bugs/1037611 + chmod 0660 /dev/cpuctl + +# enable Google-specific location features, +# like NetworkLocationProvider and LocationCollector + setprop ro.com.google.locationfeatures 1 + +# enable test harness + setprop ro.test_harness true + + # Setup paths used for socket communication with the dhcp daemon (dhcpd) + mkdir /data/misc/dhcp 0770 dhcp dhcp + chown dhcp dhcp /data/misc/dhcp + +service dhcpcd_eth0 /system/bin/dhcpcd -aABDKL + class main + group dhcp + oneshot + +service iprenew_eth0 /system/bin/dhcpcd -n + class late_start + disabled + oneshot + +service clock-init /system/bin/hwclock32 + class main + user root + group root + oneshot + +service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated + class late_start + +service gatord /system/bin/gatord -c /data/misc/gatord/configuration.xml + class main + user root + oneshot + seclabel u:r:gatord:s0 |