diff options
author | 2025-03-21 20:05:44 -0700 | |
---|---|---|
committer | 2025-03-21 20:05:44 -0700 | |
commit | b61923778ebb23c5b282ff67b509493a96593419 (patch) | |
tree | d59971c5123aae888aa7de90665c9a3d3fc9a4d8 /libartbase/base/file_utils.cc | |
parent | b6f024a322376684cb357b48767353f18fb39dfc (diff) | |
parent | b73b25fdd947faef7856ba9277581553a96f8675 (diff) |
Snap for 13256841 from b73b25fdd947faef7856ba9277581553a96f8675 to 25Q2-release
Change-Id: Ib9d9918eb8a5bbf74e53ba61aaf7a2121c45a357
Diffstat (limited to 'libartbase/base/file_utils.cc')
-rw-r--r-- | libartbase/base/file_utils.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libartbase/base/file_utils.cc b/libartbase/base/file_utils.cc index 2acebb9b4f..4253fa1ce7 100644 --- a/libartbase/base/file_utils.cc +++ b/libartbase/base/file_utils.cc @@ -715,6 +715,15 @@ std::string GetDmFilename(const std::string& dex_location) { return ReplaceFileExtension(dex_location, kDmExtension); } +std::string GetSdmFilename(const std::string& dex_location, InstructionSet isa) { + return ReplaceFileExtension(dex_location, + StringPrintf("%s%s", GetInstructionSetString(isa), kSdmExtension)); +} + +std::string GetSdcFilename(const std::string& oat_location) { + return ReplaceFileExtension(oat_location, kSdcExtension); +} + // check for the file in /system, followed by /system_ext std::string GetSystemOdexFilenameForApex(std::string_view location, InstructionSet isa) { DCHECK(LocationIsOnApex(location)); |