summaryrefslogtreecommitdiff
path: root/odrefresh/odrefresh_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'odrefresh/odrefresh_main.cc')
-rw-r--r--odrefresh/odrefresh_main.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/odrefresh/odrefresh_main.cc b/odrefresh/odrefresh_main.cc
index d0378e895d..6505c51458 100644
--- a/odrefresh/odrefresh_main.cc
+++ b/odrefresh/odrefresh_main.cc
@@ -46,6 +46,7 @@ using ::art::odrefresh::OdrConfig;
using ::art::odrefresh::OdrMetrics;
using ::art::odrefresh::OnDeviceRefresh;
using ::art::odrefresh::QuotePath;
+using ::art::odrefresh::ShouldDisablePartialCompilation;
using ::art::odrefresh::ShouldDisableRefresh;
using ::art::odrefresh::SystemPropertyConfig;
using ::art::odrefresh::SystemPropertyForeach;
@@ -177,6 +178,12 @@ int InitializeConfig(int argc, char** argv, OdrConfig* config) {
config->SetSystemServerCompilerFilter(filter);
}
+ if (!config->HasPartialCompilation() &&
+ ShouldDisablePartialCompilation(
+ GetProperty("ro.build.version.security_patch", /*default_value=*/""))) {
+ config->SetPartialCompilation(false);
+ }
+
if (ShouldDisableRefresh(GetProperty("ro.build.version.sdk", /*default_value=*/""))) {
config->SetRefresh(false);
}