Windows to Android Bridge
Project Images (1)
Latest Version
Project Description
WinBridge — Windows ↔ Android Bridge
Your PC and your phone, treated as one machine. Mirror either screen onto the other with sound and touch control, move files and clipboard both ways, route audio and microphones between them, and build automations that run on the PC — from the phone, the watch, a widget or your voice.
Status: v0.3.0. See what is verified below — this release is large and the parts that need two machines and a stopwatch are called out honestly.

What it does
Screens
- PC screen on the phone, with touch control, keyboard, scrolling, pinch-zoom and PC audio alongside it.
- Phone screen on the PC, with mouse, keyboard and the navigation buttons — and phone audio alongside it.
- Both adapt themselves: quality, then frame rate, then resolution walk down from what the receiver reports, so the picture degrades in the order a viewer minds least.
- Interaction and audio are each switchable while the session is running.
Clipboard
- Phone → PC and PC → phone, both off by default, and each direction has a switch on both machines. Turning one on and not the other is the usual reason a clipboard "does not arrive"; each side now says so rather than dropping it in silence.
- Copies are sent as they happen. Since Android 10 the clipboard may only be read by the app that owns the focused window, so the phone tries in order: a direct read (free whenever WinBridge is in front), then a one-pixel focus window if "display over other apps" has been allowed, then the relay activity. The settings screen reports which rung is actually answering on that phone.
- Also reachable from a Quick Settings tile, a launcher shortcut, the watch, the share sheet, and Get clipboard from phone in the Windows tray menu.
Files
- Both directions, any size, with progress, resume offsets and checksums.
- Right-click → "Send to phone" in Windows Explorer, for files and folders.
- The Android share sheet for anything on the phone.
- Received files land in Downloads, visible to every other app.
Audio
- PC output → phone
- Phone output → PC
- Phone microphone → PC
- PC microphone → phone
Raw PCM, so there is no encode or decode delay between the sound and the picture.
Automations
Build them on the phone, run them on the PC. Shell commands, windows, processes,
files, HTTP, input, media, power — with if / else, while, repeat,
foreach, variables and an expression language.
Security is the point of the design, not a layer on top:
- Shell steps do nothing until you enable them on the PC, in front of the warning.
- Approval is bound to a hash of the executable body — renaming keeps it, editing one character of a command loses it.
- The confirmation dialog shows the command line after variable substitution.
- Runs are bounded in steps, iterations, output and wall-clock.
- Every run is written to an append-only audit file.
- One switch refuses everything.
Details: docs/AUTOMATIONS.md
Notifications
Phone notifications mirrored to the PC, with reply and dismiss. Off by default — it reads every notification on the phone, so it takes two deliberate steps to enable.
Voice and assistants
There is no public on-device API that lets Gemini or Assistant hand a third-party app an arbitrary command, so that integration cannot be built — by anyone, with or without an API key. What WinBridge offers instead: automations published as launcher shortcuts, a local voice matcher using the device's own recogniser, a documented intent API for Tasker and friends, and "what is on my PC screen" answered by OCR on the Windows side and read aloud.
The honest, complete version: docs/ASSISTANT.md
Still here from 0.1.x
Now playing as a real Android media session, CPU/GPU/RAM/network/battery, volume, power actions, six home screen widgets — including an automation button you point at one automation when you place it — and the Wear OS app.
Wear OS
Media and system status, plus running automations, a trackpad for the PC, voice commands, "what is on my PC screen" read on the wrist, and a clipboard button. Three tiles.
Automations are not written on a watch — a step tree is not something anyone edits on a 45 mm screen — but they can be run from one three ways: the app's own list, the automations tile one swipe from the watch face, and a complication on the face itself, configured per slot, so the one routine you run constantly is zero taps away.
Connectivity
| Method | When | Note |
|---|---|---|
| LAN (TCP) | Default from 0.2.0 | Everything works |
| Bluetooth (RFCOMM) | Opt-in | Presence, media, control, notifications |
| Remote | If you forward the port | Channel is end-to-end encrypted |
Bluetooth is off by default from 0.2.0, and existing installs are migrated once. It is still the right carrier for presence and control — it works with no Wi-Fi and survives the phone leaving the network — but it sustains roughly a megabit, and mirroring, audio and files of any size do not fit in that. Those streams are refused over Bluetooth with a reason rather than degraded into something that looks broken.
Pair over one method and the other is provisioned automatically.
Install
Windows
- Download
WinBridge-Setup-x.y.z.exefrom Releases. - Run it. No administrator rights required.
- It lives in the system tray and starts when you sign in.
SmartScreen warning: the installer is unsigned (code-signing certificates are a paid, identity-verified product). Choose "More info" → "Run anyway".
Android
- Install
app-release.apkfrom the same page. - Open the app, follow the setup wizard.
- Choose Pair from the Windows tray menu and scan the QR code.
Two Android permissions cannot be requested from code and have to be granted in Android settings. The app shows their state next to the switch that needs them:
- Accessibility — required only for the PC to control the phone. It is the only way to tap and type outside our own app without root.
- Notification access — required only for notification mirroring.
If you want Bluetooth: pair the phone from Windows Settings first, the normal way, then enable it in WinBridge on both sides. This step cannot be done programmatically — it is an operating system requirement on both sides.
Wear OS watch
Separate APK (wear-release.apk), signed with the same key:
adb connect <watch-ip>:5555
adb -s <watch-ip>:5555 install wear-release.apk
Security
- Pairing generates a 32-byte pre-shared key delivered by QR code, which never crosses the network.
- Every session derives an ephemeral ECDH (P-256) key, so recorded traffic cannot be decrypted later even if the pre-shared key leaks.
- All traffic is AES-256-GCM with mutual authentication and replay protection.
- Every new capability is off by default except the ones that only read what you were already sharing.
- The automation intent API is off by default and token-protected — an exported receiver with no secret is a way for any installed app to run commands on your PC.
Details: docs/PROTOCOL.md
What has actually been run
This release is large, and honesty about testing is worth more than a green tick.
Verified by automated tests, on every build
- The wire protocol, both implementations, pinned to each other by known-answer vectors and by one filled-in sample of all 58 v2 messages.
- Lane priority: control frames overtake a queued backlog of bulk traffic.
- Media packets are dropped rather than queued without bound.
- The clipboard fingerprint, pinned to the same vector in both languages.
WinBridge.exe --selftest-capture out.pngreassembles a real screen frame through the tile codec and the packet format.WinBridge.exe --selftest-automationsaves an automation through the real save path, runs it, and checks that the clipboard actually changed.- Both apps and the host compile clean.
Verified by hand
- See the release notes for v0.2.0 for exactly what was exercised on the physical PC, phone and watch, and what was not.
If something behaves differently on your hardware, the logs are the place to
start: the Activity tab on Windows, and adb logcat -s WinBridge on the phone.
Development
cd android && ./gradlew :app:assembleDebug :wear:assembleDebug
dotnet build windows/src/WinBridge.App/WinBridge.App.csproj
dotnet run --project windows/tests/WinBridge.Core.Tests
Requirements: JDK 17+, Android SDK 36, .NET 10 SDK, Inno Setup 6 (installer).
- docs/ARCHITECTURE.md — the decisions and why
- docs/PROTOCOL.md — the wire format
- docs/AUTOMATIONS.md — steps, expressions, security
- docs/ASSISTANT.md — voice, shortcuts, the intent API
License
MIT
Project Links
Project Statistics
2
GitHub Stars
5
Version
18
Views
15
Downloads
Versions
v0.3.0
August 25, 2026 at 01:47 AMYour PC and your phone, sharing one screen, one clipboard, one set of speakers — and a watch that can run either of them.
What is new & Fixed in 0.3.0
- Screen share notification fix: Fixed an issue where the mobile app could show the "Sharing this screen with PC" notification when screen sharing was not actually occurring (e.g. when only microphone streaming was active or when a capture session was terminated without complete teardown). Added separate notifications for screen sharing, microphone streaming, and combined capture.
- Persistent disconnected notification setting: Added a configurable switch in Settings ("Keep notification when disconnected" / "Bağlantı yokken bildirimi göster"). When disabled, the persistent notification is removed automatically whenever the connection to the PC is lost or disconnected, only appearing when actively connecting or connected. Defaults to ON (preserving existing persistent notification behavior).
- Improved connection & stream lifecycle: Capture and audio streaming services are now immediately and cleanly torn down whenever the link disconnects.
Install
- Windows:
WinBridge-Setup-0.3.0.exe(Windows) - Phone:
app-release.apk(Phone) - Watch:
wear-release.apk(Wear OS watch)
v0.2.0
August 21, 2026 at 12:57 PMYour 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.
v0.1.2
August 18, 2026 at 12:11 AMMaintenance release fixing media stream notification button crash on Android.
What changed
On your phone
- Fixed a crash (IllegalStateException) when tapping the pause/resume, previous, or next transport buttons in the Android media stream notification center.
- Properly registered the ACTION_MEDIA_BUTTON intent filter on BridgeService and routed media button events through MediaButtonReceiver.handleIntent to the active MediaSessionCompat.
- Hardware media buttons (Bluetooth headsets, lock screen) and notification center controls now reliably dispatch playback commands across the bridge.
Verified
- Phone and Wear OS release APKs built and signed successfully.
- Windows host x64 self-contained publish and Inno Setup installer compiled successfully.
- Protocol crypto conformance and vector verification checks passed.
Install
- Windows: Download WinBridge-Setup-0.1.2.exe and run the installer.
- Phone: Install app-release.apk.
- Watch: Install wear-release.apk on your paired Wear OS watch.
v0.1.1
August 9, 2026 at 06:40 PMWidget and Wear OS polish release. This update makes the phone and watch surfaces denser, more visual and much more responsive while keeping the existing Windows ↔ phone ↔ watch architecture.
What changed
On your phone
- Home-screen media controls now use proper vector icons instead of emoji/glyph buttons.
- Media and combined widgets use the current album artwork as a background with a readable dark overlay, playback progress and denser metadata.
- All four widgets now have picker previews.
- Widget/system background refresh drops from 30 seconds to 5 seconds; media and artwork changes still push immediately.
- Artwork arrival now repaints widgets and Wear OS immediately instead of waiting for the next periodic refresh.
- The main media card is denser, with a larger cover and stronger card treatment.
On your watch
- Album artwork is sent from the phone through the Wearable Data Layer and cached on the watch.
- The Wear app now shows cover art, playback state, progress and real media icons in a fuller media card.
- A second dedicated Media tile was added with artwork and previous / play-pause / next controls.
- The existing PC-status tile is denser and its fallback freshness interval is 15 seconds.
- The watch UI now makes the active companion-control state explicit and uses proper icons for media and safe power actions.
- Tile media commands are restricted to transport controls; destructive power actions are not exposed through the tile command trampoline.
Verified
- Signed Android phone and Wear OS release APKs built successfully.
- Windows 0.1.1 self-contained x64 publish built successfully.
- Windows Inno Setup installer compiled successfully from the 0.1.1 publish output.
- The updated phone APK was installed and launched on physical Android hardware.
- The updated Wear APK was installed successfully on a physical Wear OS watch.
- The Windows publish was exercised on the connected Windows machine.
Install
Windows — download WinBridge-Setup-0.1.1.exe and run the installer. It installs WinBridge per-user, can create shortcuts/startup registration, and preserves the normal per-user pairing/settings data.
Phone — install app-release.apk, open WinBridge, and keep your existing pairing or scan the QR code from the Windows tray menu.
Watch — install wear-release.apk on the paired Wear OS watch. The phone and watch APKs are signed with the same release key so the Wearable Data Layer can exchange state and artwork.
Known limitations
- Numeric-code pairing is still specified but not exposed in the Android UI; QR remains the pairing path.
- LAN may require a Windows Firewall allowance on first use; Bluetooth is unaffected.
v0.1.0
August 9, 2026 at 05:16 PMFirst release. Monitor and control your Windows PC from your phone and watch, over Bluetooth or Wi-Fi.
What works
On your phone
- Now playing from the PC, mirrored as a real Android media session — it appears in the notification shade, on the lock screen and in the Quick Settings player, with cover art, working transport buttons and a seek bar, exactly as if the music were playing on the phone.
- CPU, GPU, memory, network and battery, live.
- Lock, sleep, hibernate, sign out, restart, shut down, turn off display. Actions the PC does not support are greyed out rather than silently failing.
- Four home screen widgets — media, system, combined, power — placeable individually or together.
On your watch
- The same media and system view, plus Lock and Turn off display.
- A tile for the watch face carousel.
Connectivity
- Bluetooth (RFCOMM) and Wi-Fi/LAN, with Bluetooth preferred by default.
- Pair once over either and the other is provisioned automatically.
- The channel is AES-256-GCM encrypted with mutual authentication and per session forward secrecy. The pairing key travels by QR code and never crosses the network.
Verified on real hardware
Pairing, Bluetooth RFCOMM sessions, live media and metrics, the media notification, and reconnect after the screen locks were all exercised on a physical Windows 11 PC and an Android 12 handset — not only in tests.
Install
Windows — run WinBridge-Setup-0.1.0.exe. No administrator rights needed.
It installs per-user, starts with Windows, and lives in the system tray.
The installer is unsigned, so SmartScreen will warn on first run. Choose "More info" → "Run anyway". Code-signing certificates are a paid, identity verified product.
Phone — install app-release.apk, open it, and scan the code from the
Windows tray menu (Pair a phone).
For Bluetooth, pair the phone from Windows Settings first, the normal way. That step cannot be done programmatically by either side.
Watch — wear-release.apk is a separate APK. Play Store delivers watch apps
from a single bundle, but GitHub Releases cannot, so it installs directly:
adb connect <watch-ip>:5555
adb -s <watch-ip>:5555 install wear-release.apk
Both APKs are signed with the same key, which the Wearable Data Layer requires.
Known limitations
- The Windows installer is unsigned (see above).
- Pairing by numeric code is specified but not yet exposed in the UI; QR is the only pairing path in this build.
- LAN over a home network may need a Windows Firewall allowance the first time. Bluetooth is unaffected.
- The app is available once you are signed in to Windows. Wake-on-LAN and pre-login control are out of scope by design — see ADR-1.
Languages
English and Turkish, following the device language, falling back to English.
Forum
In this forum you can ask questions about the project, report bugs, request features, or join general discussions.