This is the first post on the new webadb.online blog — release notes, deep dives, and field reports from running webadb.online in production.
What’s here
Release notes when we ship a meaningful change to the desktop-style UI, the WebUSB session layer, or the device bridge.
Deep dives into the trickier parts of the stack — unzip -p on the device, the ya-webadb shell protocol, how we get crossOriginIsolated === true over Cloudflare Pages, etc.
Field reports from real-device testing (currently a Xiaomi 13 on HyperOS, plus whatever loaner lands on the desk).
How it’s built
The site itself is a Next.js static export served by Cloudflare Pages, and the blog is a plain Hexo instance living in blog/ whose output (hexo generate → public/blog/) gets folded into the Next.js export on the next npm run build. One repo, one project, two static-site generators.
The blog ships inside webadb.online/blog/, so the COOP/COEP headers that gate SharedArrayBuffer on the main app don’t leak into the blog’s HTML (we override them in public/_headers).
Chrome 159 crossed into Early Stable on November 18 at 159.0.8154.13, and the more interesting movement this week was not in a release note at all — it was in the Chromium bug tracker, where two separate Windows and macOS WebUSB defects landed on the exact API call that webadb’s connection path depends on. claimInterface() — the single call that decides whether a web page gets to talk to a phone at all — has now produced two shipping-blocker-shaped regressions in two months. Meanwhile the weekly Direct Sockets sweep came back with nothing: the WICG repository has not moved in a month, the ChromeStatus entry has not been touched since January 2025, and the API remains IWA-only, ChromeOS-only, and outside any public origin trial.
Taken together this is a week about friction at the permission boundary. The transport story is stalled where it has been stalled; what changed is how much sharp edges sit between “the user plugged in a phone” and “the page can send an ADB packet”.
Chrome 159’s Early Stable, and two WebTransport entries we hadn’t counted
Chrome 159 branched from main on November 9, went to Beta on November 11 as 159.0.8154.6, hit Early Stable on November 18, and reaches full Stable on December 8, 2026 — a three-week window, because the release train now straddles the year-end holidays. Chrome 160 branched November 30 and lands in Beta on December 2, Stable January 5, 2027. If you are testing webadb against a browser channel, the version you want is 159.0.8154.13 on Stable, not 159.0.8154.6.
Yesterday’s post covered the six WebTransport features that shipped in Chrome 159. Pulling the full release-notes page again this week surfaced two more that I had under-counted, and both are worth having in the mental model for a relay-based ADB-over-network transport.
WebTransport connection statistics (feature 5120203192139776) — WebTransport.getStats() now returns round-trip time measurements when available, an estimated sending rate when available, and counts of expired, lost, and dropped datagrams. The note is specific about the limits: Chromium does not currently expose connection byte or packet totals. So the statistic you get is a latency-and-loss view, not a throughput view. For an ADB relay that is arguably the more useful half — an interactive shell: session cares about RTT and about datagram loss, and does not care how many bytes moved.
WebTransport Datagram readable stream type (feature 5148774971342848) — datagramsReadableType: "bytes" opts into a BYOB readable byte stream instead of the default ReadableStream. Combined with the WebTransportReceiveStream interface from yesterday (getStats() distinguishing bytesReceived from bytesRead), the browser now offers both directions of a proper flow-control accounting for a byte-oriented protocol. AdbPacketSerializeStream is a byte-oriented protocol with a hard 24-byte header and a payload length field, which is exactly the shape that BYOB reading serves well.
And the other half of Chrome 160’s Dev channel is not device-peripheral either: Canvas2D tone mapping, SVG Path Data API (getPathData() / setPathData() / getPathSegmentAtLength()), Capability Elements icon-only mode, case-sensitive anchor matching in quirks mode, and the Regular Expression Buffer Boundaries proposal (\A, \z, \Z) still pending review. That last one would be a genuine ergonomics win for a logcat parser that currently has to hand-roll end-of-line anchors.
The WebUSB active-configuration bug on Windows
The significant find this week is Chromium bug #574558283, filed October 16, 2026 by a third-party reporter, assigned to Chromium’s own USB team on October 29, and still Assigned rather than Fixed as of this writing. It is tagged BugBountyCandidate-Small, which means Chromium is still deciding whether it has security weight.
The bug, in the reporter’s words: on Windows, USBDevice.configuration is always the device’s first configuration, even when Windows has put the device in a different one. Blink validates claimInterface() against the configuration Blink believes is active. So if the real active configuration contains interfaces that the first configuration does not, those interfaces cannot be claimed — and claimInterface() throws:
1
The interface number provided is not supported by the device in its current configuration.
And there is no escape hatch, because selectConfiguration() is unsupported on Windows and throws NetworkError: Unable to set device configuration.
The root cause analysis in the bug is precise and worth reading in full, because it is a three-step data-loss bug:
UsbDeviceWin::ReadDescriptors() opens hub_path_ and calls ReadUsbDescriptors() via a UsbDeviceHandleWin on the hub handle.
The device-descriptor request is served by IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX, which calls device_->ActiveConfigurationChanged(CurrentConfigurationValue) — storing the real value (4, in the reporter’s case) in device_info_->active_configuration.
UsbDeviceWin::OnReadDescriptors() then replacesdevice_info_ with descriptor->device_info, copying only guid, bus_number and port_number from the old object. The new object, built by ReadUsbDescriptors(), never has active_configuration set — usb_descriptors.cc does not touch it.
GetActiveConfiguration() now finds nothing, and the existing fallback kicks in: configurations()[0].
The fallback’s own comment says it plainly:
The active configuration was set after reading the node connection info from the hub driver. If it wasn’t valid, assume the first configuration.
The intent was for the hub’s value to survive. Step 3 throws it away. The suggested fix is a single assignment:
with the existing fallback left in place to cover the case where the hub genuinely reported nothing valid. A patch exists at chromium-review 8604626.
Why does this matter to webadb specifically? Because of the target the bug’s own impact statement names:
Any multi-configuration device whose WebUSB interface is not in configuration 1 is unusable from WebUSB on Windows, even when Windows is set up to select the right configuration: a page can neither see that configuration as active nor select it.
A phone in ADB mode is not a multi-configuration device — the ADB interface lives in configuration 1 — so the common path is unaffected. But this is not true of every Android configuration. Devices that expose a composite USB interface set (some OEM accessory modes, some phones that present a camera or mass-storage interface alongside ADB) can end up in a non-default configuration, and in that case the failure mode is not “your phone is not supported” but claimInterface() throwing a message that reads like the user did something wrong.
Note also the adjacent bug the reporter explicitly distinguishes from this one: #437728196, WebUSB control transfers with recipient: ‘endpoint’ only work for the first interface. Same Windows backend, different symptom — that one is about endpoint-recipient control transfers reaching later interfaces, this one is about the claim being rejected before any transfer happens. Two separate Windows WebUSB defects in the same backend, and both are invisible to anyone testing with a single-configuration device.
The macOS reset() regression and the WebHID blocklist going live
The second Chromium item is #579833799, an M157 regression on macOS: after USBDevice.reset(), the device is permanently unusable from WebUSB. claimInterface() fails with “Unable to claim interface”, and device-recipient control transfers fail too. Blink keeps reporting the old configuration.
The root cause is the same shape of bug as the Windows one, inverted: Chromium shipped a change to USBDevice.reset() that invalidates the configuration, and Blink was not taught to drop its cached view of it. The fix — “usb: Default-disable reset config invalidation” — was landed on main at services/device/public/cpp/device_features.cc (0b21cec08cb8eb08357def94f6cb102d07a13883) with the feature flag off by default, a Finch kill switch, and cherry-picks merged to both M157 and M158. The reporter’s verification comment is a nice piece of engineering practice:
Verified that issue does not reproduce on 159.0.8138.0 (Official Build) canary (arm64).
So the mitigation is in place on the branches that matter. But the shape of the bug is worth naming, because it is the shape that webadb has to survive against: a WebUSB call that mutates device state without the page being able to observe the change.reset() is the obvious one, but claimInterface() / releaseInterface() / selectConfiguration() are the same category. The WebUSB spec’s own model is that the page holds a USBDevice handle and can query device.configuration, device.opened, and the claimed-interface set at any time — and Chromium’s reset() implementation broke that contract for a full release cycle.
Meanwhile, in the spec repositories, a quieter but structurally important thing happened on November 14: whatwg/hid@3c85c59deploys blocklist.txt to hid.spec.whatwg.org, updating the blocklist URL in index.bs and wiring it through the Makefile’s EXTRA_FILES. It follows up on whatwg/spec-factory#93.
This is the WebHID spec reaching the same structural maturity that WebUSB reached when it moved to whatwg/usb: a published, fetchable blocklist of device identifiers that a user agent is expected to consult. WebUSB has had blocklist.txt in the spec repo for years; WebHID now has a deployed one. For a project whose entire premise is “a browser talks to a physical device over a USB-shaped protocol”, the blocklist is not an abstraction — it is the list of devices the browser has decided it will not talk to, and it is now published rather than implicit.
The rest of the HID spec’s recent history is the editorial kind of work that only happens on a spec with a permanent home: HIDDeviceFilter.vendorId becoming an unsigned short (19ec1aa), the polarity of HIDReportItem.hasPreferredState being corrected (25e6e56), and the report-descriptor parse appending to report["items"] correctly (42294fa). The WebUSB spec, for its part, has been quiet since 3dcc3c2 — “Restrict control transfers to standard requests and protected classes” — landed in June.
The protected-class bypass, and why it matters that it was a bypass
While we are in the WebUSB security area, it is worth recording the shape of the bugs Chromium has been fixing here, because they are not “the browser let a page do something dangerous” bugs — they are “the browser’s own protection mechanism could be talked out of doing its job” bugs.
#520743499 was a crafted-wIndex bypass: for CLASS requests targeting DEVICE or OTHER recipients, if the target interface could not be identified from wIndex (because it specified an invalid interface number like 0xFF), and the device had at least one protected interface in its active configuration, the request was not blocked. The fix — “usb: Fix protected class bypass via crafted wIndex in CLASS requests” — landed on main at services/device/usb/mojo/device_impl.cc (872fabf8796f3be9f54534158bf40a23732cfd7e). The original protection traces back to CVE-2018-6125 (blocked_interface_classes_); the incomplete-fix follow-up was #524520965, fixed by “usb: Block device-level CLASS requests if any interface is protected” (b334f9d5a8d0a54b39b0f17aa2149cdb3fd7e), and registered as CVE-2026-79211.
That CVE number is the operative detail. It says that for a period, the mechanism designed to stop a page from reaching a protected USB interface class — the mechanism that keeps ADB’s own interface class (0xFF/0x42/0x01) out of reach of generic pages — could be bypassed by a page that knew the trick. HasControlTransferPermission() in the device service was the enforcement point, and it had a fall-through path that returned true.
The 2026 series of these bugs — the standard-request direction check (#517453128, kWebUsbEnforceStandardRequestAllowlist permitting OUTBOUND control transfers with arbitrary payload for IN-only GET_* requests), the crafted-wIndex bypass, the device-level CLASS gap — is a coherent hardening campaign, not a set of coincidences. Chromium has been tightening the WebUSB control-transfer surface against a spec that has itself been tightening (3dcc3c2 restricting control transfers to standard requests and protected classes). For webadb the practical consequence is a good one, stated plainly: the ADB interface class remains protected, the enforcement point is being defended against bypass, and claimInterface() — the thing webadb actually calls — is the supported path. The interesting thing is that the bugs are not in claimInterface()‘s permission model; they are in the adjacent control-transfer surface that a page is not supposed to need.
The weekly Direct Sockets check: nothing moved
This is the Monday sweep, so it gets a full section rather than a footnote.
Spec / WICG.WICG/direct-sockets has not received a commit in the last seven days. The most recent is a75fe71 — “sending udp to multicast address requires permission policy” (#85). Before that, add094c replaced direct-sockets-private with the LNA-based local-network / loopback-network policies (#84), and the multicast work landed in a run of five commits (81e35c3, d3daa91, f3b6a21, 0fcfd27, a75fe71). The repository has no tags at all.
ChromeStatus. The canonical entry 6398297361088512 still reads “Last updated on 2025-01-14” — two years and ten months ago. Its stage is still Prepare to ship, its rollout plan still reads “Will ship enabled for all users / Chrome for desktop 131”, and there is still no Android milestone, no origin trial, and no dev trial.
The platform support note is the load-bearing sentence and it has not changed:
This feature is implemented on desktop platforms, although it will only be available to the end users on platforms that support Isolated Web Apps, which is currently only ChromeOS. Android is excluded for historical reasons, although there are no apparent interoperability blockers here.
And, unchanged from the entry’s WebView risk field: “Feature not compiled in Android.”
with the note that without the direct-sockets key, new TCPSocket(...), new TCPServerSocket(...) and new UDPSocket(...) reject immediately with NotAllowedError.
Vendor signals. Firefox’s position on the Raw Sockets API (mozilla/standards-positions#431) is still Negative — last updated November 16, 2024. WebKit: No signal. The W3C TAG design review (w3ctag/design-reviews#548) remains Timed Out from April 2022. Web Developers: Positive.
What is genuinely new since the last sweep is one line in the docs: the DevTools integration. From Chrome 138, you can debug Direct Sockets traffic directly within the Network panel, with a Messages tab and a Hex Viewer, so TCPSocket and UDPSocket traffic can be inspected alongside HTTP requests. That is a real quality-of-life change for anyone actually developing against the API, and it is the only substantive difference in the documentation since the previous sweep.
Verdict for this week: no movement. No origin trial, no Android, no ChromeOS expansion, no new spec commits, no vendor signal changes. The API is exactly where it was: implemented in Blink for desktop, exposed only to Isolated Web Apps, which as of September 2026 run only on ChromeOS. For an ADB client this means the wireless-debugging path in ya-webadb issue #784 — “Support Android 11+ Wireless debugging (TLS + pairing code/QR)”, opened by CurseStaff, still effort: high — remains blocked on a browser API that ordinary web pages cannot reach. The TLS pairing flow needs a raw TCP client certificate against the phone’s pairing port; navigator.openTCPSocket() would do it, and navigator.openTCPSocket() is IWA-only.
ya-webadb, and the shape of an unusually quiet month
ya-webadb’s main has not moved since a62aacc2 — “feat(scrcpy): add UHID manager”, November 20 — which is three days old and which we covered on November 20. The newest tag remains v3.0.0-beta.5 from d22e9dc3, November 6.
There are zero open pull requests. The four open issues are all long-haul and unchanged: #784 (wireless debugging), #640 (use Symbol.dispose instead of a custom Disposable), #487 (record and replay user input, domain: scrcpy, effort: medium), and #343 (fastboot mode).
One branch is worth noting because it is visible in the remote refs and not in the mainline: origin/feat/scrcpy-control at 6bb9151c (November 18, “chore: fix review comments”). That is the scrcpy input-control work — the UHID keyboard and mouse injection path — and it is the natural continuation of the UHID manager that merged on November 20. A UHID manager without UHID control is half a feature: you can enumerate virtual HID devices but not yet drive them.
This is worth pausing on, because it explains the quiet. ya-webadb is three weeks from a beta.5 → beta.6 cycle and the project is in the part of the scrcpy port that is genuinely hard: the server side of scrcpy exposes a control socket for injecting keyboard and mouse events, and driving those events on the device means writing to the UHID kernel interface — which requires root, or at minimum a device with a permissive uhid policy. The WebHID angle is the interesting workaround, because WebHID is now on Android (Chrome 158) and HID is exactly the protocol UHID speaks. A phone in developer mode with persist.vendor.usb.hid enabled exposes its UHID nodes over USB as HID devices — and Chrome on that same phone can now reach them over WebHID, since WebHID shipped on Android in Chrome 158.
That is a genuinely surprising convergence: the browser API that shipped on Android last week is the same protocol that ya-webadb’s next major scrcpy feature needs, on the same class of device, and the two halves are on different teams. Chromium’s WebHID-on-Android work is crbug 40628009 (marked Fixed, default-enabled in M157 via crbug 573155176, “Enable the WebHID API on Android by setting the runtime enabled features flag to ‘stable’ on all platforms”), with the Android chooser and Site Settings gated on HidManager availability by chromium-review 8560300 — “hid: Gate Android chooser and Site Settings on HidManager availability”, committed 85f9a1d31eff754be3d430499088f5d8989e6040 on October 14, 2026.
Where this leaves webadb.online
Four things, in descending order of how much they should change what we do.
One — the claimInterface() path is where our users’ failures will live, and we should instrument our own error surface accordingly. Two shipping Chromium bugs in two months, both in claimInterface() validation, both with error messages that blame the user for a platform defect. Our connect flow calls open(), selectConfiguration(), claimInterface() in sequence and surfaces the raw DOMException. The honest thing to do — and the pattern we already use for OEM-restricted shell failures — is to recognise the specific Chromium messages and translate them:
“The interface number provided is not supported by the device in its current configuration.” → this is Chromium bug #574558283 on Windows. It is a platform defect, not a user error, and the workaround is to use a device in configuration 1.
“Unable to claim interface” immediately after a reset() → this is Chromium bug #579833799 on macOS, mitigated on M157/M158, and the workaround is to reconnect the device rather than reset it.
Both of these should produce a verdict-plus-workaround message, not a raw exception string.
Two — a WebHID-over-ADB path is now conceivable, and it is the only transport story that moved. Direct Sockets did not move; WebTransport moved in Chrome 159 and its feature set is now genuinely sufficient for a relay. But the thing that actually changed this week is that WebHID is on Android — Chromium bug #40628009 went Fixed and default-enabled — and WebHID speaks HID, and UHID speaks HID, and ya-webadb’s next scrcpy milestone is UHID control. A phone exposing UHID over USB for HID purposes is simultaneously (a) a device whose UHID nodes a desktop scrcpy client could inject into, and (b) a device whose own Chrome could reach those same nodes via WebHID. That is a topic worth a dedicated experiment, not a shipping plan.
Three — the Direct Sockets answer did not change, and we should stop treating it as pending. The API is IWA-only, ChromeOS-only, has no origin trial, has a two-year-stale ChromeStatus entry, and its vendor signals are negative (Firefox), silent (WebKit), and timed out (TAG). Our lib/adb-daemon-tcp.ts already implements the Direct Sockets transport contract; it should be documented as an experimental, IWA-only path, and the wireless-debugging feature that users actually want should be scoped as a relay-server project, because the browser-side constraint is not going to relax on its own.
Four — the WebUSB control-transfer hardening campaign is good news, and it validates the interface-scoped design. CVE-2026-79211 and the two preceding bugs were all in the control-transfer surface — the thing a page is not supposed to need for ADB. Chromium has been defending that boundary since May. It is a reasonable bet that the boundary keeps tightening, which means our design constraint stands: talk to the ADB interface via claimInterface() and bulk transfers, and never reach for device-recipient control transfers. We do not. The open() → selectConfiguration() → claimInterface() → transferIn/transferOut sequence in our WebUSB path is the supported path, and the bugs being fixed are elsewhere.
No code changes shipped from any of this. But the shape of the ecosystem moved in a way that is directly actionable: two of the three platform bugs we found this week are in the exact call our connect flow makes, and we now know the specific error strings to translate.
This week’s Direct Sockets sweep was run in full (Monday cadence): spec repository, ChromeStatus entry, developer documentation, and vendor signals — all checked, all unchanged. The prior sweep was 2026-10-12.
Open webadb.online in Chrome, hit Connect device, pick your phone in the picker, and a seconds later a >_ shell is running in your browser — no driver install, no daemon, no native binary. There is no server in the loop. USB traffic never leaves your machine. This post walks through how that actually works, end to end: from the moment Chrome renders the device picker to the moment shell.exec("ls") returns text in your terminal pane.
The three actors
The whole stack has three components that need to agree on a wire protocol:
Component
Runs in
Talks to
Chromium browser
your machine
Android device via USB
webadb.online
a Cloudflare Pages static bundle
Chromium (your tab)
ya-webadb
bundled in webadb.online (@yume-chan/adb, @yume-chan/adb-daemon-webusb)
Chromium → device
ya-webadb is the TypeScript ADB implementation that makes the browser side possible. It reimplements the ADB protocol on top of a UsbConnectionInterface that you wire up — for web, that’s the WebUSB-backed WebUsbDaemonConnection from the -webusb companion package. We don’t fork ya-webadb; we just import it and feed it the device the user picked.
Step 1 — the device picker
The whole flow starts with a single line in lib/use-connect-actions.ts:
That call hands control to Chrome, which renders the native USB device picker (anchored to the top-left of the page on macOS, top-center on Windows). Chrome reads every USB device the host kernel knows about, filters the ones exposing the ADB interface (vendor 0x18d1 / 0x04e8 / 0x12d1 / …), and shows just those.
Once you pick one, Chrome returns a USBDevice handle. Your browser tab, not webadb.online, owns that handle. From this point on, no other browser tab and no host-side adb daemon can talk to the phone — the kernel driver is bound to whichever process opened the device. If you try adb devices on the host while a webadb.online session is live, you’ll see no devices. This isn’t a bug, it’s how USB works.
USBDevice is then passed to WebUsbDaemonConnection, which builds the ADB daemon transport around it.
Step 2 — the ADB handshake
ADB is a length-prefixed binary protocol over a bulk USB endpoint. Every “connection” is a stream of framed packets; each packet has a 24-byte header (command, arg0, arg1, payload length, magic, checksum) followed by a payload. ADB version, max payload, banner, etc. are exchanged in plain ASCII during OPEN.
ya-webadb implements the entire protocol in pure TypeScript. Its AdbDaemonConnection consumes the framed stream from WebUSB, dispatches by command, and gives you back Adb objects that wrap sync / async / shell / file services.
Our lib/adb-client.ts is a thin wrapper around that. It owns:
the Adb object (one per session)
a disposers array so the React effect cleanup can call .close() on the connection when the user disconnects
a tiny event bus that the React layer subscribes to
The Adb object itself exposes typed services — AdbSync, AdbShell, AdbFile, AdbReverse, AdbForward, AdbTcp, AdbPower — that’s every subsystem the panels use.
Step 3 — auth (the RSA fingerprint dance)
ADB requires an RSA keypair to authenticate the host. The browser generates one with crypto.subtle.generateKey on first connect; it persists in IndexedDB (the webadb-online:credentials database). Every subsequent connection uses the same key.
On the phone, the first time you connect with a new host key, Android pops a system dialog asking you to confirm the fingerprint of the host key. The user’s “Always allow from this computer” check permanently trusts the key. After that, the browser-side auth is invisible.
This is the part people hit most often. If you tapped Cancel once and now the panel says “device unauthorized”, the fix is to revoke the authorization from Developer Options on the phone (USB debugging settings → Revoke authorizations → re-plug). The browser-side key stays the same, so you don’t have to re-grant every app — just once per device.
Step 4 — per-service plumbing
Once Adb.authenticate() returns, the panels open connections to specific services:
1 2
// from lib/screencast/pipeline.ts const stream = await adb.shell.raw(`screenrecord ...`);
ADB services are addressed by name. shell:v2:raw:command opens a shell subprocess. sync: opens the file service (used by File Manager, APK install). shell:exec:command runs a one-shot exec without a PTY. Each of these has its own framing — some are length-prefixed streams, some are bidi, some have their own handshake.
ya-webadb models each service as a class. When a panel calls adb.shell.raw("..."), ya-webadb:
Opens a new USB bulk endpoint pair (in/out).
Sends OPEN(1, "shell:v2:raw:screenrecord ...") to the daemon.
The daemon forks the subprocess and pipes its stdout to the bulk in endpoint of the new connection.
Returns a ReadableStream<Uint8Array> that yields the subprocess output as it’s produced.
Step 5 — streaming binary data (the screencast case)
Screencast is the gnarliest user of the protocol because it streams megabytes per second through a 16-MB-payload USB endpoint, where each MP4 chunk is its own complete ISO BMFF file. We use shell:v2:raw specifically because the default shell:exec: protocol caps payloads at the device-side MAX_PAYLOAD from OPEN (usually 256 KB on modern phones). The :raw variant skips that aggregation layer and gives us the raw fd, which is what screenrecord --output - would write to — except HyperOS won’t let screenrecord write to stdout, so we use the file-mode trick (writing to /sdcard/webadb-screencast.mp4 and polling the file via a separate stat / dd shell command — see the screencast deep-dive for why this works and what edge cases we hit).
Step 6 — disconnect
webadb.online only holds the USB device for the lifetime of the tab. When you close the tab, hit Disconnect in the top bar, or refresh, the cleanup effect in use-connect-actions.ts calls adb.close() which:
Sends CLOSE on every open service.
Calls USBDevice.close() on the WebUSB handle.
Releases the kernel driver back to the host (so adb devices on the host works again).
The browser may also revoke the persisted device permission, depending on the version of Chrome. To re-grant, you click Connect device again — the picker remembers the last device, so it’s one click, not a fresh flow.
What this means for the security model
Three properties worth calling out:
Zero server trust. The static bundle never talks to anything other than your USB device. The Cloudflare Pages origin only serves files. There’s no analytics endpoint, no session server, no debug ping. GA4 is loaded with anonymize_ip and respects prefers-reduced-motion so it doesn’t change behavior in privacy-sensitive contexts.
The USB device grant is the security boundary. WebUSB grants are per-origin (scheme + host + port). A different origin can’t reuse your grant. That’s why we don’t embed a third-party iframe for the ADB handshake even when the temptation is real (CDN debugging, support tooling).
The persistent key is local. Your ADB host key is in IndexedDB under the webadb.online origin. If you clear site data the next connection will produce a new key and the phone will ask you to authorize again. There’s no way to “back up” the key across browsers; that’s intentional.
What’s in the queue
The deeper-cut topics we’ll cover in separate posts:
the moov-at-end / rotating-recorder design in the screencast panel, and why we can’t just rely on screenrecord - stdout on modern Android
cross-origin isolation (COEP require-corp + COOP) and the exact sequence of headers that lets us use MediaSource, SharedArrayBuffer, and WebUSB in the same page without breaking GA4
the roadmap: audio capture, app deep links, Scrcpy-level touch emulation, and a real installer
the macOS Big Sur window chrome — why we did it, what the accessibility trade-offs are, and how the dock persists state
If you want to peek at the protocol itself, @yume-chan/adb ships a debugging dump mode that logs every frame to the console — useful when you’re trying to figure out what cp -r is doing under the hood.
The screencast panel is the only place on webadb.online where bytes flow from the device into the browser at the speed of a small video stream. Everything else — terminal output, logcat, file uploads — is small text. The screencast pipeline is a few hundred lines of code that has to deal with three things that are not in any textbook:
screenrecord writes the moov box only at end-of-recording — the device-side file is half-finished at every moment during the recording. ISO BMFF init segments aren’t optional.
screenrecord - (stdout mode) is broken on HyperOS — the kernel returns “Read-only filesystem” when screenrecord tries to open stdout. So we have to use the file mode and poll a path on /sdcard.
The 4-GB size limit on 32-bit box headers — Xiaomi’s screenrecord uses 64-bit largesize boxes for the mdat, which need BigInt parsing on the JavaScript side.
This post is the writeup of the design that finally shipped — commit b8fcb37 on main, after four false starts.
The naive plan (what doesn’t work)
The most straightforward screencast implementation is:
1 2 3 4
const stream = await adb.shell.raw("screenrecord - --time-limit 5"); constchunks: Uint8Array[] = []; forawait (const chunk of stream) chunks.push(chunk); // stitch chunks, mux into fMP4, appendBuffer to MediaSource
The muxing step is the part mp4-muxer does for you. You push H.264 NALs in, you get fMP4 init + media segments out, you append them to a SourceBuffer and video.src = MediaSource plays it. This is the shape of the implementation most scrcpy-web clones use.
Two problems:
screenrecord - fails on Xiaomi / HyperOS / API 36. It writes to stdout, then the kernel refuses because stdout isn’t a regular file on Android. You get error: cannot open 'w-': Read-only filesystem. You can verify this on your phone with adb shell "screenrecord - /sdcard/foo.mp4" — same error.
Even where stdout works, the moov box lives in screenrecord’s internal buffer until end-of-recording. If you mux from raw NALs yourself you don’t need moov (you build your own init segment with SPS/PPS extracted from the first IDR). But every short-lived recording of 3 seconds means 3 seconds of dead video at the start — the mux needs an IDR to extract SPS/PPS, and screenrecord emits an IDR every couple of seconds, so you usually wait ~2 seconds before the first frame paints.
The dead-video problem is also why trying to do the obvious thing — pipe screenrecord stdout straight into your muxer — gives you a panel where the video is permanently ~3 seconds behind real time.
What we landed on
Use screenrecord in file mode, then poll the file from a second adb shell command. Use screenrecord’s own ftyp + moov boxes verbatim (no custom muxing) and stream them to MediaSource.
This works because screenrecord writes complete, self-contained MP4 files. Every file has ftyp at offset 0, mdat in the middle, and moov at the end. The moov contains the avcC box which has the SPS/PPS. The mdat contains only H.264 NALs (no SPS/PPS — those are in avcC). This is verifiable by pulling a finished recording off the device and running ffprobe:
…and parsing the mdat’s first NALs with a custom walker that classifies each by NAL type byte: you see [5, 1, 5, 1] (IDR + non-IDR) but never a 7 (SPS) or 8 (PPS).
So: device gives us a self-contained MP4; we ship it verbatim to MSE.
But we have the live-streaming problem — screenrecord takes the full --time-limit to write moov, and we don’t want to wait 3 seconds with a black screen.
Each iteration produces a complete MP4 file with its own moov. We use the first chunk’s ftyp + moov as the init segment for the entire MSE session. Subsequent chunks’ mdat content gets appended as media segments — their ftyp and moov are discarded.
Why this works:
screenrecord uses the same encoder config across runs (same resolution, same bitrate, same frame rate), so the SPS/PPS in every chunk’s avcC are identical to the first chunk’s.
MSE remembers the init segment’s stsd/stts/stsc/stsz/stco tables and uses them to interpret subsequent media samples. As long as the new mdat bytes correspond to those tables, MSE is happy.
There’s a brief gap between chunks — the kill / rm / re-spawn takes ~500 ms during which the file is empty. The MediaSource stays open and the buffered video keeps playing back during that gap. The user sees a brief stutter every ~5 seconds, which is much better than 3 seconds of black screen at start.
Polling a growing file (the part that took longest)
The naive “poll the device-side file” function does this:
1 2 3 4
// WRONG — DO NOT USE const stream = await shell.spawn([ "tail", "-c", `+${offset + 1}`, STREAM_PATH, ]);
That looks correct but blocks forever when screenrecord is actively writing to the file. tail -c +N reads from offset N to EOF and only terminates on EOF — for a file with an open writer, EOF never comes, so the process never exits, so ya-webadb‘s shell.spawn().wait() (which awaits process.exited) never resolves.
The CDP-attached trace that surfaced this is on file in the screencast saga — [screencast] screenrecord chunk started was logged, then zero poll lines, even after 20 seconds. The shell subprocess was just hanging.
Three iterations to fix:
Attempt
What we tried
Why it failed
tail -c +N
Standard incremental tail
Blocks on never-EOF writer
wc -c < file
One-shot, returns on EOF
Same problem — wc also reads to EOF
dd if=… skip=… count=
Read N bytes only
count cap was missing initially
The actual working implementation uses two shells in sequence:
1 2 3 4 5 6 7 8 9 10 11 12 13
// size probe — stat() is a syscall, never reads content const size = await shell.spawn(["stat", "-c", "%s", STREAM_PATH]) .wait().toString();
stat -c %s returns the current file size immediately even if screenrecord is mid-write — the kernel tracks size on every write(2) call regardless of whether the process has called fdatasync(2). And dd exits the moment it’s read count bytes, which terminates the shell subprocess and resolves .wait().
The 8-MB per-poll cap on want keeps each shell transfer bounded — if we fall way behind for some reason we never drain megabytes through a single shell call.
The BigInt detour
The mdat box in screenrecord’s output is huge (hundreds of MB for a 30-min recording). When the file size crosses 4 GB the box header switches from a 32-bit size to a 64-bit largesize with a length-1 sentinel at offset 0–3 and the real size at offset 8–15.
JS Number only has 53-bit mantissa precision. Reading the largesize as hi * 2^32 + lo silently rounds once hi > 1, which gives you garbage. CDP traces showed mdat(4557430888798830600 @24) — the 4557430888798830600 is 0x3f3f3f3f3f3f4008, which is actually uninitialized kernel page bytes (the file was allocated but the content hadn’t been written yet, so the largesize field reads as sparse placeholder bytes). Even after the field is properly initialized, the JS rounding still corrupts large values.
Fix:
1 2 3 4 5 6 7
const big = newDataView( bytes.buffer, bytes.byteOffset + off + 8, 8 ).getBigUint64(0, false); constMAX = BigInt(Number.MAX_SAFE_INTEGER); const totalSize = big > MAX ? Number.MAX_SAFE_INTEGER : Number(big);
The clamp to Number.MAX_SAFE_INTEGER is only a safety net — no real recording on a phone will hit 8 PB. In practice the BigInt read gives us the correct size every time.
Walkers, not magic numbers
The mp4 box walker used to be a single-purpose findMdatOffset() function that returned one offset. As soon as we needed to find ftyp, moov, and mdat in one pass it became a one-shot walker that records every top-level box it sees:
A generic walker is more code but it’s easier to reason about and easier to add a new box type to (which we did a few times — adding ftyp capture for the first chunk’s ftyp box so the init segment uses screenrecord’s exact ftyp verbatim, including the right brand string and minor version).
The init / media dispatch
The dispatch logic is the part of the pipeline most likely to silently misroute bytes:
Three branches, all named: buffer-only (no moov yet), first-flush (init + buffered mdat), streaming (subsequent mdat). The initSegmentSent flag is the line that separates “we’re buffering” from “we’re streaming”.
What would change for audio
screenrecord v3 on AOSP can capture mic audio with --audio-source MIC, but Xiaomi/HyperOS strips that flag. We don’t have an audio path yet. The cleanest fix when it ships is to mux the audio track into the same fMP4 init segment — the codec extraction in extractAvcCodec becomes extractAvcAndAudioCodecs returning video/mp4; codecs="avc1.X, mp4a.40.2" and the rest of the pipeline is unchanged. Pulled into a separate post when we have hardware that supports it.
Where to look in the code
lib/screencast/pipeline.ts — the whole pipeline (~700 lines)
lib/screencast/types.ts — the codec + progress message types
components/ScreencastPanel.tsx — the React panel that owns the video element and dispatches start/stop
A future post will dive into the cross-origin isolation setup (COEP / COOP / CORP) that makes MediaSource and SharedArrayBuffer available without breaking GA4 — that’s a whole separate can of worms.
This is the post I’d want to read if I were considering using webadb.online for something serious and wanted to know what’s actually in the queue. Concrete features, ordered by where they are in the development cycle, with the blockers called out.
We’re at v0.1.0, with twelve panels and ~5k LOC of TypeScript. Things that work, work well — the screencast saga is the long-running one and even that has stabilized. The notes below are about the gaps.
Now (the next 6 weeks)
Screencast audio
screenrecord --audio-source MIC works on AOSP but Xiaomi / HyperOS strips the flag. We’ve confirmed via adb shell screenrecord --help that the option is silently dropped before the binary starts, so we can’t even pass it through. The two paths forward:
Capture audio on the device via a different route (e.g. a tiny helper app we side-load) and mux it into the fMP4 init segment at the browser side.
Wait for Xiaomi to ship unstripped screenrecord.
The fMP4 muxing is already in the design — extractAvcCodec becomes extractAvcAndAudioCodecs and the addSourceBuffer(codecs) call gets the combined codec string (video/mp4; codecs="avc1.X,mp4a.40.2"). Maybe 40 lines of change once we have a source.
Clipboard panel for bidirectional text + image
Today the clipboard panel reads text from the device clipboard. Bidirectional text works via the cmd clipboard set-text service. Images don’t work because the device-side clipboard service only carries text; images on Android are stored per-app, not in a system-wide clipboard, until Android 14’s “default clipboard” opt-in lands.
Scrcpy-level touch
The screencast panel currently has no input — it’s strictly view-only. Touch is the obvious next addition. The implementation route is adb shell input touchscreen tap x y, which is on-device latency of 100–200 ms. Scrcpy does better with a custom InputManager service but that’s not accessible without root.
For mouse: same primitive, different event type (tap vs swipe). We can ship click + drag + scroll with no architectural change. The harder half is multi-touch (pinch to zoom) which needs input touchscreen calls in a specific sequence with a tight timing budget.
File manager search
Recursive filename search with a regex, plus content grep on text files (capped at ~10MB per file so we don’t blow the device’s RAM). The wiring is there — AdbSync.read() streams chunks — we just haven’t built the UI for it.
Next (6–16 weeks)
Multi-device switching
Today the topbar shows one device. If you have two phones plugged in via a hub, you connect to one, then disconnect, then connect to the other. There’s no parallel-session model. Adding it would mean:
An AdbConnection[] instead of Adb | null in the React store.
Each panel takes a deviceId prop and looks up the right connection.
The screencast pipeline is the gnarliest port — its spawn / kill / file-poll loop has to be per-device.
We’d want this for power users. It’s not in the queue for the first six weeks because it’s the kind of feature that needs careful state-management work to avoid cross-device pollution.
App deep links
adb shell am start -W -a android.intent.action.VIEW -d URI will deep-link into an installed app. Adding a panel that lets you bookmark a list of deep links (per app) and fire them with a click is two days of work. Useful for QA, useful for presentations.
Persistent host key backup / restore
The browser’s ADB keypair lives in IndexedDB. There’s no way to export it. Adding an export-to-PEM button is maybe 50 lines. Restoring from PEM is another 50. Both useful for people who have multiple browsers and want to skip the phone’s “Allow USB debugging?” dialog when they switch.
Later (next 6+ months)
Installer / launcher
A package that bundles webadb.online with the ability to detect when the user has Chrome installed and one-click register a chrome://webadb/ shortcut. Outside the scope of a Cloudflare Pages static bundle, but doable as a small Electron or Tauri-style binary that wraps the same bundle.
WebRTC tunneling for low-latency screencast
adb reverse is fine for shell and other bidirectional streams, but the screencast path polls a file on the device. A WebRTC bridge would let us send H.264 over a peer connection to the browser and skip the polling round trip entirely. Latency drop: ~150ms. Effort: large — needs a small native helper on the device that owns the encoder.
Account sync
Multi-device workflow needs an opt-in account layer to sync saved layouts, app shortcuts, the persistent ADB key, and the last device used. The data is small enough to fit in any cloud provider; we’d never see the content of your shell sessions, only metadata.
We’re deliberately not building this until there’s actual demand. Account systems are expensive to design well and easy to design badly.
What’s blocked (and why)
Wireless ADB out of the box
The Wi-Fi ADB panel exists and works for devices that already have wireless debugging enabled. We can’t toggle wireless debugging on by default because the API to do so (adb shell settings put global adb_wifi_enabled 1) is gated behind either root or a specific permission that Xiaomi doesn’t grant over USB. This isn’t a web limit — it’s an Android one.
Multi-touch input
As noted under Scrcpy-level touch — needs InputManager service which needs root. There might be a way with vendor-specific utilities (Xiaomi has cmd input extensions) but we haven’t checked every ROM variant. Will dig into it once a Xiaomi engineering contact surfaces.
adb backup / adb restore
Backup is a 4-year-deprecated shell protocol that Google keeps around but won’t fix. Most modern apps refuse to participate (you have to opt-in via android:allowBackup="false" which many devs do). The wire format is documented but the end-to-end is broken enough that we’d be building a compatibility shim. Not in the queue.
What we need from users
If you’re using webadb daily and want something done, the most useful things you can do are:
Report what device + OS combo you’re on when something doesn’t work. The screencast saga was unblocked by a single adb shell screenrecord --help output from a Xiaomi user.
Open issues for actual blockers, not feature requests. “I want my layout to persist across sessions” we already built; “I want feature X” is on the roadmap. The first type of issue gets a fix in days, the second waits for someone to want it hard enough to build.
Don’t ask for cloud sync. We won’t do it. If you want it, fork and build it. Sync systems are where privacy disasters happen and the security model of webadb specifically avoids server state.
Where to follow along
The release notes go in this blog (you’ll see them tagged release-notes). The detailed engineering writeups are tagged deep-dive. The roadmap itself is just this post, updated quarterly.
If you’ve read this far, the next post in the series is The macOS Big Sur chrome — how the window manager, the dock, the draggable + maximizable desktop windows, and the state persistence work, and why we picked that aesthetic over a more “PWA-y” mobile-shell look.
Breadstick shipped a browser page that runs adb against a phone over WebUSB on October 23, and the LineageOS project — the largest ROM project on Earth, with an install base in the millions — ships a browser-based flasher that credits ya-webadb by name alongside fastboot.js and libmjolnir. Two teams, working independently, on the same library, shipping the same line of it. The interesting part is not that they use Tango ADB. It is which Tango ADB they use: both are pinned to 2.6.4, the current latest dist-tag, while the 3.0.0 beta line has sat at 3.0.0-beta.4 since October 9 with no release behind it.
This post is a field report from reading their shipped bundles.
Breadstick Tools — the card-based adb runner
Breadstick Tools is the “computer side” of Breadstick Linux, an Android app that runs a real Debian environment on Samsung DeX. Three of its settings can’t be changed from inside Android — Android won’t let an app change them about itself — so they need a host computer running adb. Breadstick’s answer is to be the host computer in a browser tab.
The page is deliberately verbose. Every card shows the current state, what the setting does in plain words, the exact command, and the inverse command, and nothing runs until you click the card’s button:
1 2 3 4 5 6 7 8 9 10
Read the state: adb shell settings get global settings_enable_monitor_phantom_procs adb shell getprop persist.sys.fflag.override.settings_enable_monitor_phantom_procs adb shell device_config get activity_manager max_phantom_processes
Turn off: adb shell settings put global settings_enable_monitor_phantom_procs false
Turn on: adb shell settings put global settings_enable_monitor_phantom_procs true
The background-process-limit card is the interesting one. Android caps an app at 32 background processes on most devices; a Linux desktop is made of processes, and to Android all of them belong to Breadstick. When the total crosses the limit, Android kills processes until it’s under again — and when the one it picks is the one hosting Linux, the whole desktop closes at once. Turning the limit off is the fix, and it applies to every app on the device, not just Breadstick. The card says so out loud.
The other two cards are enable_freeform_support (the Floating-mode switch) and the pair of permissions the Android 14+ virtualization framework guards behind — MANAGE_VIRTUAL_MACHINE and USE_CUSTOM_VIRTUAL_MACHINE — which are pm grant-able but can never be requested in a dialog:
1 2
adb shell pm grant --user <user> io.breadstick android.permission.MANAGE_VIRTUAL_MACHINE adb shell pm grant --user <user> io.breadstick android.permission.USE_CUSTOM_VIRTUAL_MACHINE
Before granting, the card checks whether the device can run VMs at all: Android 14+, the virtualization_framework feature, a hypervisor that runs non-protected VMs (ro.boot.hypervisor.protected_vm.supported), and the virtmgr binary under /apex/com.android.virt/bin/. If any of those fail, the card offers no button at all and tells you to use the Standard engine instead.
The page also collects a support report and runs repairs, including one that reaches into the Linux side over a broadcast the Breadstick app exposes:
1 2 3 4 5
adb shell am broadcast -n io.breadstick/.api.AdbShellReceiver \ -a io.breadstick.adb.SHELL --es cmd 'echo <script as base64> | base64 -d | sh' \ --es id <id> adb shell cat /sdcard/Android/data/io.breadstick/files/adb/<id>.out adb shell cat /sdcard/Android/data/io.breadstick/files/adb/<id>.rc
Two design decisions here are worth stealing. First, the exact command is shown before it runs, and the inverse command is on the same card — the page is a no-install replacement for a terminal, and the terminal’s transparency is the feature. Second, the page states its own browser limits plainly: Firefox and Safari cannot do WebUSB, Chrome on Android with an OTG cable “may work; it is not tested”, and Googlebooks have no USB device mode at all so the page can’t reach them.
The version pin, verified from LICENSES.txt
Breadstick publishes the exact library set it bundles. This is the whole file, minus the MIT bodies:
1 2 3 4 5 6
Breadstick Tools (https://breadstick.io/breadstick-tools/) bundles the following open source libraries, each under the MIT License. Source: https://github.com/yume-chan/ya-webadb
Every one of those is the current latest dist-tag on npm. The beta dist-tag sits at 3.0.0-beta.4 across the whole @yume-chan/* scope — published October 9, sixteen days before Breadstick’s post — and neither Breadstick nor LineageOS is on it.
LineageOS Flash Tools — the same library, at scale
These efforts are only possible due to kdrag0n’s amazing work on fastboot.js, yume-chan’s brilliant work on ya-webadb, and r3pwn’s timeless work on libmjolnir - go thank them!
That landed the tools at download.lineageos.org/flash, and the LineageOS 24 launch on October 11 re-surfaced them to an audience that had not been paying attention — 9to5Google, Android Police, and certi.news all covered “a new way to install it” as the headline feature of the release.
The tool is four tabs, each a self-contained flasher with its own Connect button:
Tab
Mode
Underlying protocol
ADB
Recovery
adb sideload over adb shell protocol v1
Fastboot
Fastboot / Fastbootd
fastboot.js
Odin
Samsung download mode
libmjolnir
Amlogic
USB burn mode
libmjolnir
The Fastboot tab is the substantive one — boot, flash, wipe super, getvar, set active, reboot, and a raw “run command” escape hatch for things like flashing unlock.
What the shipped bundle actually contains
The portal is a Vue SPA whose device-facing code is lazily loaded. The ADB half lives in assets/FlashToolsTab-DQtkVVJn.js (306 KB), and it contains the Tango ADB implementation inlined — not a CDN import, not a lazy import() of a separate chunk. You can find the credential store by its telltale string:
indexedDB.open("Tango", 1) with an "Authentication" object store and RSASSA-PKCS1-v1_5 / 2048-bit / SHA-1 is a fingerprint with exactly one source. Here it is from libraries/adb-credential-web/src/index.ts at tag v2.6.4:
The v3.0.0-beta.4 tree does not contain that file in that shape at all. The beta reorganized credential storage into a pluggable TangoKeyStorage interface with backends under libraries/adb-credential-web/src/storage/indexed-db/, including a versioned v2.ts migration path and a shared.ts that opens indexedDB.open(name, version) with a generated database name. The bundle’s hardcoded "Tango" / "Authentication" pair is the v2.x implementation, unversioned and unmigrated.
The WebUSB surface in the same bundle shows the rest of the transport: navigator.usb with getDevices, controlTransferIn, open, authenticate, and the fastboot OKAY/FASTBOOT response tokens.
The version pin, verified from the bundle
Neither the LineageOS bundle nor Breadstick’s LICENSES.txt is on the 3.0.0 beta line. Concretely, across the @yume-chan/* scope:
Package
latest
beta
Who ships which
@yume-chan/adb
2.6.4
3.0.0-beta.4
both ship latest
@yume-chan/adb-daemon-webusb
2.3.2
3.0.0-beta.4
both ship latest
@yume-chan/adb-credential-web
2.1.0
3.0.0-beta.4
both ship latest
That is a defensible choice and probably the correct one. The v3 line carries a real credential-storage regression — the Sep 22 post covers the IndexedDB breakage in 3.0.0-beta.3, fixed by PR #871 and shipped in 3.0.0-beta.4. But two production adopters independently landing on the stable line is also a signal about the beta’s migration cost: v3 is not a drop-in 2.6.4. The credential store was rewritten behind a new interface, the storage backend is pluggable, and consumers who have persisted a key in IndexedDB need a migration story, not a version bump.
For anyone shipping ya-webadb to end users today: stay on 2.6.4 unless you have a specific reason to move, and read the upgrade guide’s credential-storage section first.
Why browser-based flashing matters more in 2026 than in 2024
None of this is in a vacuum. Android 16’s Advanced Protection Mode blocks ADB sideloading outright when enabled, and Android 17 extends the trend — WRITE_SECURE_SETTINGS grants are refused, SYSTEM_ALERT_WINDOW can no longer be set through appops, and Play Protect can no longer be disabled via pm disable. The shape of the restriction is consistent and easy to state: reads still work, writes are being walled off.
That is why a WebUSB flasher is a genuinely different product category now rather than a convenience. fastboot writes partitions directly through the bootloader protocol and is not routed through the same pm install / permission-grant surface that Advanced Protection Mode tightens. A browser-based fastboot tab sidesteps the whole “install an APK from a computer” question, and it does it with no platform tools, no PATH, no driver matching, on a locked-down corporate laptop that would refuse to run an unsigned binary.
The remaining friction is interface ownership, and it is the same one webadb.online lives with daily: one program at a time. A USB interface can be claimed by exactly one claimant. Android Studio, scrcpy, a terminal adb, or another browser tab all contend for it. LineageOS’s wiki says it plainly — “If you have adb already installed locally, run adb kill-server before using the web flash tools” — and Breadstick’s troubleshooting card says the same thing from the other direction: “Only one program can hold the adb connection at a time, so this page and a terminal’s adb take turns.”
There is also the udev wrinkle on Linux, which both projects document: WebUSB needs a udev rule granting the browser access to the device, unless you’re on a distribution with systemd v261 or newer.
What this means for webadb.online
No code changes to webadb today — the direct-sockets weekly check was skipped because this is a Sunday, and there was no new upstream ya-webadb activity in the last 24 hours anyway (the last commit on main is 7bcec613, the v3.0.0-beta.4 release itself, from October 9).
What this changes is our understanding of where the library sits. For a long time, ya-webadb’s production deployments were mostly demos — Tango’s own playground, app.webadb.com, a scattering of hobby projects. The library is now load-bearing inside the Android custom-ROM world’s largest project and inside a shipping consumer app with a Google Play presence. Both of them chose the stable 2.x line, and both of them document the exact versions they ship.
That is a useful signal for us in two directions. It says the 2.x API surface is stable enough that a large external project built a flashing tool on it and hasn’t migrated — which is an argument for webadb.online staying on the same line rather than chasing the beta, and an argument for upstream that the v3 migration deserves better documentation than an upgrade guide section. It also says the browser-based ADB client is no longer a niche: the number of people who need to change an Android system setting right now, without installing anything, is large enough that someone built a whole product page around it.
And a small technical debt we should copy from both: publish the exact library versions you ship. Breadstick’s LICENSES.txt took thirty seconds to produce and answered a question we spent half a day reconstructing from a minified bundle today.
A quick walkthrough of the seven things you’ll actually use webadb.online for: pairing the device, dropping into an interactive shell, moving files around, browsing images, managing installed apps, watching CPU and memory, and the smaller utilities (text editor, APK install, Wi-Fi ADB) that round out the dock.
1. Connect your device
Open https://webadb.online in a desktop Chromium browser — Chrome, Edge, or Opera. WebUSB isn’t available on Safari or mobile, and Firefox needs the deprecated native-flag workaround, so stick to one of the three.
Hit the big Connect device button. The browser opens a device picker — usually anchored to the top-left of the window — listing every USB device you’ve granted permission to before. Pick your phone.
On the phone, accept the “Allow USB debugging?” prompt that pops up the first time you plug in (Settings → Developer options → USB debugging must be enabled). Tick “Always allow from this computer” if you don’t want to confirm every session.
You’ll land on the desktop — a top bar, a dock at the bottom, and a workspace in the middle. The Shell window opens by default. From here on, every session picks up where the previous one left off (the workspace layout and your pinned items are stored in localStorage, not on a server).
2. ADB shell
The shell dock icon is the first thing you’ll see. It’s a real PTY: arrow keys work, Ctrl+C interrupts, the window resizes with the column-count environment variable, and ANSI colors pass through verbatim — so ls --color=auto, vim, top, and any tool that uses 24-bit escapes render correctly.
Three things to know:
Saved commands. Sidebar shortcuts (commands, scripts, binary files you’ve uploaded) persist across sessions in localStorage. Switching machines or browsers resets them — there is no cloud sync, by design, because the ADB session itself doesn’t go through any server.
No streaming on shared devices. If you’re using a lab phone, the shell can be observed by anyone who reconnects with the same RSA key — revoke the key from Developer options when you’re done.
adb root requires userdebug build.su won’t help on stock builds; if you need root, flash a userdebug image or use Magisk/KernelSU and run su from inside the shell.
3. File Manager
Open the File Manager from the dock. It mirrors a desktop file browser:
Navigate by clicking folders; the path bar updates.
Double-click the path bar to type an absolute path. This is the only way to reach /data/local/tmp, /sdcard/Android/data/<pkg>/, and other paths you can’t step into one directory at a time.
Right-click (or the kebab menu) for Pin to sidebar — pinned folders stick across sessions and across reconnects.
Drag-and-drop a file onto the window to upload it.
Double-click text files to open them in the in-browser text editor; double-click images to open them in the image viewer.
4. Browse images
Open any image and the viewer pre-loads the rest of the folder, so left/right arrow keys flip through the whole album without going back to the directory listing. This is much faster than the Android gallery app for triage — especially when you’re picking the one screenshot out of forty that you actually wanted to upload.
Useful while testing:
Save writes to your Downloads folder with the original filename.
The viewer’s zoom follows the image’s intrinsic size; on wallpaper.png it respects the EXIF orientation flag (so portrait phone photos don’t show sideways on the desktop).
5. App Manager
The dock’s Apps icon lists every installed package with its launcher icon (lazy-fetched from the APK — see the previous post for why the row list uses a letter avatar). For each app you can:
Launch — am start -n <pkg>/<activity> for the resolved launcher.
Uninstall — pm uninstall <pkg>, with a confirmation dialog.
Force-stop / Clear data / Disable / Re-enable under the overflow menu.
Permissions — see every granted runtime permission, toggle them with the same prompts Android would show.
The dock’s chart icon opens a four-pane monitor modeled on GNOME’s System Monitor:
CPU — per-core usage with sparklines (1s / 5s / 30s windows).
Memory — total / used / available / cached, plus a breakdown by category (Java heap, native, graphics, system) when the device exposes the right /proc files.
Network — per-interface sent/received, on both the cellular and Wi-Fi interfaces (when the device surfaces both).
Processes — sorted by CPU by default; click a column to sort by RSS, PID, or user. The list polls every two seconds.
It’s a faithful translation of top / vmstat into something you can leave running in a corner while you do something else.
7. Other features
A few smaller dock icons round out the workspace:
Text Editor — opens any text file you click in the File Manager. Edits buffer locally and save pushes the whole file back over ADB; there’s no in-browser file watcher, so save and walk away rather than expecting live updates.
Install APK — drag an APK onto the workspace and confirm. When this fails (it does occasionally — mostly on packages signed with v2-only signatures that need pm install -t -r instead of the installer flow), the workaround is to push to /data/local/tmp/ with the File Manager, then run pm install xxx.apk from the shell. Both paths end up at the same place on the device.
Screenshot — captures the foreground app and offers a download. Useful for grabbing an error dialog without unlocking the phone.
Wi-Fi ADB — enables adb tcpip 5555 and reports the device’s current LAN IP, so you can unplug and keep the session going over Wi-Fi. Pair this with a saved-sidebar shortcut to the disconnect command when you want to clean up afterwards.
That’s the full tour. If something’s missing from the dock that you expected to see — Sockets? Reverse port-forwarding? — open an issue on the GitHub repo and it’ll land in a future release.