General: Record the interrupted-session device verification - #20
Merged
Conversation
The Pixel 7a run on 2026-07-25 exercised interrupted-session detection end to end: a force-stop mid-session left the limit off, the next open restored it and showed the interruption card, dismissal cleared it, a force-stop without a session recorded nothing, and a real reboot restored via boot recovery without showing a card. Also drops the recovery-notification known gap, which is closed — the notification is now cancelled on a later successful restore, convergence, or explicit policy write. The session-validation protocol gains the two interruption expectations plus the battery-simulation trick needed to run them on a device sitting at its limit.
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.
What changed
No user-facing behavior change — documentation only. The qualification ledger now records that interrupted-session detection was verified on real hardware, and a stale known-gap entry is removed.
Technical Context
lynx, A16/API36, WSS-granted) exercised the whole path: a force-stop mid-session leftcharge_optimization_mode=0while the app was dead, the next open restored it to1and surfaced the card (USER_STOPPED/RESTORED_LATE), Dismiss cleared both card and stored keys, a force-stop without a session recorded nothing, and a real reboot restored via boot recovery with no card — the boot-count guard doing its job.dumpsys activity exit-infoconfirmed the classifier matched the owning PID's exit (reason 10, subreason FORCE_STOP).NOT_CHARGING, which ends a session the moment it starts, so the lifecycle has to be driven withdumpsys battery set status/leveland reset afterwards.