Skip to content

Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.

feat(settings): name the wake word in the assistive-ball setting (#77)

Durganshua92648c38692
diff --git a/.maestro/flows/04-assistive-ball.yaml b/.maestro/flows/04-assistive-ball.yaml
index 144f62e..852a502 100644
--- a/.maestro/flows/04-assistive-ball.yaml
+++ b/.maestro/flows/04-assistive-ball.yaml
@@ -3,13 +3,13 @@ appId: com.gotcha
# Requires testing/scripts/maestro_run.sh to have granted the SYSTEM_ALERT_WINDOW appop first
# (Maestro cannot send shell/appops commands itself).
- launchApp
-# The toggle lives in Settings ▸ Assistive Ball.
+# The toggle lives in Settings ▸ Assistive Ball and Wake Word.
- tapOn: "Open menu"
- tapOn: "Settings"
- scrollUntilVisible:
- element: "Assistive Ball"
+ element: "Assistive Ball and Wake Word"
direction: DOWN
-- tapOn: "Assistive Ball"
+- tapOn: "Assistive Ball and Wake Word"
- tapOn: "Turn on assistive ball"
- pressKey: Home
- assertVisible: "Gotcha assistive ball"
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 57d023a..08c5594 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,12 @@ All notable changes to Gotcha are documented here.
agreements and the app updater is now titled `About` rather than `About Us`:
it holds more than company information, so the old title undersold it.
`About Samosa AI` and `Legal` still sit underneath it, unchanged.
+- **Settings → Assistive Ball and Wake Word.** The `Hey Gotcha` wake word has
+ always lived on the assistive-ball page — its listener runs inside the ball's
+ service and cannot outlive it — but the row said only `Assistive Ball`, so
+ there was nothing to tell you where the wake word was or why it switched
+ itself off. The row now names both, and the page states the dependency whether
+ the ball is on or off instead of only once it is already too late.
## [1.2.0]
### Added
diff --git a/app/src/androidTest/java/com/gotcha/AssistiveBallTest.kt b/app/src/androidTest/java/com/gotcha/AssistiveBallTest.kt
index 339a468..6346493 100644
--- a/app/src/androidTest/java/com/gotcha/AssistiveBallTest.kt
+++ b/app/src/androidTest/java/com/gotcha/AssistiveBallTest.kt
@@ -78,7 +78,8 @@ class AssistiveBallTest {
composeRule.onNodeWithTag("chat_input").assertExists()
- // The toggle lives in Settings ▸ Assistive Ball: drawer, category, switch.
+ // The toggle lives in Settings ▸ Assistive Ball and Wake Word: drawer,
+ // category, switch.
composeRule.onNode(hasContentDescription("Open menu")).performClick()
composeRule.waitForIdle()
composeRule.onNodeWithText("Settings").performClick()
diff --git a/app/src/main/assets/legal/privacy-data-retention.md b/app/src/main/assets/legal/privacy-data-retention.md
index af5b641..acd7be5 100644
--- a/app/src/main/assets/legal/privacy-data-retention.md
+++ b/app/src/main/assets/legal/privacy-data-retention.md
@@ -147,9 +147,9 @@ backend that transmits data to a third-party AI provider.
10. OPTIONAL WAKE WORD ("Hey Gotcha")
10.1 The wake-word feature is opt-in. When turned on in Settings
- (Settings → Assistive Ball → "Wake word: Hey Gotcha"), the App keeps a
- microphone-type foreground service alive while the Assistive Ball is on
- and no voice call is in progress.
+ (Settings → Assistive Ball and Wake Word → "Wake word: Hey Gotcha"), the
+ App keeps a microphone-type foreground service alive while the Assistive
+ Ball is on and no voice call is in progress.
10.2 The wake-word listener processes all microphone audio **on-device**
using the bundled OpenWakeWord models (Apache 2.0, see
diff --git a/app/src/main/java/com/gotcha/ui/AssistiveBallScreen.kt b/app/src/main/java/com/gotcha/ui/AssistiveBallScreen.kt
index 317b733..37ccc1e 100644
--- a/app/src/main/java/com/gotcha/ui/AssistiveBallScreen.kt
+++ b/app/src/main/java/com/gotcha/ui/AssistiveBallScreen.kt
@@ -36,8 +36,10 @@ import com.gotcha.data.WakeWordListeningMode
import android.provider.Settings as AndroidSettings
/**
- * The Assistive Ball page: one switch that starts or stops the floating overlay,
- * plus the short version of what the ball does once it is on.
+ * The Assistive Ball and Wake Word page: a switch that starts or stops the
+ * floating overlay, the short version of what the ball does once it is on, and
+ * the "Hey Gotcha" wake word — which lives here because its listener runs inside
+ * the ball's service and cannot outlive it.
*
* The switch is not a stored preference the page owns — it drives the
* [com.gotcha.service.AssistiveBallService] through the host, which persists
@@ -112,21 +114,23 @@ fun AssistiveBallScreen(
"Turn on Hey Gotcha wake word"
}
)
+ // Stated whether or not the ball is on: with the ball on, the toggle
+ // works and nothing else would explain why it stops later.
+ Text(
+ "Says \"Hey Gotcha\" — the bundled OpenWakeWord model runs on-device, but " +
+ "only while the Assistive Ball is on and no call is active. The " +
+ "listener lives inside the ball's service, so switching the ball off " +
+ "switches the wake word off too. Keep microphone permission enabled.",
+ style = MaterialTheme.typography.bodySmall,
+ color = MaterialTheme.colorScheme.onSurfaceVariant
+ )
if (!ballEnabled) {
Text(
- "The wake word requires the Assistive Ball to be on — turn on " +
- "\"Show Assistive Ball\" to use it.",
+ "Turn on \"Show Assistive Ball\" above to use it.",
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onSurfaceVariant
)
}
- Text(
- "Says \"Hey Gotcha\" — the bundled OpenWakeWord model runs on-device while " +
- "the assistive ball is on and no call is active. Keep microphone " +
- "permission enabled.",
- style = MaterialTheme.typography.bodySmall,
- color = MaterialTheme.colorScheme.onSurfaceVariant
- )
if (wakeWordEnabled) {
Spacer(modifier = Modifier.height(8.dp))
Text(
diff --git a/app/src/main/java/com/gotcha/ui/SettingsCommon.kt b/app/src/main/java/com/gotcha/ui/SettingsCommon.kt
index dbc0422..db41318 100644
--- a/app/src/main/java/com/gotcha/ui/SettingsCommon.kt
+++ b/app/src/main/java/com/gotcha/ui/SettingsCommon.kt
@@ -147,8 +147,10 @@ enum class SettingsPage(
"settings_proactive_row"
),
ASSISTIVE_BALL(
- "Assistive Ball",
- "Floating ball over other apps, hands-free calls",
+ // The wake word listens from inside the ball's service, so it is not a
+ // page of its own — the title says so to make it findable.
+ "Assistive Ball and Wake Word",
+ "Floating ball over other apps, hands-free calls, \"Hey Gotcha\"",
"settings_assistive_ball_row"
),
APPEARANCE(