Repository navigation
Releases
Releases · marcoslor/contigua
v0.2.0
Downloads
- Both halves ship as files on the Releases page: the signed Android
.apkand a drag-and-dropContigua-<VERSION>.dmgfor the Mac, withSHA256SUMS.txt. The Mac app is ad-hoc signed, so the first launch needs Open Anyway and keeps its Local Network permission only after the five-second local re-sign; both are in docs/TRY-IT.md.
Agents (MCP)
- An MCP server in the Mac app lets an AI agent see and drive phone app windows: open apps, read the screen's UI tree, tap, type, swipe and take screenshots. It is off until you switch it on in Settings › Automation.
- A window's screen as an accessibility tree, with stable refs an agent can tap by, a text-only view, find, and a count of what it doesn't show.
- Every action answers in one shape: it settles, observes, and says what changed. A
waittool waits on a clock, on text appearing, or for the screen to settle, so an agent needs no hand-rolled sleeps. - Screenshots are taken after the call and say how fresh they are.
- Typing goes through the phone's input, never its clipboard, so a copied image survives and non-ASCII text types correctly.
- Windows say who opened them and why they closed;
phone_statussays what "locked" means and what is in front.
Privacy and diagnostics
- Export Diagnostics… in the Mac's Help menu and in the phone app's ⋮ menu saves a redacted text report: versions, health, recent state changes and redacted logs. It never carries text, names, paths or keys, and nothing is sent anywhere; you choose where it goes.
Settings
- Settings › General shows what this copy of Contigua can do. Features its signature or build can't offer (Control Center controls, Phone as a Mac camera, phone files in Finder) stay visible, dimmed, with the reason and a link to how to sign or build it.
- Phone files in Finder is not available in the download. On macOS 15 and later it needs a copy signed by an Apple developer team (one with a Team ID); the ad-hoc download and its local re-sign have none, so the switch is dimmed with the reason, and a Finder location an earlier copy left behind is removed. It is planned for downloaded copies in a later version (#349). A failed add or removal no longer suggests restarting Contigua.
Windows
- The traffic lights stay put while a window opens, and the opening cover no longer shows controls.
- The title is centred in the space between the traffic lights and the controls.
Reliability
- Phones whose Shizuku runs as root now work: the phone service hands its work to a child at the shell user (uid 2000).
- The Mac no longer hangs or crashes when the audio output device changes during playback.
- A pairing in progress is no longer interrupted by a scheduled reconnect, and a session waiting for a path goes live on the first one that answers.
Under the hood
- The protocol, pairing and session logic now live in pure modules,
android/coreand the Mac'sContiguaCore, whose tests build and run without the apps. - Golden protocol vectors shared by the Kotlin, Swift and Python ends pin the wire format.
The wire protocol is still at version 4.
Install
- Android:
contigua-0.2.0.apk. - Mac: open
Contigua-0.2.0.dmg, drag Contigua to Applications,
then allow it once in System Settings › Privacy & Security › Open Anyway.
The image is ad-hoc signed and not notarized;
Download and local signing
covers the five-second local re-sign that keeps the Local Network permission. - Verify with
SHA256SUMS.txt(shasum -a 256 -c SHA256SUMS.txt).
0.1.0
The first public alpha. The signed Android APK is on the
Releases page; the Mac app
still builds and signs locally with docs/TRY-IT.md. Items
marked "unproven" are built but have not been checked on a real Mac and phone.
Windows and input
- One resizable Mac window per Android app, several at once, running on the phone while it stays locked.
- App windows run on displays made by an Android virtual device, in a display group of their own: the phone's own screen keeps its timeout while they stream. A phone that cannot give them their own group says so on the Mac instead of opening the window.
- On One UI, app windows keep 60 fps while the phone's own screen shows Always-On Display: Contigua holds a refresh-rate floor while a window is open, which the system drops when Contigua stops (unproven in AOD).
- A Phone window that mirrors the phone's own screen, with Back, Home and Recents.
- Typed keys, clicks, drags, scroll, hover, trackpad scroll with fling, and pinch and rotate.
- Framed and Immersive window styles, remembered per app.
- Hand a task from the phone to a Mac window.
- Live Text on a frozen frame: select and copy text, Visual Look Up, translate (unproven).
- Dock and Launchpad entries for phone apps, and Spotlight search for them (the Shortcuts actions are unproven).
Audio
- Phone media and game audio plays on the Mac, with volume and mute in the menu bar and the phone's speaker kept silent.
- Capture follows the focused app where Android allows it. Measured on the API 36 emulator only; real phones are unproven.
Sharing (clipboard, links, share, drops, APK install)
- Clipboard text and images, both ways.
- Open a link on the phone from the Mac (Share, Services or a drop on the Deck).
- Android Share to the Mac: links, text and images.
- Drop files from Finder onto a phone window: resumable, up to 200 MiB each.
- Install .apk, .apks and .xapk files dropped on the Deck.
- Mac Focus turns the phone's Do Not Disturb on and off (unproven).
Phone files in Finder
- The phone's shared storage appears as a Finder location: browse, Quick Look, copy in and out, edit, rename, move, make folders, delete.
- A delete is immediate and a copy onto an existing name is refused. Cached files stay readable while the phone is away.
- Proven in a VM only; a real Mac and phone pass is still to do.
Notifications and Now Playing
- Phone notifications in Notification Center with buttons, inline reply, two-way dismissal, pictures, muted apps and a Copy code action. Opt-in on both sides (unproven).
- Android 16 Live Updates in the menu bar (unproven).
- Now Playing on the Mac with artwork, transport buttons, a seek bar, phone media volume and a choice among players (unproven).
- Control Center controls are in progress and do not appear yet.
AI agents (MCP)
- A local MCP server on the Mac: list apps, open one, screenshot a window, tap, type and swipe (unproven).
Security
- LAN only. Mutual TLS 1.3 with keys pinned at pairing.
- Pairing by a six-digit code compared on both screens, or by QR code.
- Anything that reads personal data is off until a person turns it on.
Known limits
- Needs Android 14 or later. Tested on an Android 16 emulator, one Samsung phone and macOS 26. Everything else is untested; Shizuku must be running.
- One Mac at a time per phone.
- App windows create one companion device association on the phone; Forget all Macs removes it.
- A dozing phone can stop answering discovery after about 20 minutes; wake its screen once.
- Windows over 2560 px of virtual display are scaled down.
- The mouse's Forward button does nothing yet.
- Phone as a Mac camera is not in this release; it needs a Developer ID.
The wire protocol is at version 4. There is no backward compatibility during the alpha.