Repository navigation
fix(android): expose the selected connection security option - #142131
Conversation
Use the existing selectable Surface for manual connection security choices and expose their button role to accessibility services. Preserve styling, disabled forced-TLS behavior and the remembered local transport choice.
|
🦞👀 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 8, 2026, 7:19 AM ET / 11:19 UTC. ClawSweeper reviewWhat this changesThe Android manual-setup security choices expose their selected state to accessibility services, with regression coverage for both layouts and disabled choices. Merge readiness✅ Ready for maintainer review This remains a useful, focused accessibility fix: current main still lacks the selected state. No actionable correctness or security findings were identified. Priority: P2 Review scores
Verification
How this fits togetherAndroid onboarding turns the entered Gateway address and transport preference into connection settings. These controls display the effective security choice, including mandatory TLS for public hosts, to users and accessibility services. flowchart TD
A[Gateway address] --> C[Existing transport policy]
B[User transport preference] --> C
C --> D[Effective security choice]
D --> E[Selectable onboarding controls]
E --> F[Accessibility state]
D --> G[Gateway connection settings]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +85, Other +4. Total +89 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Expose the existing effective transport state through Material selection semantics while retaining current TLS enforcement, input handling, and local preferences. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main renders the active security choice through color without passing selected semantics to Surface. No current-main runtime reproduction was executed during this review. Is this the best way to solve the issue? Yes. Supplying the existing state to Material's selectable Surface fixes the owning control without introducing another state source or changing connection policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e05374f88389. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Use the existing selectable Surface for manual connection security choices and expose their button role to accessibility services. Preserve styling, disabled forced-TLS behavior and the remembered local transport choice.
What Problem This Solves
Fixes an issue where Android users choosing connection security during manual setup could see the active choice by color, but accessibility services had no selected state for either choice.
Related: #142046, where the installed-app audit exposed this gap.
Why This Change Was Made
The existing pills now use Material3's selectable Surface and the same Button role as the app's standard selectable pills. Material continues to own input handling, disabled behavior, ripple, and minimum touch sizing. No extra state or custom accessibility implementation is introduced.
Production: +5/−1 (net +4), supplying the missing state and role. Tests: +99/−14 (net +85), including a shared onboarding fixture and two layout cases. The fixture uses ML Kit's existing idempotent initialization API so successive tests do not initialize its process singleton twice; scanning behavior is unchanged.
User Impact
Accessibility services can distinguish the selected transport choice. Appearance, click behavior, forced TLS for public hosts, and the user's remembered localhost choice remain unchanged. No strings, dependencies, configuration, protocol, or storage changes. Existing setup documentation remains accurate.
Evidence
6cc7e6b80a9260391f90b74d0894825d3a26b8d9on Android API 36 and verified its installed hash. Ordinary onboarding, field edits, and physical taps covered 17 states at font scales 1.0 and 2.0. Disabled taps did not overwrite the prior localhost choice.selectedbecomes true or that spoken TalkBack output was tested.5f32d9ccb9998a4775bb820b1db37bd987025206build. Its Android source, packaged shared resources, and provider icons match this patch's parent; all 199 packaged assets match the candidate. It is not relabeled as a newer build.Exact-head CI: run #34219513326, attempt 2 completed successfully on
6cc7e6b80a9260391f90b74d0894825d3a26b8d9, including the required CI gate. The initial Play job exceeded its 20-minute execution budget before tests finished; one normal job retry and its dependent gate passed without source or timeout changes. ThirdParty, Wear and ktlint also passed. The latest exact-head ClawSweeper review has no findings or before-merge requests.