diff options
| author | 2017-11-28 23:28:05 +0000 | |
|---|---|---|
| committer | 2017-11-28 23:28:05 +0000 | |
| commit | 7d4ec11b69720fbb166102b9244f293cc359f3a9 (patch) | |
| tree | 9edc14c5cad3676bacd01de317183320070b12d6 /cmds/installd/utils.cpp | |
| parent | 8b7f97bb8f44e72ff9f922d272cec3b2b57c4ad0 (diff) | |
| parent | 5a49d45535eabf043b87f02d3c7b7b926645b912 (diff) | |
Merge "Add snapshotProfile APIs to installd" am: 98ad260f6b
am: 5a49d45535
Change-Id: Idd689cac5289f1d6d617bb6a57aac2fa0ef1ee01
Diffstat (limited to 'cmds/installd/utils.cpp')
| -rw-r--r-- | cmds/installd/utils.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmds/installd/utils.cpp b/cmds/installd/utils.cpp index 7dca7c6422..61c9c8ff08 100644 --- a/cmds/installd/utils.cpp +++ b/cmds/installd/utils.cpp @@ -236,6 +236,7 @@ std::string create_data_dalvik_cache_path() { const std::string PROFILE_EXT = ".prof"; const std::string CURRENT_PROFILE_EXT = ".cur"; const std::string PRIMARY_PROFILE_NAME = "primary" + PROFILE_EXT; +const std::string SNAPSHOT_PROFILE_EXT = ".snapshot"; // Gets the parent directory and the file name for the given secondary dex path. // Returns true on success, false on failure (if the dex_path does not have the expected @@ -289,6 +290,14 @@ std::string create_reference_profile_path(const std::string& location, bool is_s } } +std::string create_snapshot_profile_path(const std::string& package, + const std::string& code_path ATTRIBUTE_UNUSED) { + // TODD(calin): code_path is ignored for now. It will be used when each split gets its own + // profile file. + std::string ref_profile = create_reference_profile_path(package, /*is_secondary_dex*/ false); + return ref_profile + SNAPSHOT_PROFILE_EXT; +} + std::vector<userid_t> get_known_users(const char* volume_uuid) { std::vector<userid_t> users; |