Build the Android companion so Dan can select Hermeven as Android’s default digital assistant instead of relying on Gemini for the primary assistant interaction.
The first delivery should let a user invoke Hermeven through an Android assistant affordance, send the utterance to the authorized Hermes agent for interpretation, and execute a small, explicit set of Android actions such as:
open a named installed app;
open a supported feature or deep link;
launch a preferred music app;
play a music search request;
pause, resume, skip, and go to the previous media item;
speak or display the result through Hermeven’s existing surfaces.
This is an Android assistant integration, not an attempt to bypass Android security or copy Gemini’s private Google integrations.
Verified current state
Current-state inspection is pinned to main at f02715fb6487f4e2ff0adeccfaad2403e1724aa5.
The current Hermeven tree does not contain an Android-native VoiceInteractionService, assistant session, app-action adapter, or media-control integration.
Android’s public APIs support the core approach:
A user-selectable assistant can implement VoiceInteractionService, VoiceInteractionSessionService, and VoiceInteractionSession.
The active assistant can be invoked through system assistant affordances and can launch activities using Android intents.
Common and app-specific intents/deep links can open apps and supported features.
MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH can request playback from compatible media apps.
Active media sessions can be controlled through MediaController; cross-app session discovery requires the appropriate system capability, typically an enabled NotificationListenerService for a normal third-party app.
Implement a lightweight VoiceInteractionService plus a separate assistant-session process/UI. The always-running service must remain lightweight; network requests, rendering, speech recognition, and Hermes execution belong in the active session or a bounded worker.
The user explicitly selects Hermeven in Android’s default digital-assistant settings. Do not attempt to change the default automatically.
Initial invocation paths:
Android’s configured assistant button, gesture, or power-button affordance;
an explicit Hermeven launcher/widget action;
a verified Even-glasses gesture routed through the companion.
A custom always-listening hotword is out of scope for the first version because availability and hardware/DSP privileges vary by device and Android build.
Hermes action contract
Do not let free-form model output directly construct arbitrary intents or Android API calls. Define a versioned, validated action contract such as:
open_app(app_id)
open_feature(app_id, feature_id, parameters)
media_play(query, preferred_app_id?)
media_transport(command) where command is allowlisted
Resolve friendly app names to an explicit user-managed app registry. Use targeted package visibility and known intent/deep-link adapters rather than broad installed-app inventory where possible.
Each action returns a typed terminal result: completed, needs_confirmation, unsupported, permission_required, target_unavailable, timed_out, or failed.
Action execution
Use the narrowest supported integration in this order:
explicit app/deep-link adapter;
standard Android intent;
media session/controller operation;
user-visible handoff when Android requires interaction.
Accessibility-driven arbitrary screen clicking is excluded from the initial implementation. Google Play policy restricts general assistants from using Accessibility APIs for autonomous planning and execution, and UI scraping would be brittle and unsafe.
Integrate with issue #1 so spoken responses respect the currently selected car, headset, or phone route without forcing a route merely because a device is connected.
Safety and privacy requirements
Require explicit user selection as the default assistant and incremental permission grants.
Show a clear session indicator while microphone capture or remote processing is active.
Stop microphone capture immediately when the session ends, is cancelled, times out, or loses foreground authority.
Authenticate companion-to-bridge requests and reject replayed, expired, malformed, or unknown action requests.
Apply a confirmation policy before calls, messages, navigation changes, purchases, account changes, destructive operations, or any action with external side effects. Those capabilities remain out of scope until separately specified.
Never execute arbitrary shell commands, arbitrary intent URIs, arbitrary package names, or model-supplied component names.
Treat lock-screen state as a separate trust boundary; do not expose sensitive content or execute protected actions while locked.
Do not silently fall back to Accessibility APIs when an official intent or adapter is unavailable.
When Android Auto is active, honor driver-distraction restrictions and keep interaction voice-first and minimal.
Log action type, outcome, timing, and correlation ID, but not raw audio, transcript content, contact data, or unnecessary device identifiers by default.
First-release scope
Included:
selectable default-assistant service and session;
system assistant invocation;
authenticated Hermes request/response round trip;
explicit app registry and “open app” action;
preferred music-app selection;
play-from-search intent;
media pause/resume/next/previous where an active compatible media session is available;
typed error and permission handling;
integration with the output-route state from issue #1;
phone UI showing what action is about to run and what ran.
Not included:
custom always-on hotword;
Gemini/Google-private integrations;
autonomous AccessibilityService UI control;
calls, SMS, email, purchases, account/settings changes, or unrestricted navigation actions;
automatic replacement of the current assistant;
Play Store release or production deployment.
Testable acceptance criteria
Android lists Hermeven as an eligible digital-assistant app and the user can select and deselect it through system settings.
The configured Android assistant affordance opens a Hermeven session from the unlocked phone without first opening the app manually.
“Open <configured app>” resolves through the explicit app registry and opens the intended package/activity.
Unknown, ambiguous, uninstalled, and disabled app targets produce a clear typed result without launching a different app.
“Play <query> in <preferred music app>” uses a supported standard intent or explicit adapter and starts the intended app flow.
Pause, resume, next, and previous operate on the expected active media session after the user grants the required access.
Model output that names an unregistered action, package, component, or URI is rejected before Android execution.
Network loss, Hermes timeout, cancelled invocation, and companion process restart terminate cleanly without duplicate actions or a stuck microphone/session.
Invocation while locked follows an explicit restricted policy and does not disclose transcript or response content unexpectedly.
With Android Auto active, the assistant does not autoplay unsolicited content and uses the verified selected audio route from issue #1.
Unit tests cover action-schema validation, app-name resolution, confirmation classification, replay/expiry rejection, and terminal-result mapping.
Real-device evidence records phone model, Android version, assistant invocation method, target app/media app, expected action, observed action, and output route.
Decisions required before implementation
Confirm Dan’s phone model and Android/One UI version.
Confirm the preferred music app and the first explicit app allowlist.
Choose on-device speech recognition versus the existing bridge/STT path for assistant invocations.
Define which Hermes profile/session owns assistant conversations and how context is resumed across glasses, phone, and car surfaces.
Decide whether the initial build is personal/sideloaded only or must satisfy Google Play distribution requirements.
Confirm the activation affordances to prioritize before considering any hotword investigation.
Gate
This issue records an approved backlog request only. It does not start implementation or authorize merge, deployment, Play Store publication, AccessibilityService automation, background hotword capture, or production use. Source changes require an isolated branch/worktree and independent review before any merge or deployment decision.
## Request / problem
Build the Android companion so Dan can select Hermeven as Android’s default digital assistant instead of relying on Gemini for the primary assistant interaction.
The first delivery should let a user invoke Hermeven through an Android assistant affordance, send the utterance to the authorized Hermes agent for interpretation, and execute a small, explicit set of Android actions such as:
- open a named installed app;
- open a supported feature or deep link;
- launch a preferred music app;
- play a music search request;
- pause, resume, skip, and go to the previous media item;
- speak or display the result through Hermeven’s existing surfaces.
This is an Android assistant integration, not an attempt to bypass Android security or copy Gemini’s private Google integrations.
## Verified current state
Current-state inspection is pinned to `main` at `f02715fb6487f4e2ff0adeccfaad2403e1724aa5`.
The current Hermeven tree does not contain an Android-native `VoiceInteractionService`, assistant session, app-action adapter, or media-control integration.
Android’s public APIs support the core approach:
- A user-selectable assistant can implement `VoiceInteractionService`, `VoiceInteractionSessionService`, and `VoiceInteractionSession`.
- The active assistant can be invoked through system assistant affordances and can launch activities using Android intents.
- Common and app-specific intents/deep links can open apps and supported features.
- `MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH` can request playback from compatible media apps.
- Active media sessions can be controlled through `MediaController`; cross-app session discovery requires the appropriate system capability, typically an enabled `NotificationListenerService` for a normal third-party app.
Primary references:
- https://developer.android.com/reference/android/service/voice/VoiceInteractionService
- https://developer.android.com/reference/android/service/voice/VoiceInteractionSession
- https://developer.android.com/training/articles/assistant
- https://developer.android.com/guide/components/intents-common
- https://developer.android.com/reference/android/media/session/MediaSessionManager
- https://developer.android.com/reference/android/media/session/MediaController
## Proposed architecture
### Android assistant shell
Implement a lightweight `VoiceInteractionService` plus a separate assistant-session process/UI. The always-running service must remain lightweight; network requests, rendering, speech recognition, and Hermes execution belong in the active session or a bounded worker.
The user explicitly selects Hermeven in Android’s default digital-assistant settings. Do not attempt to change the default automatically.
Initial invocation paths:
- Android’s configured assistant button, gesture, or power-button affordance;
- an explicit Hermeven launcher/widget action;
- a verified Even-glasses gesture routed through the companion.
A custom always-listening hotword is out of scope for the first version because availability and hardware/DSP privileges vary by device and Android build.
### Hermes action contract
Do not let free-form model output directly construct arbitrary intents or Android API calls. Define a versioned, validated action contract such as:
- `open_app(app_id)`
- `open_feature(app_id, feature_id, parameters)`
- `media_play(query, preferred_app_id?)`
- `media_transport(command)` where command is allowlisted
- `respond(text, display_target?, audio_target?)`
- `request_confirmation(action_summary, action_token)`
Resolve friendly app names to an explicit user-managed app registry. Use targeted package visibility and known intent/deep-link adapters rather than broad installed-app inventory where possible.
Each action returns a typed terminal result: `completed`, `needs_confirmation`, `unsupported`, `permission_required`, `target_unavailable`, `timed_out`, or `failed`.
### Action execution
Use the narrowest supported integration in this order:
1. explicit app/deep-link adapter;
2. standard Android intent;
3. media session/controller operation;
4. user-visible handoff when Android requires interaction.
Accessibility-driven arbitrary screen clicking is excluded from the initial implementation. Google Play policy restricts general assistants from using Accessibility APIs for autonomous planning and execution, and UI scraping would be brittle and unsafe.
Integrate with issue #1 so spoken responses respect the currently selected car, headset, or phone route without forcing a route merely because a device is connected.
## Safety and privacy requirements
- Require explicit user selection as the default assistant and incremental permission grants.
- Show a clear session indicator while microphone capture or remote processing is active.
- Stop microphone capture immediately when the session ends, is cancelled, times out, or loses foreground authority.
- Authenticate companion-to-bridge requests and reject replayed, expired, malformed, or unknown action requests.
- Apply a confirmation policy before calls, messages, navigation changes, purchases, account changes, destructive operations, or any action with external side effects. Those capabilities remain out of scope until separately specified.
- Never execute arbitrary shell commands, arbitrary intent URIs, arbitrary package names, or model-supplied component names.
- Treat lock-screen state as a separate trust boundary; do not expose sensitive content or execute protected actions while locked.
- Do not silently fall back to Accessibility APIs when an official intent or adapter is unavailable.
- When Android Auto is active, honor driver-distraction restrictions and keep interaction voice-first and minimal.
- Log action type, outcome, timing, and correlation ID, but not raw audio, transcript content, contact data, or unnecessary device identifiers by default.
## First-release scope
Included:
- selectable default-assistant service and session;
- system assistant invocation;
- authenticated Hermes request/response round trip;
- explicit app registry and “open app” action;
- preferred music-app selection;
- play-from-search intent;
- media pause/resume/next/previous where an active compatible media session is available;
- typed error and permission handling;
- integration with the output-route state from issue #1;
- phone UI showing what action is about to run and what ran.
Not included:
- custom always-on hotword;
- Gemini/Google-private integrations;
- autonomous AccessibilityService UI control;
- calls, SMS, email, purchases, account/settings changes, or unrestricted navigation actions;
- automatic replacement of the current assistant;
- Play Store release or production deployment.
## Testable acceptance criteria
- Android lists Hermeven as an eligible digital-assistant app and the user can select and deselect it through system settings.
- The configured Android assistant affordance opens a Hermeven session from the unlocked phone without first opening the app manually.
- “Open `<configured app>`” resolves through the explicit app registry and opens the intended package/activity.
- Unknown, ambiguous, uninstalled, and disabled app targets produce a clear typed result without launching a different app.
- “Play `<query>` in `<preferred music app>`” uses a supported standard intent or explicit adapter and starts the intended app flow.
- Pause, resume, next, and previous operate on the expected active media session after the user grants the required access.
- Model output that names an unregistered action, package, component, or URI is rejected before Android execution.
- Network loss, Hermes timeout, cancelled invocation, and companion process restart terminate cleanly without duplicate actions or a stuck microphone/session.
- Invocation while locked follows an explicit restricted policy and does not disclose transcript or response content unexpectedly.
- With Android Auto active, the assistant does not autoplay unsolicited content and uses the verified selected audio route from issue #1.
- Unit tests cover action-schema validation, app-name resolution, confirmation classification, replay/expiry rejection, and terminal-result mapping.
- Instrumented tests cover assistant lifecycle, permission denial, intent resolution failure, media-session loss, and cancellation.
- Real-device evidence records phone model, Android version, assistant invocation method, target app/media app, expected action, observed action, and output route.
## Decisions required before implementation
- Confirm Dan’s phone model and Android/One UI version.
- Confirm the preferred music app and the first explicit app allowlist.
- Choose on-device speech recognition versus the existing bridge/STT path for assistant invocations.
- Define which Hermes profile/session owns assistant conversations and how context is resumed across glasses, phone, and car surfaces.
- Decide whether the initial build is personal/sideloaded only or must satisfy Google Play distribution requirements.
- Confirm the activation affordances to prioritize before considering any hotword investigation.
## Gate
This issue records an approved backlog request only. It does not start implementation or authorize merge, deployment, Play Store publication, AccessibilityService automation, background hotword capture, or production use. Source changes require an isolated branch/worktree and independent review before any merge or deployment decision.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Request / problem
Build the Android companion so Dan can select Hermeven as Android’s default digital assistant instead of relying on Gemini for the primary assistant interaction.
The first delivery should let a user invoke Hermeven through an Android assistant affordance, send the utterance to the authorized Hermes agent for interpretation, and execute a small, explicit set of Android actions such as:
This is an Android assistant integration, not an attempt to bypass Android security or copy Gemini’s private Google integrations.
Verified current state
Current-state inspection is pinned to
mainatf02715fb6487f4e2ff0adeccfaad2403e1724aa5.The current Hermeven tree does not contain an Android-native
VoiceInteractionService, assistant session, app-action adapter, or media-control integration.Android’s public APIs support the core approach:
VoiceInteractionService,VoiceInteractionSessionService, andVoiceInteractionSession.MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCHcan request playback from compatible media apps.MediaController; cross-app session discovery requires the appropriate system capability, typically an enabledNotificationListenerServicefor a normal third-party app.Primary references:
Proposed architecture
Android assistant shell
Implement a lightweight
VoiceInteractionServiceplus a separate assistant-session process/UI. The always-running service must remain lightweight; network requests, rendering, speech recognition, and Hermes execution belong in the active session or a bounded worker.The user explicitly selects Hermeven in Android’s default digital-assistant settings. Do not attempt to change the default automatically.
Initial invocation paths:
A custom always-listening hotword is out of scope for the first version because availability and hardware/DSP privileges vary by device and Android build.
Hermes action contract
Do not let free-form model output directly construct arbitrary intents or Android API calls. Define a versioned, validated action contract such as:
open_app(app_id)open_feature(app_id, feature_id, parameters)media_play(query, preferred_app_id?)media_transport(command)where command is allowlistedrespond(text, display_target?, audio_target?)request_confirmation(action_summary, action_token)Resolve friendly app names to an explicit user-managed app registry. Use targeted package visibility and known intent/deep-link adapters rather than broad installed-app inventory where possible.
Each action returns a typed terminal result:
completed,needs_confirmation,unsupported,permission_required,target_unavailable,timed_out, orfailed.Action execution
Use the narrowest supported integration in this order:
Accessibility-driven arbitrary screen clicking is excluded from the initial implementation. Google Play policy restricts general assistants from using Accessibility APIs for autonomous planning and execution, and UI scraping would be brittle and unsafe.
Integrate with issue #1 so spoken responses respect the currently selected car, headset, or phone route without forcing a route merely because a device is connected.
Safety and privacy requirements
First-release scope
Included:
Not included:
Testable acceptance criteria
<configured app>” resolves through the explicit app registry and opens the intended package/activity.<query>in<preferred music app>” uses a supported standard intent or explicit adapter and starts the intended app flow.Decisions required before implementation
Gate
This issue records an approved backlog request only. It does not start implementation or authorize merge, deployment, Play Store publication, AccessibilityService automation, background hotword capture, or production use. Source changes require an isolated branch/worktree and independent review before any merge or deployment decision.