diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-08-18 10:05:48 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-08-18 10:05:48 +0000 |
commit | 159dff5fbc4a94e563a1c70635c3005626f6fe79 (patch) | |
tree | ca9076e2dc02d2bc2d7bf4dd45f578abe83ed074 | |
parent | 5c827977074c0ee04b7613ac2ce649598ef6d42c (diff) | |
parent | 852a46ac0ca5bc6097dae90fcef5081f7ab6e26d (diff) |
Snap for 7652454 from 852a46ac0ca5bc6097dae90fcef5081f7ab6e26d to s-keystone-qcom-release
Change-Id: I27a8dcfb8b71bbbcdf6f02d63e725b8333d18bb1
-rw-r--r-- | odrefresh/odrefresh.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/odrefresh/odrefresh.cc b/odrefresh/odrefresh.cc index cda39eee04..2cef50dfb2 100644 --- a/odrefresh/odrefresh.cc +++ b/odrefresh/odrefresh.cc @@ -1139,7 +1139,13 @@ class OnDeviceRefresh final { AddDex2OatInstructionSet(&args, isa); const std::string jar_name(android::base::Basename(jar)); const std::string profile = Concatenate({GetAndroidRoot(), "/framework/", jar_name, ".prof"}); - AddDex2OatProfileAndCompilerFilter(&args, profile); + std::string compiler_filter = + android::base::GetProperty("dalvik.vm.systemservercompilerfilter", "speed"); + if (compiler_filter == "speed-profile") { + AddDex2OatProfileAndCompilerFilter(&args, profile); + } else { + args.emplace_back("--compiler-filter=" + compiler_filter); + } const std::string image_location = GetSystemServerImagePath(/*on_system=*/false, jar); const std::string install_location = android::base::Dirname(image_location); |