Closed
Conversation
Integrates the OACP Kotlin SDK (oacp-android-release.aar) for voice control via the Hark assistant. Two dispatch patterns used: - start_recording: type=activity — Hark calls startActivity() directly, opening the app and starting the RecorderService. Handled via intent filter on MainActivity + onNewIntent(). - pause/resume/stop/discard: type=broadcast — Hark sends broadcast, OacpActionReceiver (extends OacpReceiver from SDK) handles in background. Files added: - app/libs/oacp-android-release.aar — OACP SDK - app/src/main/assets/oacp.json — capability manifest (5 capabilities) - app/src/main/assets/OACP.md — LLM context for disambiguation - app/src/main/kotlin/.../oacp/OacpActionReceiver.kt — broadcast handler Files modified: - app/build.gradle.kts — SDK + annotation dependency - AndroidManifest.xml — activity intent filter + receiver registration - MainActivity.kt — onNewIntent() handles OACP start recording intent Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Documents how OACP was added: files changed, two dispatch patterns (activity for foreground, broadcast for background), BAL restrictions, onNewIntent handling, and adb test commands. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
start_recording: activity dispatch — opens app and starts RecorderServicepause/resume/stop/discard: broadcast dispatch — background, no UIKey implementation details
onNewIntent()handler for singleTask redeliveryOacpActionReceiver(extends SDK'sOacpReceiver) for background actionsTest plan
${applicationId}.oacpSee
OACP_INTEGRATION.mdfor full documentation.Generated with Claude Code