aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2013-09-17 17:23:44 +0530
committerAmit Pundir <amit.pundir@linaro.org>2013-09-26 13:23:33 +0530
commit4aae223b1f078e2143ea07d1180352b7c23ee6c1 (patch)
tree89ba742cd0da52b2ca86eeff5b8c55423fa64791
parent603163625281ea6b0f14af8b326e44e3ac4196fb (diff)
downloadvexpress-4aae223b1f078e2143ea07d1180352b7c23ee6c1.tar.gz
init.v2p-aarch64: speed up boot process
- Disable virtual memory randomization - Disable bootanimation - Disable dalvik dexopt verification - Disable extended JNI checks Change-Id: Icb59099316ea8ea3dd09e7ab184ab00d9dee16a6 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r--init.v2p-aarch64.rc15
1 files changed, 15 insertions, 0 deletions
diff --git a/init.v2p-aarch64.rc b/init.v2p-aarch64.rc
index 2a6838a..85f0517 100644
--- a/init.v2p-aarch64.rc
+++ b/init.v2p-aarch64.rc
@@ -16,6 +16,10 @@ on init
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 post-fs-data
mkdir /data/media 0770 media_rw media_rw
@@ -49,6 +53,17 @@ on boot
chown system system /sys/class/graphics/fb0/fit_to_screen
chown system system /sys/class/graphics/fb1/overlays
+ # Disable bootanimation to speed up boot
+ setprop ro.kernel.android.bootanim 0
+ setprop debug.sf.nobootanimation 1
+
+ setprop ro.test_harness true
+ # See http://www.netmite.com/android/mydroid/2.0/dalvik/docs/embedded-vm-control.html
+ # Disable verification, should speed things up
+ setprop dalvik.vm.dexopt-flags v=n
+ # Disable extended JNI checks, should speed things up
+ setprop dalvik.vm.checkjni false
+
service faketsd /system/bin/faketsd
class main
user bluetooth