summaryrefslogtreecommitdiff
path: root/artd/path_utils.h
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2025-03-21 03:40:36 -0700
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2025-03-21 03:40:36 -0700
commita7652079683fc97ef40b793312c39a613523262c (patch)
tree55ac1df9ea1d449630016889fbf480dfb528777c /artd/path_utils.h
parent09ac8285d7ad56b01982c02fdcc81741a3697ade (diff)
parentaa405ccd29b7317dfe499fa63cc9fdaef2f049fb (diff)
Add an artd method to create an SDC file. am: aa405ccd29
Original change: https://android-review.googlesource.com/c/platform/art/+/3540979 Change-Id: I37d556aa308550170f8cf8ec8a0e8ccd2b99944e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'artd/path_utils.h')
-rw-r--r--artd/path_utils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/artd/path_utils.h b/artd/path_utils.h
index 1528d0610b..e31115683b 100644
--- a/artd/path_utils.h
+++ b/artd/path_utils.h
@@ -55,6 +55,10 @@ android::base::Result<void> ValidateRuntimeArtifactsPath(
android::base::Result<std::string> BuildArtBinPath(const std::string& binary_name);
+android::base::Result<std::string> BuildOatPath(const std::string& dex_path,
+ const std::string& isa_str,
+ bool is_in_dalvik_cache);
+
// Returns the absolute paths to files built from the `ArtifactsPath`.
android::base::Result<RawArtifactsPath> BuildArtifactsPath(
const aidl::com::android::server::art::ArtifactsPath& artifacts_path);
@@ -96,6 +100,12 @@ android::base::Result<std::string> BuildProfileOrDmPath(
android::base::Result<std::string> BuildVdexPath(
const aidl::com::android::server::art::VdexPath& vdex_path);
+android::base::Result<std::string> BuildSdmPath(
+ const aidl::com::android::server::art::SecureDexMetadataWithCompanionPaths& sdm_path);
+
+android::base::Result<std::string> BuildSdcPath(
+ const aidl::com::android::server::art::SecureDexMetadataWithCompanionPaths& sdc_path);
+
// Takes an argument of type `WritableProfilePath`. Returns the pre-reboot flag by value if the
// argument is const, or by reference otherwise.
template <typename T,