feat: register as Android default digital assistant (#757) (#758)

* feat: register as Android default digital assistant

* fix: assistant role request fallback + always-attempt click

* remove: assistant role request row from Settings

The system-level assistant registration stays (VoiceInteractionService
+ ROLE_ASSISTANT, set via system Settings -> Default apps), but the
in-app Settings row is dropped: RequestRoleActivity fails to resolve
the caller on a plain startActivity ('Package name cannot be null or
empty'), so the button was a dead end. Removes the row, the
AssistantRole helper, and the now-unused strings.

---------

Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
M57andM57 authored and GitHub committed 2026-08-01 18:33:33 +03:00
1 parent 63b966b133
commit ed48e10ca6
6 files changed
+140

No files matched your search

@@ -0,0 +1,10 @@
package com.m57.hermescontrol.assistant
import android.service.voice.VoiceInteractionService
/**
* Top-level digital-assistant service. The system keeps this running while
* Hermes Mobile is the default assistant; the actual trigger handling lives
* in [AssistantSessionService] / [AssistantSession].
*/
class AssistantService : VoiceInteractionService()