Wake word: the wake runs outside the loop it pauses; what Android says is recorded
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
Review W1 (must): wake() was a suspend function run inside the hearing job, and its own first step -- holding the microphone for the sheet -- paused the listener, which cancelled that job: no wait for the sheet, no fallback, and no "Last wake" record for a real wake. - WakeListener hands `heard` to the scope beside the listening, so a pause never cancels the answer (test: a suspending heard that pauses the plan). The service runs the wake on the app's own scope, one at a time, holds the microphone for the whole attempt, and writes the record NonCancellable. - WakeOpener holds the order of what is tried, apart from Android, with tests: wait up to 1 s for the connection when Android says the service is active; "opened" only once a sheet says it is up; a session that was not refused gets a second wait before anything else is shown (W3: never two sheets -- and the session closes a sheet the wake word opened in its place); the activity counts only where Android will start it. - The record gains isActiveService, FEATURE_VOICE_RECOGNIZERS, screen, keyguard, app visible, ms until the sheet, the service's onCreate and onDestroy times, onPrepareToShowSession / onShowSessionFailed (API 34+), and whether the connection was waited for. Settings says when the role is held but Android does not use LLeMbas as its voice assistant. - AssistLink.shutdown is guarded by instance. W2: a session counts as up once per show; the activity from onStart to onStop. W4: the activity says it is up from onStart and onNewIntent, and turns the screen on there too. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
22 files changed
+740
-97
No files matched your search
@@ -518,6 +518,13 @@ STRINGS: dict[str, str] = {
|
||||
"wake_link_ready": "Android had connected the assistant at %1$s.",
|
||||
"wake_link_shutdown": "Android had disconnected it at %1$s.",
|
||||
"wake_link_later": "Android connected it again at %1$s.",
|
||||
"wake_sheet_ms": "The sheet was up after %1$s ms.",
|
||||
"wake_no_recognizers": "This phone has no voice recognisers, so Android runs no voice assistant service on it.",
|
||||
"wake_not_active": "LLeMbas was chosen as the digital assistant app, but Android was not using it as its voice assistant.",
|
||||
"wake_waited": "Waited a moment for Android to connect it.",
|
||||
"wake_show_failed": "Android said it could not show the assistant's sheet.",
|
||||
"wake_assistant_inactive": "Android is not using LLeMbas as its voice assistant right now",
|
||||
"wake_assistant_inactive_line": "Choose LLeMbas as the digital assistant app again: tap here, pick another app, then LLeMbas. Until then the long press opens it as an ordinary screen, and the wake word can only send a notification.",
|
||||
"wake_assistant_unbound": "LLeMbas is the assistant, but Android has not connected it right now",
|
||||
"wake_assistant_unbound_line": "Until it does, the wake word cannot open the sheet by itself. Tap for the system's assistant setting: choosing another app and then LLeMbas again connects it.",
|
||||
"wake_heard_could_not": "Could not open by itself — tap to ask",
|
||||
|
||||
Reference in new issue
Block a user