Repository navigation
fix(emulator): quote Android text for the device shell - #35561
Conversation
[Medium impact] This PR appears safe to merge; no actionable issues were found. SummaryQuotes Android typed text for the receiving device shell.
Reviews (4) · Last reviewed commit: "fix(emulator): quote Android text for th..." · Reviewed by Greptile |
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
b21fce4 to
61a7ee7
Compare
61a7ee7 to
67a69f7
Compare
LoC: +51/-2
Quote typed Android text for the receiving shell using the existing POSIX quoting function. ADB joins
shellarguments into command text, so ordinary text such asit's fineorhello&worldcan fail or become shell syntax despite using execFile locally. Keep space-to-%s encoding and rawemulator execcommands unchanged.Validation: 32 configured tests/three suites, strict focused TypeScript and all five ordinary hook tasks pass. Exact base fails ten shell-boundary regressions and passes plain/space controls. Real Node26.8.1 execFile + POSIX shell, six baseline/seven final exact production modules, 26 groups per arm at N1/10: 110 incorrect text deliveries become zero; plain/space and compound raw-exec controls preserved. All 572 owned fixture Node/shell PIDs absent and profiles removed.
The owned adb executable fixture reproduces argv joining from pinned official AOSP ADB source
1cf2f017d312f73b3dc53bda85ef2610e35a80e9; its input function records arguments. No installed ADB/device/SDK, Android input service, Electron UI, macOS/Windows, CPU/RSS/latency proof. POSIX-shell regression tests skip Windows; production quoting targets Android's shell on every desktop OS. No new Unicode/newline behavior claimed.Preserve #9950 and #19078 input tests/device controls on rebase; the latter's exact inspected head retains this raw text token. Initial backend wire expectation and native fixture syntax failures are retained with corrections. Aggregate queued after #35555; no pass or Claude takeover claimed. Frozen head
b043aafa1e3949918ddc5cd460eda60c92b752ea, base79dbada2c873bef3584a0c53b23ae98f2a84e536. Evidence/home/neil/.local/state/orca-electron-audit/android-text-shell-quoting/report.md; 59-payload seal1d622dfa5afee68d0cd8424fa53ca41c22dc8c46ed86215cff4b51477261b3a3.