diff options
author | 2025-03-21 09:40:52 -0700 | |
---|---|---|
committer | 2025-03-21 09:40:52 -0700 | |
commit | 69982a895b80ce048a17a45216c3298ef091d354 (patch) | |
tree | a3b767f5cfde69b9c9823f7e6c61d43c3d82f792 /libartbase/base/file_utils.cc | |
parent | ecc715d90910f08d6558918a616968f13756313e (diff) | |
parent | f1cf622ecc1a27d95236dd0ec1da0936182ecafd (diff) |
Support loading SDM files at runtime. am: f1cf622ecc
Original change: https://android-review.googlesource.com/c/platform/art/+/3548339
Change-Id: Ib51474ec7f960f08d3f58b04466e27605d20264c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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)); |