Repository navigation
add setting to clear recent apps on reboot - #478
Open
cameronaaron wants to merge 1 commit into
Open
cameronaaron wants to merge 1 commit into
cameronaaron wants to merge 1 commit into
Conversation
Recent tasks, their snapshots and task images are persisted in credential encrypted storage and restored when the user is unlocked after a reboot. Add an opt-in per-user setting to discard them instead, so that the recent apps screen starts empty after a reboot. When the setting is enabled, the persisted task files are listed without being loaded, which makes restoring treat all of them as obsolete and delete them. A TaskPersister cleanup pass is then triggered to delete the snapshots and task images of the tasks that weren't restored.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For GrapheneOS/os-issue-tracker#8112
Recent tasks along with their snapshots and task images are restored from credential encrypted storage when the user is unlocked after a reboot. This adds an opt-in per-user setting (
CLEAR_RECENTS_ON_REBOOT, off by default) to discard them instead.When it's enabled, the task files are listed without being loaded, so
restoreTasksForUserLockedtreats all of them as obsolete and deletes them. A TaskPersister cleanup pass is then triggered (after the user is marked as loaded, since the pass only covers loaded users) to remove the leftover snapshots and task images.Settings toggle is in a separate PR.