summaryrefslogtreecommitdiff
path: root/runtime/oat/oat_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/oat/oat_file.h')
-rw-r--r--runtime/oat/oat_file.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/oat/oat_file.h b/runtime/oat/oat_file.h
index 9e66e1d4a7..53f1d173d1 100644
--- a/runtime/oat/oat_file.h
+++ b/runtime/oat/oat_file.h
@@ -19,6 +19,7 @@
#include <list>
#include <memory>
+#include <optional>
#include <string>
#include <string_view>
#include <vector>
@@ -426,6 +427,8 @@ class OatFile {
// Returns the mapping info of `dex_file` if found in the BcpBssInfo, or nullptr otherwise.
const BssMappingInfo* FindBcpMappingInfo(const DexFile* dex_file) const;
+ std::optional<std::string_view> GetApexVersions() const;
+
protected:
OatFile(const std::string& filename, bool executable);
@@ -518,6 +521,9 @@ class OatFile {
// by the `dex_filenames` parameter, in case the OatFile does not embed the dex code.
std::vector<std::unique_ptr<const DexFile>> external_dex_files_;
+ // If set, overrides the APEX versions in the header.
+ std::optional<std::string> override_apex_versions_ = std::nullopt;
+
friend class gc::collector::FakeOatFile; // For modifying begin_ and end_.
friend class OatClass;
friend class art::OatDexFile;