Your devices, connected. The phone app for Linksy: share files, clipboard text and pings with your own devices directly over the local network, with no account, cloud or server.
The product, the wire protocol and the feature status are in
docs/protocol.md in
linksy-desktop. Read it before changing anything that talks to other devices.
The app runs on linksy-core itself (Rust, from linksy-desktop) through flutter_rust_bridge, so it speaks the desktop's exact protocol. Tested against a node on the same network: pairing by invite link and by 6-digit code, files both ways (resume and BLAKE3 checks are the core's), clipboard and pings both ways, and screen, camera, remote control and second-display sessions (streams checked for profile, SPS/PPS before keyframes, size, frame rate and rotation; input checked both ways).
Up to date with desktop 0.6.0 (core 1c8ebe4). Done on the phone:
- Discovery, pairing (QR scanner,
linksy://pairlinks, address, 6-digit code), presence, away from home over iroh and Linksy's relay, the USB cable (AOA bridge). - Files both ways (Accept/Decline also in the notification, Downloads/Linksy), share sheet, clipboard text and files, clipboard watch from computers, ping, open links.
- Battery, ring both ways, the computer's players, calls pause music, lock when away (heartbeats), photo backup, the Files sidebar on a picked folder.
- Sessions: screen sharing, webcam (full controls, 720p/1080p, 30/60 fps, controls from the computer), microphone, second display in the phone's shape, watching and controlling the computer's screen, touchpad/keyboard/slides.
- Device pictures both ways, locate (opt-in), service notices, push news.
- 10 languages (English, French, Malagasy, Spanish, Portuguese, German, Italian,
Russian, Chinese, Japanese) with gen-l10n:
lib/l10n/app_*.arb, Android's own text inandroid/app/src/main/res/values-*. First-run setup, light/dark/system appearance.
Not possible in a sideloaded app (see docs/android-app.md §3): texting, mirroring
the phone's notifications or its media, remote control of the phone, watching its
clipboard, background location.
docs/android-app.md tells linksy-desktop what the phone does, what it needs from the
desktop, and which features Android won't allow in a sideloaded app.
What ships is only what runs. Dependencies are Flutter and flutter_rust_bridge, plus
ZXing core (Java, offline) for reading QR codes and Firebase Cloud Messaging for push
(wired natively in Push.kt, analytics off; config in android/app/google-services.json,
project linksy-mg; every install joins the all topic, so the console can send news). Everything else is the platform's own:
Android's document picker for sending, a read-only ReceivedFiles provider for opening
received files, Camera2 for the scanner and sharing, and folder paths over the
platform channel. No ML Kit, analytics or storage permissions; folders come from
Android's folder picker.
The APK declares: network and Wi-Fi multicast, camera, microphone (asked only when a
computer wants it), location while in use (asked only when "Let computers locate this
phone" is turned on), notifications, vibration, push (c2dm.permission.RECEIVE), and
foreground services for screen capture, camera and microphone (only while sharing) and
for staying connected (lock when away, opt-in background). No SMS, notification-listener,
accessibility, background-location or storage permissions. Check a build with
aapt2 dump permissions <apk> before releasing.
The Rust library is built for size (opt-level = "z", fat LTO) except the hot paths,
QUIC, TLS and BLAKE3, which stay at opt-level = 3.
Per docs/protocol.md §3 the protocol is not reimplemented in Dart (QUIC, mutual TLS with
self-signed certificates, the TLS exporter behind the pairing code). Instead:
rust/is a thin crate overlinksy_core::Node(a git dependency pinned to a linksy-desktop commit). Values cross as JSON in the core's own serde shapes; errors as kinds (unreachable,declined…) thatlib/core/rust_node.dartwords with the device's name.lib/src/rust/andrust/src/frb_generated.rsare generated byflutter_rust_bridge_codegen generate(committed, so Dart builds without Rust).lib/core/rust_node.dartimplements the app'sLinksyNodeon the bindings.MainActivity.ktholds aWifiManager.MulticastLockfromonStarttoonStop, gives Dart the phone's name, forwardslinksy://pairlinks, and asks for screen capture and camera consent.- Screen and camera sharing (
android/…/media/):ShareService(foreground, typesmediaProjection|camera) feeds MediaProjection or Camera2 into a hardware H.264 encoder (Constrained Baseline, Annex-B, keyframe every 2 s, SPS/PPS before each, screen at its exact shape within 1920×1080 at ≤ 30 fps, restarted on rotation; camera 1280×720 at 30 fps). Video and input cross through JNI (rust/src/sessions.rs, one task per session owning its streams), not through Dart. - Second display:
DisplayReceiverdecodes the desktop's stream into a Flutter texture (TextureRegistry.SurfaceProducer);DisplayScreensends touches back as framedpointer/button/scrollmessages.
Build the native libraries before flutter run or a release (release.sh does it):
tool/build_rust.shIt needs rustup (Homebrew's keg: /opt/homebrew/opt/rustup/bin), the targets
aarch64-linux-android armv7-linux-androideabi x86_64-linux-android, cargo-ndk,
flutter_rust_bridge_codegen 2.13.0, NDK 28.2 and SSH access to linksy-desktop. To move
to a newer core, change the rev in rust/Cargo.toml and rebuild.
Core logs go to logcat under the tag linksy.