Repository navigation
WinBridge 0.2.0
Your PC and your phone, sharing one screen, one clipboard, one set of speakers —
and a watch that can run either of them.
0.2.0 is the release where the bridge stops being one-way. Screens go both
directions with touch and sound, files move either way from a right-click,
audio routes four ways, and automations you build on the phone run on the PC.
What is new
Screens, both ways. The PC on your phone with touch, keyboard, scrolling and
pinch-zoom; the phone on your PC with mouse, keyboard and navigation keys. Both
adapt to the link on their own — quality first, then frame rate, then
resolution — driven by what the receiver reports rather than what the sender
guesses.
Clipboard, both ways, as you copy. Off by default, in each direction, on both
machines.
Files, both ways. Right-click → "Send to phone" in Windows Explorer, the
share sheet on Android, any size, with progress and resume.
Audio, four ways. PC output → phone, phone output → PC, phone mic → PC, PC
mic → phone. Raw PCM, so nothing is waiting on an encoder.
Automations. Build them on the phone, run them on the PC: shell commands,
windows, processes, keys, files, HTTP, variables, and real if / while / repeat /
foreach control flow. Shell steps are refused by default and every automation
that can change the machine needs approval on the PC — approval bound to a hash
of the steps, so editing one character asks again.
Wear OS. Media, system readings, a trackpad for the PC, voice commands,
"what is on my PC screen" read on your wrist, and automations you can run from
the app, from a tile, or from a complication on the watch face itself.
Widgets. Six on the home screen, including an automation button you point at
one automation when you place it.
The full picture is in the README.
Fixed since the 0.2.0 work started
The clipboard was broken in four separate places, each of which failed silently:
- Building a clipboard message stamped the "last seen" hash as a side effect, so
the automatic watcher compared every genuine copy against itself, decided it
was its own echo, and sent nothing — on every device. - The relay screen read the clipboard in
onCreate. Android only lets the app
that owns the focused window read it, and an activity does not own one that
early, so the read was refused exactly as if the screen had never opened. - The two ends fingerprinted clipboards differently — the same sixteen bytes of
SHA-256, hex on Windows and base64 on Android. Neither recognised its own text
coming back, so a copy from the phone was applied on the PC, seen there as a
fresh copy, and sent straight back. - Automations could not touch the PC clipboard because the phone's step editor
drew no fields at all for "set clipboard", "get clipboard" and "mouse" — the
text you would have typed had nowhere to go, so the step ran cleanly and did
nothing.
Also:
- Remote input was refused unless an interactive mirror was open, which is never
true for a watch driving the pointer. Only a mirror can be view-only. - Both trackpads send movement as a fraction of their own surface and the host
cast that straight to a whole number of pixels, so every ordinary drag moved
exactly nothing. - Every silent clipboard refusal on either machine now says which switch is off
and where — there are two per direction, and one of them being off used to be
indistinguishable from a bug.
What was actually run
Automated, on every build
- Both protocol implementations pinned to each other by known-answer vectors and
one filled-in sample of all 58 v2 messages. - The clipboard fingerprint, pinned to the same vector in both languages.
- Lane priority; media packets dropped rather than queued without bound.
--selftest-capturereassembles a real screen frame through the tile codec.--selftest-automationsaves an automation through the real save path, runs
it, and checks the clipboard actually changed.
On the physical PC, phone and watch
- A copy made on the phone reached the Windows clipboard on its own, with the
exact text, and was not bounced back. - A copy made on the PC reached the phone.
- An automation triggered from the watch ran on the PC.
- The watch trackpad moves the PC pointer.
- The watch shows live media and system readings from the PC.
Not verified on hardware, and worth knowing
- Automatic clipboard capture while WinBridge is in the background is
best-effort. Since Android 10 only the app owning the focused window may read
the clipboard; where "display over other apps" is granted the phone borrows
focus for a few milliseconds to do it, and that path never had to run during
testing because the direct read always answered. The Quick Settings tile, the
launcher shortcut and the share sheet always work. The settings screen tells
you which route is answering on your phone. - The Quick Settings tile and launcher shortcut route through a screen that is
deliberately not exported, so it could not be driven from a test harness; the
fix to when it reads is reasoned from the platform rule, not measured. - The automation-button widget and the watch complication compile and register,
but neither was placed on a device.
If something behaves differently on your hardware, start with the logs: the
Activity tab on Windows, and adb logcat -s WinBridge on the phone.
Install
- Windows: download
WinBridge-Setup-0.2.0.exeand run it. - Phone: install
app-release.apk. - Watch: install
wear-release.apkon your paired Wear OS watch.
Pair once from the tray icon → Pair, then scan the code on the phone.