diff options
| author | 2017-11-28 23:31:46 +0000 | |
|---|---|---|
| committer | 2017-11-28 23:31:46 +0000 | |
| commit | ffaf53ec6e37e90992f024b8da4b12bee550cd67 (patch) | |
| tree | f45bb1c8fa049e141526fd5702466682b00de1c8 /cmds/installd/utils.cpp | |
| parent | 503b79e3db0d6dce40ea0a8e17bbffd6f6176123 (diff) | |
| parent | 7d4ec11b69720fbb166102b9244f293cc359f3a9 (diff) | |
Merge "Add snapshotProfile APIs to installd" am: 98ad260f6b am: 5a49d45535
am: 7d4ec11b69
Change-Id: I19d456c9a1196cb6338ed963d9f1ae5d855b9911
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; |