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
(cherry picked from commit ca775941f3)
Change-Id: I2510316381f2661166af24d7e14b013f4e045556
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user