summaryrefslogtreecommitdiff
path: root/libartbase/base/file_utils.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2021-10-12 14:13:25 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2021-10-20 07:59:43 +0000
commit327cfcf2dfe281de4ac8178da69e1e562881870d (patch)
tree7655b166c3b46d38077ef84f02234e3a122eb403 /libartbase/base/file_utils.cc
parent685d0ef479966811ec103340ef9696f056649285 (diff)
Use the .dm file at runtime for verification.
Bug: 112284845 Test: 674-HelloWorld-Dm Change-Id: Icd07f86cfb2b5428186a4c086f042890eaad249b
Diffstat (limited to 'libartbase/base/file_utils.cc')
-rw-r--r--libartbase/base/file_utils.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libartbase/base/file_utils.cc b/libartbase/base/file_utils.cc
index 0cbc77b6c5..9337e9f949 100644
--- a/libartbase/base/file_utils.cc
+++ b/libartbase/base/file_utils.cc
@@ -519,6 +519,10 @@ std::string GetVdexFilename(const std::string& oat_location) {
return ReplaceFileExtension(oat_location, "vdex");
}
+std::string GetDmFilename(const std::string& dex_location) {
+ return ReplaceFileExtension(dex_location, "dm");
+}
+
std::string GetSystemOdexFilenameForApex(std::string_view location, InstructionSet isa) {
DCHECK(LocationIsOnApex(location));
std::string dir = GetAndroidRoot() + "/framework/oat/" + GetInstructionSetString(isa);