Repository navigation
feat(app): Android Auto station list - #16
Merged
Merged
Conversation
perminder-klair
force-pushed
the
feat/android-auto
branch
from
November 27, 2026 14:37
21d28c9 to
f4c8118
Compare
perminder-klair
force-pushed
the
feat/android-auto
branch
3 times, most recently
from
November 27, 2026 16:48
8583e0f to
3084b52
Compare
…, prepare - MediaBrowserBridge clears its token when MusicService is destroyed and tells browse services through a ready/ended listener; a browse service still holding a released session's token (MediaBrowserServiceCompat takes one) answers no root, so the car's next bind gets a fresh one. - SubwaveBrowseService gives a root only to the car, the Assistant and the system (CarCallers, after Google's media sample's PackageValidator). - A prepare (playWhenReady false) no longer plays: the patch passes the flag and src/intents/car-picks.ts holds the pick until the next Play. - A refused or failed car pick is a plog line instead of a swallowed error. - npm test checks the car-connect task name and matchStations' generic words and shortest term against their native twins. - TESTING.md: the bridge and the background-setup bypass in the architecture-critical section; a session-restart and release-build check in the Android Auto checklist.
A pick from the car's list, a voice search and a prepared pick's Play all tune in through tune-flow.ts, as Siri's do: handed to the mounted player, and so to StreamRecovery, whenever one is mounted, and loaded directly only with none (tuneInByName sits in tune-flow since the rebase onto the fixed #14). TESTING.md's Android Auto check now covers a pick with the phone app open; CLAUDE.md names the car beside the App Intents.
perminder-klair
force-pushed
the
feat/android-auto
branch
from
November 27, 2026 18:38
3084b52 to
4179d75
Compare
perminder-klair
marked this pull request as ready for review
November 27, 2026 18:39
This was referenced Nov 27, 2026
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
SUB/WAVE in Android Auto: the saved stations as a list, a tap tunes in, then Auto's own Now Playing with play and pause. "Hey Google, play Night Shift on SUB/WAVE" picks a station by name. The browse session is the player's own, so Now Playing and the controls are the lock screen's.
CarCallers, after Google's media sample'sPackageValidator). The service is exported, so any other app would otherwise read the saved stations' hosts and start the player in the background.EXTRA_RECENT→ no root): a live station has nothing to resume, and answering would start the app in the background on every boot.MusicServicegoing clears the bridge's token. A browse service that already published the dead one answers no root until its clients unbind, becauseMediaBrowserServiceCompattakes a token once; the car's next bind gets a fresh service.tune-flow.ts(playOnMountedPlayer, ortuneInOnArrivalfor another station), never a direct load beside StreamRecovery.tuneInByNamesits intune-flow.tstoo.The RNTP patch, in three parts:
Evidence
./gradlew :app:assembleDebug(JDK 17): BUILD SUCCESSFUL. The merged manifest hasSubwaveBrowseService(android.media.browse.MediaBrowserService) and thecom.google.android.gms.car.applicationmeta-data.npm run lint: no errors (one existing warning inonboarding.tsx);npm test587 pass, 5 skipped, 0 fail, with new cases for spoken station names ("chill wave radio" → ChillWave Radio, generic words like "radio" match nothing, an exact name beats a partial), a prepare held until Play, car picks by id, by voice and from a prepared Play reaching the mounted player, failures logged, and drift checks for theSubwaveCarConnecttask name andmatchStations' generic words against Kotlin and Swift.setupPlayerrejects instead of crashing, and the car shows no session. The checklist is indocs/TESTING.md→ Android Auto, now with a session-restart check and a release build (the bridge reads KotlinAudio by reflection). That's why this is a draft.Merge Danger
Door: one-way at Play review, two-way in code
Play enforced against a manifest-only Auto declaration in June (perminder-klair/subwave#477) because the DJ is TTS readout; a production build with this goes through Auto review again. That's a deliberate second attempt. In code, removing
modules/android-autoand the patch hunks reverts it.Blast Radius: every Android listener
The patch changes paths every Android session uses: the session gains a
PlaybackPreparer(Play on an idle player still just prepares, as the connector did without one), andsetupPlayerregisters its event receiver after the service start instead of before. iOS gets JS only: twoservice.tslisteners that never fire there and a no-op station mirror. Native, so it ships in a new binary, not over the air.