Add Android Auto lifecycle and Media3 startup diagnostics (#36, #88) #92

Merged
alexander merged 43 commits from mcp/issues-36-88-android-auto-diagnostics into main 2026-09-26 06:48:38 +02:00
Owner

Summary

Adds targeted Android Auto diagnostics for the two reopened physical-acceptance issues:

  • #36 — car/projection lifecycle continuity still pauses on entry/exit;
  • #88 — Android Auto can still start without showing the expected current/default Media3 item.

This PR is diagnostics-focused. It does not intentionally change playback policy or acceptance criteria.

Android Auto event-log filter

  • Adds a dedicated Android Auto event-log category/filter.
  • Mirrors relevant route/output state into the same trace so the filtered view remains self-contained.

Correlated car lifecycle tracing (#36)

  • Starts a bounded auto-N transition trace as early as becomingNoisy / audioFocusLoss.
  • Correlates projection state, Gearhead controller bind/disconnect, route recomputation and continuity decisions.
  • Records projection-owner/session/controller state, book generation and explicit-output-selection sequence.

Projection observer diagnostics

The projection monitor now records:

  • start/stop;
  • provider visibility;
  • receiver registration;
  • every initial/broadcast read;
  • raw and mapped connection state;
  • Unknown reasons such as null/empty cursor, missing column, invalid value or platform exception;
  • read duration.

Unknown remains conservative and never becomes an implicit disconnect.

Media3 startup handoff tracing (#88)

Records startup ordering for:

  • controller connection and current Player state;
  • onPostConnect and async holder/playable installation;
  • current Media3 item transitions;
  • recent/normal roots;
  • onGetChildren / onGetItem / search-result pages;
  • onPlaybackResumption;
  • onAddMediaItems;
  • onSetMediaItems;
  • exact playable items handed back to Media3/Android Auto, including ordering and start positions.

Privacy

Media items use a privacy-safe fingerprint:

  • item kind;
  • media/profile identifiers through the existing hashed Identifier field;
  • playable/browsable/placeholder flags;
  • URI class only, never URI value;
  • artwork presence;
  • positions where relevant.

No book titles, search queries or stream/server URLs are added.

Tests

Adds coverage for:

  • privacy-safe Android Auto MediaItem fingerprints;
  • Android Auto event-log category filtering.

Branch state

Created from current main and 0 commits behind at PR creation.

CI

PR creation will trigger the repository's automatic Quick gate. No manual Standard/Intensive verification has been dispatched here; the owner will start that manually after reviewing the PR.

## Summary Adds targeted Android Auto diagnostics for the two reopened physical-acceptance issues: - #36 — car/projection lifecycle continuity still pauses on entry/exit; - #88 — Android Auto can still start without showing the expected current/default Media3 item. This PR is diagnostics-focused. It does not intentionally change playback policy or acceptance criteria. ### Android Auto event-log filter - Adds a dedicated **Android Auto** event-log category/filter. - Mirrors relevant route/output state into the same trace so the filtered view remains self-contained. ### Correlated car lifecycle tracing (#36) - Starts a bounded `auto-N` transition trace as early as `becomingNoisy` / `audioFocusLoss`. - Correlates projection state, Gearhead controller bind/disconnect, route recomputation and continuity decisions. - Records projection-owner/session/controller state, book generation and explicit-output-selection sequence. ### Projection observer diagnostics The projection monitor now records: - start/stop; - provider visibility; - receiver registration; - every initial/broadcast read; - raw and mapped connection state; - Unknown reasons such as null/empty cursor, missing column, invalid value or platform exception; - read duration. Unknown remains conservative and never becomes an implicit disconnect. ### Media3 startup handoff tracing (#88) Records startup ordering for: - controller connection and current Player state; - `onPostConnect` and async holder/playable installation; - current Media3 item transitions; - recent/normal roots; - `onGetChildren` / `onGetItem` / search-result pages; - `onPlaybackResumption`; - `onAddMediaItems`; - `onSetMediaItems`; - exact playable items handed back to Media3/Android Auto, including ordering and start positions. ### Privacy Media items use a privacy-safe fingerprint: - item kind; - media/profile identifiers through the existing hashed Identifier field; - playable/browsable/placeholder flags; - URI class only, never URI value; - artwork presence; - positions where relevant. No book titles, search queries or stream/server URLs are added. ### Tests Adds coverage for: - privacy-safe Android Auto MediaItem fingerprints; - Android Auto event-log category filtering. ## Branch state Created from current `main` and 0 commits behind at PR creation. ## CI PR creation will trigger the repository's automatic **Quick** gate. No manual Standard/Intensive verification has been dispatched here; the owner will start that manually after reviewing the PR.
Trace cold Android Auto resume refresh
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Successful in 7s
CI · PR verification / CI · · verification · wf:92 (pull_request) Failing after 1m8s
BookWave / PR quick BookWave verification failed
CI · PR verification / CI · · publish check · wf:92 (pull_request) Successful in 1s
70f9811f7f
Fix Android Auto diagnostics formatting
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Failing after 7s
CI · PR verification / CI · · verification · wf:92 (pull_request) Has been skipped
BookWave / PR quick BookWave preflight failed
CI · PR verification / CI · · publish check · wf:92 (pull_request) Successful in 1s
eaaffec59d
Fix Android Auto trace formatting
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Successful in 7s
CI · PR verification / CI · · verification · wf:92 (pull_request) Successful in 1m22s
BookWave / PR quick BookWave quick verification passed
CI · PR verification / CI · · publish check · wf:92 (pull_request) Successful in 1s
BookWave / PR verification BookWave verification failed
1a3acf7c2c
Fix nullable Android Auto generation diagnostic
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Successful in 7s
CI · PR verification / CI · · verification · wf:92 (pull_request) Successful in 1m22s
BookWave / PR quick BookWave quick verification passed
CI · PR verification / CI · · publish check · wf:92 (pull_request) Successful in 1s
BookWave / PR verification BookWave verification failed
9374acf0e0
Fix Android Auto diagnostics Detekt findings
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Successful in 7s
CI · PR verification / CI · · verification · wf:92 (pull_request) Failing after 1m7s
BookWave / PR quick BookWave verification failed
CI · PR verification / CI · · publish check · wf:92 (pull_request) Successful in 1s
2ad646f56e
Avoid projection diagnostic spread allocation
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Successful in 7s
CI · PR verification / CI · · publish check · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · verification · wf:92 (pull_request) Has been cancelled
4e18729ce3
Harden Media3 attachment test scheduling
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Has been cancelled
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · verification · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · publish check · wf:92 (pull_request) Has been cancelled
1b67ecaa45
Update holder wiring proof for traced signature
Some checks failed
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · verification · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · publish check · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · 92 · resolve target (pull_request) Has been cancelled
fa98baac98
Enable CI profiling telemetry by default
Some checks failed
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · verification · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · publish check · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · 92 · resolve target (pull_request) Has been cancelled
b177efb03f
Avoid blocking sleep in Media3 test polling
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Successful in 7s
CI · PR verification / CI · · verification · wf:92 (pull_request) Failing after 1m6s
BookWave / PR quick BookWave verification failed
CI · PR verification / CI · · publish check · wf:92 (pull_request) Successful in 2s
BookWave / PR verification BookWave verification failed
6e1534005d
Fix Android Auto trace function formatting
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Successful in 7s
CI · PR verification / CI · · publish check · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · verification · wf:92 (pull_request) Has been cancelled
BookWave / PR verification BookWave verification failed
2ca4f86748
Move Android Auto trace context to service scope
All checks were successful
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Successful in 7s
CI · PR verification / CI · · verification · wf:92 (pull_request) Successful in 1m25s
BookWave / PR quick BookWave quick verification passed
CI · PR verification / CI · · publish check · wf:92 (pull_request) Successful in 2s
714644d5b9
Keep deep PR diagnostics running after Quick or compile failures
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Successful in 8s
CI · PR verification / CI · · publish check · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · verification · wf:92 (pull_request) Has been cancelled
b7bb1651c2
Report blocked and fallback PR diagnostics explicitly
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Has been cancelled
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · verification · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · publish check · wf:92 (pull_request) Has been cancelled
ae6b84cbc5
Document deep diagnostics after Quick failures
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · verification · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · publish check · wf:92 (pull_request) Has been cancelled
BookWave / PR verification BookWave verification failed
08d967038d
Revert speculative CI diagnostic expansion
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Successful in 7s
CI · PR verification / CI · · publish check · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · verification · wf:92 (pull_request) Has been cancelled
44cca43dce
Restore standard PR diagnostic summary
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Has been cancelled
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · verification · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · publish check · wf:92 (pull_request) Has been cancelled
ae23bd8aae
Avoid system clock in Media3 attachment test wait
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · verification · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · publish check · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Has been cancelled
BookWave / PR verification BookWave standard verification passed
1de0dae54b
alexander force-pushed mcp/issues-36-88-android-auto-diagnostics from 1de0dae54b
Some checks failed
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · verification · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · publish check · wf:92 (pull_request) Has been cancelled
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Has been cancelled
BookWave / PR verification BookWave standard verification passed
to 388e1e6da8
All checks were successful
CI · PR verification / CI · 92 · resolve target (pull_request) Successful in 2s
CI · PR verification / CI · · Preflight · wf:92 (pull_request) Successful in 8s
CI · PR verification / CI · · verification · wf:92 (pull_request) Successful in 1m21s
BookWave / PR quick BookWave quick verification passed
CI · PR verification / CI · · publish check · wf:92 (pull_request) Successful in 1s
2026-09-25 23:14:25 +02:00
Compare
alexander deleted branch mcp/issues-36-88-android-auto-diagnostics 2026-09-26 06:48:38 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
alexander/Audiobookshelf-Manager-Claude!92
No description provided.