summaryrefslogtreecommitdiff
path: root/runtime/oat/oat_file_assistant.cc
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2025-03-12 16:45:38 +0000
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-03-20 16:33:35 -0700
commit5045a8060a75ccccea94eac7363744ed63580ff9 (patch)
treeeeb8a7d5d62bbdd9d5968153a9c414bff2b1d7fd /runtime/oat/oat_file_assistant.cc
parentb2d23dd55d0f1d16beb43a247d62bf09a8060665 (diff)
Allow APEX versions in the OAT header to be overriden.
APEX versions are stringified mtime's of the APEXes installed on device, for detecting samegrade placebos (go/samegrade-placebos). In the case of Cloud Compilation, we cannot put the APEX versions in the OAT header because the OAT file is generated on the server. Instead, we put the APEX versions in a separate file (SDC file) when the SDM file is being installed on device. Therefore, we need a way to override the APEX versions in the OAT header. This is a no-op change. Bug: 377474232 Test: m test-art-host-gtest-art_runtime_tests Change-Id: I69658b61942979ff7f56e4908ce3204bd0a2116e
Diffstat (limited to 'runtime/oat/oat_file_assistant.cc')
-rw-r--r--runtime/oat/oat_file_assistant.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/oat/oat_file_assistant.cc b/runtime/oat/oat_file_assistant.cc
index f5d6832cff..8df8459589 100644
--- a/runtime/oat/oat_file_assistant.cc
+++ b/runtime/oat/oat_file_assistant.cc
@@ -491,10 +491,7 @@ OatFileAssistant::OatStatus OatFileAssistant::GivenOatFileStatus(const OatFile&
return kOatBootImageOutOfDate;
}
if (!gc::space::ImageSpace::ValidateApexVersions(
- file.GetOatHeader(),
- GetOatFileAssistantContext()->GetApexVersions(),
- file.GetLocation(),
- error_msg)) {
+ file, GetOatFileAssistantContext()->GetApexVersions(), error_msg)) {
return kOatBootImageOutOfDate;
}
}