feat(driver): support the adbHost capability #155
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 221 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.323
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #155"
general
weight: 0.35
carrerasdarren-cell
Addresses appium/appium#9376.
Android sessions can select the ADB server with
appium:adbHost. The deprecatedappium:remoteAdbHostcontinues to work and logs a warning when it has a nonempty value. A nonemptyadbHosttakes precedence when both names are supplied. The session response preserves the capabilities the client sent, and the shared driver usesgetAdbHost()for its ADB factory and exposes the same resolver to downstream drivers.I used OpenAI Codex to implement and test this change. The TypeScript build, repository lint and formatting checks, and all 383 shared Android driver unit tests passed. Eight local checks exercised the real Appium ADB wrapper against a synthetic executable, verifying the selected host, arguments, runtime options and returned capabilities for defaults, aliases, conflicting and empty values, and initial options. Validation was device-free.
Shared host follow-up
The resolver now works when a subclass calls
BaseDriver.createSessiondirectly. It leaves session capabilities and runtime options intact. An explicitly empty host capability falls back to the original configured driver options when no nonempty host is available in the session or resolved options. The tests cover both capability names and verify that the ADB factory and accessor agree.For remote ADB sessions, keep using
appium:remoteAdbHostwith UiAutomator2 and Espresso until the installed driver usesgetAdbHost()for its proxy. The UiAutomator2 and Espresso dependency checks in this PR exercise the published drivers to the synthetic device-discovery boundary and confirm the shared resolution across 12 cases. The TypeScript build, all 387 shared-driver unit tests, repository lint, and formatting passed on this revision.