diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-18 11:48:22 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-11-18 11:48:22 -0800 |
commit | ca775941f3b7981aabf3a6a3b84d6c94f4f76aff (patch) | |
tree | 374c3e0f97af70692e0742a5613fbca50399dcfb /core/jni | |
parent | 9522055f1d10b30158b772885bf4befe06fb2a08 (diff) | |
download | frameworks_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.cpp | 6 |
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"); |