diff options
author | 2023-03-06 19:16:48 +0000 | |
---|---|---|
committer | 2023-03-16 16:07:43 +0000 | |
commit | 7da3956e3ff5c96ffd56d5e52057a230536a2d46 (patch) | |
tree | 5750407a3ef6e15a304ff5294fcdd200df030faa /libartbase/base/file_utils.h | |
parent | bbb7177a0b9a82a330a03966d708538d2768ffa1 (diff) |
Revert^4 "Add the mainline framework boot image extensio...
Revert submission 2465993-boot-image-mainline-revert
Reason for revert: Relanding the changes
Reverted changes: /q/submissionid:2465993-boot-image-mainline-revert
Change-Id: I5dd81f74c08faccd1643c2b01826e6a76cbb10c5
Diffstat (limited to 'libartbase/base/file_utils.h')
-rw-r--r-- | libartbase/base/file_utils.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libartbase/base/file_utils.h b/libartbase/base/file_utils.h index f539f5fd55..faec95eabf 100644 --- a/libartbase/base/file_utils.h +++ b/libartbase/base/file_utils.h @@ -78,11 +78,18 @@ std::string GetArtApexData(); // generated at build time). std::string GetPrebuiltPrimaryBootImageDir(); -// Returns the default boot image location (ANDROID_ROOT/framework/boot.art). -// Returns an empty string if ANDROID_ROOT is not set. -std::string GetDefaultBootImageLocation(std::string* error_msg); +// Returns the filename of the first mainline framework library. +std::string GetFirstMainlineFrameworkLibraryFilename(std::string* error_msg); // Returns the default boot image location, based on the passed `android_root`. +// Returns an empty string if an error occurs. +// The default boot image location can only be used with the default bootclasspath (the value of the +// BOOTCLASSPATH environment variable). +std::string GetDefaultBootImageLocationSafe(const std::string& android_root, + bool deny_art_apex_data_files, + std::string* error_msg); + +// Same as above, but fails if an error occurs. std::string GetDefaultBootImageLocation(const std::string& android_root, bool deny_art_apex_data_files); |