summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2014-11-18 22:49:13 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-11-18 22:49:13 +0000
commit12c172a8015027caae4265ac9bd86cf907723a5b (patch)
tree923333f5c99ac10d4c963b70e01a2fe5887b5dc8
parent8462913d0c19973901a861749b4abbaacdf4b477 (diff)
parentf59fb28cb818d0618ca0c83e80eba12e6ca081ef (diff)
Merge "Frameworks/base: Compiled-classes support"
-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 21d4fbd1ae2a..644f6a6cafa6 100644
--- a/core/jni/AndroidRuntime.cpp
+++ b/core/jni/AndroidRuntime.cpp
@@ -779,6 +779,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");