mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-25 08:05:56 +03:00
[PR #181] [CLOSED] Add Google Assistant shortcuts for noise control and conversational awareness #319
Labels
No labels
android
bug
documentation
enhancement
good first issue
help wanted
linux
pull-request
reverse-engineering
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librepods#319
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kavishdevar/librepods/pull/181
Author: @Copilot
Created: 7/13/2025
Status: ❌ Closed
Base:
main← Head:copilot/fix-8a79550c-f768-465d-8787-7b8589ff0005📝 Commits (4)
1a63377Initial plan0492523Initial exploration and plan for Google Assistant shortcutscffe06fImplement Google Assistant shortcuts for noise control and conversational awarenessf7aada9Add documentation and improve shortcut handler robustness📊 Changes
8 files changed (+361 additions, -8 deletions)
View changed files
📝
README.md(+24 -0)📝
android/app/src/main/AndroidManifest.xml(+20 -0)➕
android/app/src/main/java/me/kavishdevar/librepods/ShortcutHandlerActivity.kt(+153 -0)📝
android/app/src/main/res/values/strings.xml(+8 -0)➕
android/app/src/main/res/xml/shortcuts.xml(+96 -0)📝
android/build.gradle.kts(+0 -1)📝
android/gradle/libs.versions.toml(+6 -7)➕
docs/google-assistant-shortcuts.md(+54 -0)📄 Description
Implements Google Assistant voice control for AirPods features as requested in the issue. Users can now control noise control modes and conversational awareness using natural voice commands.
Features Added
Voice Commands for Noise Control
Voice Commands for Conversational Awareness
Technical Implementation
Uses Android's shortcuts framework instead of App Actions (as requested since the app isn't on Play Store). The implementation:
res/xml/shortcuts.xml) - Defines all available Google Assistant shortcutsShortcutHandlerActivity.kt) - Processes shortcut intents and communicates withAirPodsServiceFiles Added/Modified
res/xml/shortcuts.xml- Google Assistant shortcut definitionsShortcutHandlerActivity.kt- Intent handler with robust error handlingAndroidManifest.xml- Shortcuts registration and activity declarationres/values/strings.xml- String resources for shortcutsdocs/google-assistant-shortcuts.md- Comprehensive usage documentationREADME.md- Added Google Assistant integration sectionHow It Works
ShortcutHandlerActivitywith appropriate intentAirPodsServicevia existingAACPManagerRequirements
Error Handling
The implementation includes comprehensive error handling:
Documentation
Added complete documentation including setup instructions, available commands, troubleshooting guide, and technical implementation details.
Fixes the issue by providing the exact functionality requested: voice control for noise control modes and conversational awareness through Google Assistant shortcuts that work with sideloaded apps.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.