summaryrefslogtreecommitdiffstats
path: root/core/jni
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-11-18 11:48:22 -0800
committerAndreas Gampe <agampe@google.com>2014-11-18 11:48:22 -0800
commitca775941f3b7981aabf3a6a3b84d6c94f4f76aff (patch)
tree374c3e0f97af70692e0742a5613fbca50399dcfb /core/jni
parent9522055f1d10b30158b772885bf4befe06fb2a08 (diff)
downloadframeworks_base-ca775941f3b7981aabf3a6a3b84d6c94f4f76aff.zip
frameworks_base-ca775941f3b7981aabf3a6a3b84d6c94f4f76aff.tar.gz
frameworks_base-ca775941f3b7981aabf3a6a3b84d6c94f4f76aff.tar.bz2
Frameworks/base: Compiled-classes support
Let AndroidRuntime check for /system/etc/compiled-classes and push it to the runtime for boot image creation. Bug: 18410571 Change-Id: I2510316381f2661166af24d7e14b013f4e045556
Diffstat (limited to 'core/jni')
-rw-r--r--core/jni/AndroidRuntime.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp
index c5f1d88..1fbd4a1 100644
--- a/core/jni/AndroidRuntime.cpp
+++ b/core/jni/AndroidRuntime.cpp
@@ -787,6 +787,12 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv)
addOption("-Ximage-compiler-option");
addOption("--image-classes=/system/etc/preloaded-classes");
+ // If there is a compiled-classes file, push it.
+ if (hasFile("/system/etc/compiled-classes")) {
+ addOption("-Ximage-compiler-option");
+ addOption("--compiled-classes=/system/etc/compiled-classes");
+ }
+
property_get("dalvik.vm.image-dex2oat-flags", dex2oatImageFlagsBuf, "");
parseExtraOpts(dex2oatImageFlagsBuf, "-Ximage-compiler-option");