Repository navigation
fix(browser): let the guest find the WebView devtools socket without /proc/net/unix - #442
Open
yuga-hashimoto wants to merge 1 commit into
Open
yuga-hashimoto wants to merge 1 commit into
yuga-hashimoto wants to merge 1 commit into
Conversation
…/proc/net/unix Android denies /proc/net/unix to untrusted_app, so the in-guest MCP server could never scan for webview_devtools_remote_<pid> and always reported 'not connected', even with agent control enabled. The app now publishes the socket name to .and-code/browser-devtools.txt (only after the agent-control opt-in) and the MCP server falls back to it, verifying with a connect probe.
yuga-hashimoto
force-pushed
the
fix/guest-browser-devtools-socket
branch
from
November 25, 2026 19:31
a21c79c to
9dda011
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
browser_status/browser_navigatefail with "WebView devtools socket not found" even thoughbrowser_showopens the browser. The MCP server discovers the socket by scanning/proc/net/unix, which SELinux denies tountrusted_app(Permission deniedinside the guest), so the scan can never succeed.Fix
webview_devtools_remote_<pid>to.and-code/browser-devtools.txtin the active workspace, only when the agent-control opt-in is on./proc/net/unixis unreadable, and verifies it with a connect probe, so a closed socket still reports not connected.Test plan
browser_showthenbrowser_statusreports connected