Mobile WebHID Arrives: Real Hardware-in-the-Loop Typing Tests on Android

Mobile WebHID Arrives: Real Hardware-in-the-Loop Typing Tests on Android

Why this is a big deal

As of Chrome 158 (stable scheduled November 17, 2026), the WebHID API is now available on Android—so long as the device runs Android 17 (API level 37) or newer. That means the same high-fidelity hardware integrations web apps already enjoyed on desktop can now run on phones and tablets, too. Web apps can request access to Human Interface Devices over USB and Bluetooth, exchange input/output/feature reports, and inspect report descriptors—all with a user-mediated chooser dialog. WebView isn’t supported. [1]

Chrome’s enterprise release notes also flag that mobile WebHID is rolling out gradually in Chrome 158, so expect a staged rollout and be ready to check for support at runtime. [2]

A reality check: keyboards and the WebHID blocklist

For safety, Chrome blocks access to top-level HID collections with protected usages—like standard keyboards and mice—to prevent keylogging. In practice, that means you can’t read raw HID key events from a typical keyboard’s primary interface, even on Android. But there’s good news: many modern peripherals expose vendor-defined or auxiliary HID collections (for configuration, lighting, macros, diagnostics) that WebHID can open. Those “side channels” are exactly what vendor web tools (e.g., browser-based peripheral managers) use today. [3][7]

Bottom line for typing sites: use WebHID where the device exposes a non-protected collection you can legally talk to; otherwise, for true per-key hardware timing, consider a small helper device (see “Mobile Rig,” below). Some community testers also remind users that browsers can’t measure scan rate or polling rate from OS-level key events alone—that’s precisely where WebHID (or hardware) helps. [9]

What you can measure on mobile now

The ‘Mobile Rig’: a pocketable, hardware-in-the-loop setup

To unlock true per-key latency, rollover validation, and scan-rate jitter on any connection type, pair your web app with a tiny helper MCU that timestamps electrical events and streams results to your site over WebHID. One popular approach uses a low-cost RP2040 board wired to the switch under test; the firmware exposes a WebHID interface that your page reads directly—no native app. Projects like YG-RP2040-Latency-Tester demonstrate this pattern and already work in Chrome on desktop; they now work in Chrome on Android, too. [8]

Recommended parts and tips:

Methodology that travels:

Sample code: feature-report ping and report-rate probe

```js

// Minimal runtime feature detection (works on Android Chrome 158+ with Android 17+)

if (!('hid' in navigator)) {

console.log('WebHID not supported yet. Update Chrome/Android.');

}

// Ask for a vendor-defined HID interface (adjust filters to your device)

const [device] = await navigator.hid.requestDevice({

filters: [{ vendorId: 0x1209 / example /, usagePage: 0xFF00 }]

});

await device.open();

// 1) Measure round-trip time for a feature report

const t0 = performance.now();

await device.sendFeatureReport(1, new Uint8Array([0x01]));

await device.receiveFeatureReport(1); // device echoes or acks

const rttMs = performance.now() - t0;

// 2) Measure incoming report cadence (effective polling/report rate)

let last = performance.now();

const deltas = [];

device.addEventListener('inputreport', e => {

const now = performance.now();

deltas.push(now - last);

last = now;

});

```

Note: You’ll only see `inputreport` events if the device actually emits them on an unprotected collection your page has opened. Standard keyboard top-level collections remain blocked. [3]

Practical dashboards that work on desktop and Android

Design your pages as if you’re on mobile:

Caveats and limitations

Where this heads next

Mobile WebHID unlocks serious, repeatable testing on devices people already carry. Expect more browser-based configurators from big brands (already shipping on desktop) and richer, hardware-aware typing diagnostics that work anywhere—desktop rigs, Chromebooks, and now phones and tablets. For typing sites, it’s time to ship: bundle a “Mobile Rig” guide, expose cross-platform dashboards, and make it trivially easy to compare Bluetooth vs USB-OTG in the real world.

—

References: [1] Chrome 158 Release Notes (ChromeStatus); [2] Chrome Enterprise Release Notes; [3] WebHID docs (developer.chrome.com) on protected usages; [4] Bluetooth HOGP v1.2 guidance on connection intervals; [5] RTINGS keyboard latency/connection notes; [6] CHI 2019 paper on USB HID and polling; [7] PC Gamer coverage of browser-based device managers using WebHID; [8] RP2040 WebHID latency tester; [9] Device-level HID lab notes about Chrome blocking standard keyboards.

Mobile WebHID Arrives: Real Hardware-in-the-Loop Typing Tests on Android - article illustration

Ready to improve your typing speed?

Start a Free Typing Test