All your computers and your phone/iPhone, working as one desk. Screens, apps, files, clipboard, calls, texts, notifications, mouse and keyboard, shared between Mac, Windows, Linux , Android, Web and ios / ipados . Free and open source. No account, no cloud, and no shared network needed.
TwinDesk TV
The app for Android TV and Google TV (Android 7.0 and later). To the computers it is a phone that
says caps: ['tv'] (docs/capabilities.md), with only the screen, the sound, files and the computer's
cursor and keyboard. Phones connect to it as to another phone (their Connect with Android), and
their Remote page is a trackpad for the TV. Plain Views, the system WebView, OkHttp: the APK is about 350 KB.
It's built from the phone app's protocol (../android/.../Proto.kt) and its screen and sound pages
(viewer.*, audio.*), copied in at build time (sharePhone in app/build.gradle.kts): change
those in ../android only.
./gradlew assembleRelease # app/build/outputs/apk/release/app-release.apk
./gradlew lintRelease # also checks every call against Android 7 (minSdk 24)
| File | What |
|---|---|
Tv.kt |
the one object: discovery, the session and what it carries |
Link.kt |
pairing (the TV shows the code), hello as a phone, pings, quiet links |
Discovery.kt |
beacons with tv: 1, the computers nearby |
Web.kt |
the WebView pages and the screen and sound |
Files.kt |
files both ways (Downloads › TwinDesk; Android 7 to 9 write the folder directly) |
InputService.kt |
the computer's cursor and keyboard (Accessibility) |
MainActivity.kt, ViewerActivity.kt |
the screens, for the remote's D-pad |
TvService.kt |
keeps the session while connected, and only then |
Phones.kt |
a phone's trackpad: the TV hosts it with the phone's own PeerServer.kt (copied in like Proto.kt), pairing by code, tv.* messages |
../com/twindesk/android/ShareKey.kt |
the TV's TLS key for that host, in Android's keystore |