Merge Hey Claude's actions into Hey Dumby
Hey Dumby is now the one app: the wake-word listener (with the
pre-roll + double-check trick from Hey Claude, so a stray word
doesn't trigger it) branches into three things depending on what
it hears.
- The full phrase ("hey dummy take a note" by default) drops
straight into dictation, unchanged from before.
- The bare phrase alone ("hey dummy"/"hey dumby"/"okay dummy")
beeps and listens for one command: open an app, call, text,
directions, or falls through to the Claude app. This is Hey
Claude's CommandRouter/AppMatcher/ContactMatcher/Comms, ported
over basically unchanged (package renamed, Hey Claude branding
swapped for Hey Dumby).
- Driving mode (DrivingMode.kt, new): speaks command results out
loud with TextToSpeech instead of only showing them. Can be
switched on by voice ("hey dummy, driving mode on") or, if
Bluetooth permission is granted, auto-arms when the phone
connects to something that reports itself as an audio/video
Bluetooth device (the closest thing Android has to "this is a
car"), and disarms on disconnect.
Kept Hey Dumby's bundled-in-the-apk speech model (ModelFiles) over
Hey Claude's download-on-first-run one, so the no-network claim on
the landing page stays true and the INTERNET permission goes away.
Still TODO, not done in this pass:
- Settings screen doesn't expose the new toggles yet (driving
mode, auto-arm, call/text direct, aliases, strict wake). They
all have working Prefs getters/setters, just no UI.
Quick Settings tile and the Claude-app fallback aren't wired
into a Settings toggle either, though they work.
- Not build-tested. No Android SDK in this workspace to compile
against; needs a real build on Elessar before it installs.
This commit is contained in:
@@ -6,25 +6,95 @@
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
||||
<uses-permission android:name="android.permission.CALL_PHONE" />
|
||||
<uses-permission android:name="android.permission.SEND_SMS" />
|
||||
<!-- Only used to tell what kind of Bluetooth device just connected, for driving mode.
|
||||
Dangerous permission on API 31+: until it's granted, driving mode just doesn't
|
||||
auto-arm and has to be switched on by voice or in Settings instead. -->
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
|
||||
|
||||
<uses-feature android:name="android.hardware.telephony" android:required="false" />
|
||||
<uses-feature android:name="android.hardware.bluetooth" android:required="false" />
|
||||
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
<data android:mimeType="text/plain" />
|
||||
</intent>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<data android:scheme="geo" />
|
||||
</intent>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<data android:scheme="google.navigation" />
|
||||
</intent>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.SENDTO" />
|
||||
<data android:scheme="smsto" />
|
||||
</intent>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.DIAL" />
|
||||
<data android:scheme="tel" />
|
||||
</intent>
|
||||
<package android:name="com.anthropic.claude" />
|
||||
<package android:name="com.google.android.apps.maps" />
|
||||
</queries>
|
||||
|
||||
<application
|
||||
android:allowBackup="false"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="Hey Dumby"
|
||||
android:theme="@style/AppTheme">
|
||||
|
||||
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity android:name=".NoteActivity" android:windowSoftInputMode="adjustResize" />
|
||||
<activity android:name=".SettingsActivity" android:windowSoftInputMode="adjustResize" />
|
||||
|
||||
<!-- Ported from Hey Claude: the go-between that can open apps / dialer / messages /
|
||||
maps from the background, waking the screen and getting past the lock screen
|
||||
first if it needs to. -->
|
||||
<activity
|
||||
android:name=".LaunchActivity"
|
||||
android:excludeFromRecents="true"
|
||||
android:exported="false"
|
||||
android:launchMode="singleInstance"
|
||||
android:showWhenLocked="true"
|
||||
android:taskAffinity=""
|
||||
android:theme="@style/Trampoline"
|
||||
android:turnScreenOn="true" />
|
||||
|
||||
<provider android:name="androidx.core.content.FileProvider" android:authorities="${applicationId}.files"
|
||||
android:exported="false" android:grantUriPermissions="true">
|
||||
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
|
||||
</provider>
|
||||
|
||||
<service android:name=".ListenService" android:exported="false"
|
||||
android:foregroundServiceType="microphone" />
|
||||
|
||||
<service
|
||||
android:name=".ToggleTileService"
|
||||
android:exported="true"
|
||||
android:icon="@drawable/ic_mic"
|
||||
android:label="Hey Dumby"
|
||||
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
|
||||
<intent-filter>
|
||||
<action android:name="android.service.quicksettings.action.QS_TILE" />
|
||||
</intent-filter>
|
||||
<meta-data
|
||||
android:name="android.service.quicksettings.TOGGLEABLE_TILE"
|
||||
android:value="true" />
|
||||
</service>
|
||||
</application>
|
||||
</manifest>
|
||||
|
||||
Reference in New Issue
Block a user