diff options
author | 2024-05-03 12:19:43 +0100 | |
---|---|---|
committer | 2024-05-03 16:16:48 +0000 | |
commit | 7c26f98bf3d95616d516dd8cdb0ff4ef64e0b219 (patch) | |
tree | f8d9a99cfc2ace08f7ce54a6c7b76041f51c1ae6 /artd/path_utils.h | |
parent | 4f037d83d0c6a21208290af55bc8a2185f7f19d2 (diff) |
Update file GC for Pre-reboot Dexopt.
- Keep ".staged" files if Pre-reboot Dexopt has run.
- Remove ".staged" files if Pre-reboot Dexopt has not run.
Bug: 311377497
Test: atest ArtServiceTests
Test: m test-art-host-gtest-art_artd_tests
Change-Id: If57e5b6af036ed02ba6f5671dee985dc6d554023
Diffstat (limited to 'artd/path_utils.h')
-rw-r--r-- | artd/path_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/artd/path_utils.h b/artd/path_utils.h index 43a1043b42..1528d0610b 100644 --- a/artd/path_utils.h +++ b/artd/path_utils.h @@ -128,6 +128,8 @@ bool PreRebootFlag(const aidl::com::android::server::art::ArtifactsPath& artifac bool PreRebootFlag(const aidl::com::android::server::art::OutputArtifacts& artifacts); bool PreRebootFlag(const aidl::com::android::server::art::VdexPath& vdex_path); +bool IsPreRebootStagedFile(std::string_view filename); + // Sets the root dir for `ListManagedFiles` and `ListRuntimeImageFiles`. // The passed string must be alive until the test ends. // For testing use only. |