Repository navigation
v0.4.0
Reliability release. Opening tabs, PDFs, background taps, and the helper's restart over wireless debugging all work on the phone's Chrome 156, and PhoneAPI now tests back to Chrome 125.
Changes a client can see
- A touch the system cancels now fails 409
gesture_cancelledon every path.tap,swipe,gesture, node actions, and browser touch input used to answer 200 withokfalse. - A tap on a selector with no box polls for
waitMsand ends 409offscreen. It used to fail 502cdp_errorat once. A hidden ref isoffscreen, notstale_ref. - A call to a tab still waiting for its server fails 409
content_unavailableat once and says what to wait for. - A
browser.elementwait now looks every 250 ms, so it sees what script adds after the load. - A tab released with
cleanupfalse stays on screen through its session's later calls. - A
cdp-mousetap orcdpkey on a page Chrome hasn't drawn now lands, or fails 409not_visible. It used to answer 200 and do nothing, andautopickscdp-mousefor a session without the screen. - A wait on a tab that closes fails 404
not_found, as a read does. - PhoneAPI is tested back to Chrome 125, the oldest the bundled pdf.js 6.4.299 supports. Older Chrome gets only a quick check. Android 10 and newer stay supported.
Fixes
- Tabs: an open listens on the browser session, so nothing connects to a tab Chrome may be closing. First PDF opens on the phone went from 2 failures in 12 to 30 of 30. A PDF's save is cancelled even when it starts late.
- Waits:
browser.settledandbrowser.loadedno longer match a tab whose server hasn't answered. - Touch: a tap with the keyboard up, on a page Chrome had turned the nodes off for, lands on its target. It used to answer 200 and miss.
- Selectors: taps and waits start over when Chrome drops its node ids during a load.
- Reading: content drawn through an element with
display: contents, as MDN's is, is read. A read of MDN's HTTP page returned 347 characters and now returns about 11,000. - DevTools: only listening sockets count as endpoints, so a frozen WebView can't stall the API, and a tab is no longer listed twice.
- Wireless debugging: the port is found through adb, one restart loop starts the helper, and Android's refusal on an unapproved network stops the retries.
- Pairing asks for the code as soon as pairing starts, and warns about Do Not Disturb.
- Background opens no longer fail
took_screenwhile another session holds the screen, or leave the new tab on that session's screen. Chrome selects a new tab twice, and PhoneAPI now watches for the second. Parallel opens on the phone went from 12 failures in 69 to 72 of 72. - An open right after another session ends is no longer blamed for that session's cleanup.
- The app no longer crashes, or fails every DevTools call until restarted, after a session closes while Chrome is sending it something. Closing a socket raced okio's buffer and corrupted its shared segment pool.
Checked
On the Android 11 test phone with Chrome 156, at b53aad4: helper, snapshot, tap, and key; opens, reads, finds, and evaluates, hidden and in front; first PDF opens with nothing saved to Downloads; background taps and keys on undrawn pages; text with clear and submit; a slow server's loading open with reads refused until it answered; a tab kept by cleanup false; background opens beside a screen holder; and 150 opens and closes, 90 of them in parallel, with no crash. The display: contents fix ran in desktop Chrome 156 made to look like a phone, on the live page, and not on a device. A wider pass on the Android 10, 13, 16, and 17 emulators ran at 9e047f7, before the last fixes, which were checked on Chrome 133 and 145.
What's Changed
- Ask for the pairing code as soon as pairing starts, warn about Do Not Disturb, and grant secure settings through the helper. by @aaron42net in #60
- Stop retrying without end when Android refuses wireless debugging on an unapproved network. by @aaron42net in #63
- Say what to check when wireless debugging isn't listening. by @aaron42net in #62
- Keep the viewer's video still when the screen bar appears. by @aaron42net in #61
- Say that a viewer has let go, and that the browser did not come forward. by @aaron42net in #64
- Find the wireless debugging port through the adb service, since mDNS loses it while adbd keeps listening. by @aaron42net in #65
- Add Claude Code GitHub Workflow by @aaron42net in #66
- Find the wireless debugging port through adb, and start the helper from one restart loop. by @aaron42net in #67
- Make the helper scripts fail when the helper does not come up, and drop the stale Netty build rules. by @aaron42net in #68
- Release a cancelled touch, queue the screen lease per holder, and wait on events instead of timers in input, tabs, and power. by @aaron42net in #69
- Make the helper one process per package, resolve only this phone's adbd records, and wait on real conditions in the helper. by @aaron42net in #71
- Decide screen use per MCP tool, stop the dialog check waking the screen, and take the viewer cookie only where the viewer needs it. by @aaron42net in #70
- Stop retrying browser calls, bring a tab up in one step, and answer scripted DevTools commands only once they are sent. by @aaron42net in #73
- List what the audit fixes still need checked on a phone. by @aaron42net in #74
- Read a page that is not an article whole, bound the PDF takeover, and test the page scripts under node. by @aaron42net in #72
- Give no tab to an ended session, claim an intent's tab by its URL, and name a gone session with session_not_found. by @aaron42net in #75
- Claim an intent's tab because the intent reached Chrome, not because its URL matches. by @aaron42net in #76
- Record what the emulators showed for the audit fixes' device checks. by @aaron42net in #79
- Return from opening a tab once its navigation commits, and decide there whether Chrome saved it. by @aaron42net in #77
- Decide activity starts from Android's result code, answer every PDF pause, and clear the audit's other deferred items. by @aaron42net in #78
- Decide the Android 11 audio start's shell activity from Android's result code, not am's exit status. by @aaron42net in #80
- Hand a browser wait every event on the reader, and drop the session's replayed event flow. by @aaron42net in #81
- End a browser wait at its limit, and fail app_launch at once when Android would drop it. by @aaron42net in #82
- Record what the Android 11 test phone showed of the audit's changes. by @aaron42net in #83
- End the listener's accept thread on stop, so a restart with no client between binds. by @aaron42net in #84
- Open every tab blank, and fix Gboard typing of ^, |, and after More symbols. by @aaron42net in #86
- Clear the PIN field before typing, share one mDNS walk, and compose browser_read and browser_find arguments. by @aaron42net in #85
- Leave a person's screen alone, count only open tabs, sweep only the last run's tabs, and bring back a page Chrome turned its nodes off for. by @aaron42net in #87
- Open tabs on their URL again, and hear a PDF's save on the browser session. by @aaron42net in #88
- Record that the merged PDF and Gboard fixes passed on the Android 11 test phone. by @aaron42net in #90
- End the application when the listener fails to bind, instead of leaving it running. by @aaron42net in #89
- Wait for a PDF stand-in's page to commit before taking a handle on its document. by @aaron42net in #91
- Stop a PDF's first open failing when its tab closes or its page finishes parsing. by @aaron42net in #92
- Tell a page with its nodes off from an empty one, and bring the nodes back for every input call. by @aaron42net in #94
- Look a selector up again when Chrome drops its node ids during a page load. by @aaron42net in #95
- Record the Android 11 phone recheck, and cover a cancelled save closing the tab during the id lookup. by @aaron42net in #93
- Keep each open device check in its topic's section, and drop the run logs' pass lists. by @aaron42net in #96
- Fail a touch the system cancelled with 409 gesture_cancelled on every path. by @aaron42net in #97
- Keep polling a selector whose element has no box, and tell a hidden ref from a stale one. by @aaron42net in #98
- Record the Android 11 phone run of main at 4a18edd, with Chrome 156's target events. by @aaron42net in #99
- Look again every 250 ms for a browser.element wait, so it sees what script changes. by @aaron42net in #100
- Read a box only after bringing the page's nodes back, so a touch lands where the page is. by @aaron42net in #101
- Leave a tab released with cleanup false on screen through its session's next call. by @aaron42net in #102
- Count only listening sockets as DevTools endpoints, so a frozen WebView's queued connections stop multiplying. by @aaron42net in #104
- Hear a new tab's open on the browser session, so nothing connects to a tab Chrome may be closing. by @aaron42net in #103
- Record the Android 11 phone run of the browser session's tab events. by @aaron42net in #105
- Test back to the Chrome the bundled pdf.js supports, and give older Chrome only a quick look. by @aaron42net in #108
- Keep testing what doesn't depend on Chrome back to Android 10. by @aaron42net in #109
- Keep a new tab off another's screen through Chrome's second selection, and tell cleanup's HOME from a session's launch. by @aaron42net in #107
- Get clicks and keys past Chrome's hold on a page it has not drawn, and say so when one does not land. by @aaron42net in #106
- Name a new tab on Chrome 91 and 109 from the page discover did not replay, and answer not_found on a wait for a closed tab. by @aaron42net in #110
- Close a DevTools socket's adb stream, not okio's source, so Ktor's close can't corrupt okio's segment pool. by @aaron42net in #111
- Read an element with display: contents, which has no box of its own, instead of skipping it as hidden. by @aaron42net in #112
Full Changelog: v0.3.8...v0.4.0