Repository navigation
feat(android): add native WebRTC media transport - #142296
roboclaw-bot wants to merge 4 commits into
Conversation
Add the connection-bound SDP route, WebRTC peer and shared audio ownership with the pinned SDK, license and JNI retention rules. This introduces transport primitives without activating calls. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 10:11 AM ET / 14:11 UTC (Revision 11). ClawSweeper reviewWhat this changesAdds Android WebRTC audio and event transport, connection-bound offer exchange, shared audio routing, and the pinned native SDK without activating calls. Merge readiness✅ Ready for maintainer review This remains a useful, distinct transport layer absent from current main. The previous queued-offer finding is fixed, and no blocking introduced defect was established. The protected maintainer label also precludes cleanup closure. Priority: P2 Review scores
Verification
How this fits togetherAndroid Talk currently uses native speech or Gateway relay. This layer supplies a native media peer and exchanges connection offers through a captured Gateway connection for subsequent call coordination. flowchart LR
A[Future Talk call coordinator] --> B[Android WebRTC peer]
B --> C[Captured Gateway connection]
C --> D{Connection still current}
D -->|Yes| E[Gateway or provider offer endpoint]
D -->|No| F[Cancel offer]
E --> B
B <--> G[Microphone and speaker routing]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +877, Other +697. Total +1574 across 16 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain the connection-owned transport primitives and shared audio lifecycle, with native device and packaging acceptance attached to the stack’s call activation. Do we have a high-confidence way to reproduce the issue? Not applicable to the feature as a whole; the prior retirement defect has recorded before/after destination observations and matching regression coverage. No tests were executed during this read-only review. Is this the best way to solve the issue? Yes: a native peer using the existing connection and audio lifecycle owners is a coherent transport boundary, and current main has no equivalent Android WebRTC implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 878bc51433d4. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
ecade79 to
1fa8502
Compare
Integrate the reviewed owner-scoped repairs and updated stack prerequisite. Retain the validated M layer source with only the inherited legacy agent-binding fix. Preserve the historical secondary parent and the validated layer source while restacking its prerequisite. Co-authored-by: IWhatsskill <[email protected]> Worked on by: - @IWhatsskill
1fa8502 to
28fc906
Compare
Recheck physical-route ownership when queued HTTP offers begin execution. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Carry only the I generated-artifact isolation correction. Preserve the existing feature layer, queued-offer race fix, and both histories. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
|
Closing this PR in favor of a planned rebuild on current main. |
Related: #138726 — Android realtime Talk.
What Problem This Solves
Android needs a native media connection to use the same client-owned realtime Talk paths as the browser, without moving provider credentials onto the phone.
Why This Change Was Made
Add the WebRTC peer, bounded SDP exchange through the captured Gateway connection, and shared microphone/playout ownership. The pinned SDK, JNI retention rules and license notice stay with the code that needs them. Call activation is a separate layer.
User Impact
Provides the native media transport for Android realtime calls. Audio routing preserves the distinction between a requested input device and an applied route. This layer alone does not change how users start Talk.
Evidence
Source-only correction — September 10, 2026
Head:
c92cf8494a0bd2a401b740f870e300f1f1aff4cd. The source-only I correction is propagated without changing the media production code or queued-retirement regression. The composed K descendantcc1a6ce946aa3df418da6e3e12ddc73a563a52d5passed all 3,059 Play app tests and all-module Kotlin lint. This is descendant validation, not a new independent M-flavor run.Real GatewaySession + OkHttp dispatcher + local HTTP destination: allowed=1, retired=1 before; allowed=1, retired=0 after. This is destination-observed queued-retirement proof, not only pre-entry rejection.
49 tests per Play/ThirdParty flavor passed on the repaired complete-native candidate; stored XML and exits were independently reviewed. Actual early-prefix validation is recorded separately.
Connection retirement owns cancellation; registration precedes enqueue and both callbacks dispose it. Pinned OkHttp/coroutine behavior was inspected directly.
Already-transmitted bytes cannot be recalled. Physical-device audio routing and signed/minified JNI acceptance remain unverified.
Prior-source verification: the earlier generated-resource candidate passed production/test-source compilation for both Android flavors, the queued-offer destination regression once per flavor, and ktlint. Those results retain their original source binding; they are not a new independent build of this source-only M head.
Historical validation source tree: commit
ecade794dbc2e482a212e60bb498d71b68b51eea. The local evidence above has its stated scope.Worked on by: