Skip to content

Feature request: iPhone Mirroring #162

Closed

Description

@c10l

I know this is a long shot, but is there any chance it could be implemented? 😁

Activity

  1. servusdei2018 commented on Sep 10, 2026

    @servusdei2018

    You're looking for UxPlay: https://github.com/FDH2/UxPlay

    It would be a huge lift to reimplement the wheel here.

  2. c10l commented on Sep 10, 2026

    @c10l
    ContributorAuthor

    It doesn't look like that's what I mean at all. iPhone Mirroring lets me mirror the phone screen on a desktop window and interact with it with the mouse and keyboard like it's a regular GUI app.

    https://support.apple.com/en-us/120421

  3. zackb commented on Sep 11, 2026

    @zackb
    Owner

    I had not planned this one but have now looked into it a bit. It looks like the old AirPlay mirroring (UxPlay) has been fully reverse engineered and tons of solutions exist. The newer (iOS 18+ Mac Sequoia+) is the cooler one. It has been partially reversed and a very good technical writeup exists: https://aaronschlitt.de/threat-modelling-and-analyzing-iphone-mirroring/

    It uses AWDL (Apple Direct Wireless... Something) which, it turns out, is what most of Apple Continuity is based on. I didn't know about that.

    I think it's something like this:

                     Wi-Fi / AWDL
    ┌──────────────┐  proprietary   ┌─────────────────────┐
    │    iPhone    │ <─────────────>│       Mac           │
    │              │                │                     │
    │ render screen│──── video ────>│ display             │
    │              │<── input ──────│ mouse/trackpad      │
    └──────────────┘                └─────────────────────┘
    

    BUT the article mentions an encryption channel. Which is good in general, we dont want our phones hacked, but bad for a project like this. It seems feasible to do this, but it ventures into violating Apple terms which this project has avoided. Everything in Tether is above the board and keeping it that way vs achieving all of its goals is going to be a tough decision.

    Either way, it is worth exploring with a prototype I think.

    Thanks for the idea.

  4. zackb commented on Sep 13, 2026

    @zackb
    Owner

    Short answer: no this is not possible.
    Long answer:

    After some research I hit three hard walls that make this not possible and not practical.

    1. The devices trust eachother Apple ID identities from iCloud Keychain
    2. AVConference media over LLW is a Broadcom only feature and is required. Intel/MediaTek/Realtek/every other card would not work
    3. a Mac identity bound to the Secure Enclave, hardware encryption that is illegal and unethical (and super impossible) to break

    Since Linux has no iCloud Keychain identity. Getting one means emulating Apple ID and IDS authentication, the same approach as pypush and Beeper Mini, which Apple shut down within days. ToS / DMCA risk and breaks with every iOS update.

    It would take months to years to build, be extremely fragile, and have legal risk.

    I appreciate the feature request and excuse to learn something new. But this is not going to happen in tether, unfortunately.

  5. zackb commented on Sep 13, 2026

    @zackb
    Owner

    Just for note keeping. I thought of a super-hacky implementation:

    1. ReplayKit broadcast extension (screen recording)
    2. feed video to linux over the same pipe created for Plans for continuity camera? #172
    3. tether-gtk shows the video
    4. tetherd presents itself as a bluetooth HID keyboard and mouse through BlueZ. iOS accepts a bluetooth mouse when AssistiveTouch is enabled
    • this would have to co-exist with the current LE link used by ANCS (Notifications) and AirPods which it probably cannot.
    • ios does not let apps inject touches, so HID is the only input path without a jailbreak.

    Some good news tho:
    The EU DMA stuff is forcing apple to make an open version of AWDL called the "WiFiAware" framework or NAN.
    Linux support for NAN is VERY thin. mac80211 has the APIs but few drivers implement them. ESP32 already talks to iPhones this way.

    When the drivers catch up with NAN this should all be looked at again. But that should take years.

  6. c10l commented on Sep 13, 2026

    @c10l
    ContributorAuthor

    As I said in the OP, I was aware it was a long shot. :)

    Thanks for looking, and thanks for this project. It has improved my workflow since I started using it, and it just keeps getting better, fast!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions