Wake word with the screen off: the sheet stays over the lock screen and listens
CI / check (push) Canceled after 0s

A phone whose screen is off is locked. AssistActivity.take() sent every
locked opening through requestDismissKeyguard and finished the activity on
onDismissCancelled / onDismissError -- which is Android's answer when nobody
unlocks. So the wake word lit the screen, showed the sheet, and closed it.

lockedStart() decides now: a way in that means to speak (the wake word, a
headset's button) stays and listens; what is heard is held in the state
(waiting), shown as the person's own question with "Unlock to send", and
Android is asked to unlock at once. Not unlocking leaves the sheet as it is.
The question is asked on unlock (the dismiss callback or USER_PRESENT). The
other locked openings ask to unlock first, as before.

Nothing from the account over the lock screen still holds, and a little more
than before: turns that were on the sheet when the phone locked are not
drawn while it is locked (onStart reads the keyguard again), and a sheet
over the lock screen goes when the screen goes off. The screen is kept on
while it listens or works.

The session (screen on, locked) listens over the lock screen as well and
hands what it heard to the activity.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Fable 5.2 committed 2026-11-13 14:30:41 +00:00
1 parent 7ca44ef5e2
commit 5e45293462
19 files changed
+303 -26

No files matched your search

+2
View File
@@ -451,6 +451,8 @@ STRINGS: dict[str, str] = {
"assist_say_it": "Say it, then pause",
"assist_type": "Type instead",
"assist_writing_down": "Writing down what you said…",
"assist_unlock_to_send": "Unlock to send",
"assist_locked_line": "The phone is locked. Nothing is sent, and no answer is shown, until you unlock it.",
"assist_conversation": "In conversation",
"assist_conversation_line": "I listen again after each answer. Say “stop” to end.",
"assist_conversation_end": "End",