diff options
author | 2022-08-16 19:10:49 +0000 | |
---|---|---|
committer | 2022-08-16 19:10:49 +0000 | |
commit | a890a4421d8890bfaf30a4ca173832d077c8f93c (patch) | |
tree | cae7ca6b1d5f663398c1e0c0c153e1f47681f993 /odrefresh/odrefresh_main.cc | |
parent | a8b07dbb744317f064f48b65edb88199116d134e (diff) | |
parent | 7e2c11f418a336d7579b3894c117b0e5a586af83 (diff) |
Merge "DO NOT MERGE - Merge Android 13"
Diffstat (limited to 'odrefresh/odrefresh_main.cc')
-rw-r--r-- | odrefresh/odrefresh_main.cc | 7 |
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); } |