Skip to content

Sign the exporter in as an emulated Mac running Apple's macOS CoreADI - #292

Merged
parawanderer merged 4 commits into
mainfrom
feat/exporter-emulated-mac
Nov 20, 2026
Merged

parawanderer merged 4 commits into
mainfrom
feat/exporter-emulated-mac

Conversation

@parawanderer

Copy link
Copy Markdown
Owner

Draft until a real sign-in has gone through it.

The exporter's iCloud route signs in as the Android ADI machine anisette provisions, which Apple has served differently since 2026-10-12 (#248, #288). This makes the default an emulated Mac running Apple's own x86_64 CoreADI under Unicorn, through sacca97's machoadi engine from os-findmy-e.

Not done: the PyInstaller build has no interpreter for the engine subprocess and refuses with a message. The windowed release needs that before this ships.

Verified: 701 exporter tests; test_emulated_mac.py (22, including the real engine with OTV_COREADI; the default-path and spelling tests fail when either is reverted); provisioning against Apple from a scratch state (verified TLS, Mac OS X client info, 0PENTAGX serial, OTP produced). Not verified: a sign-in.

Drafted by Claude Code

🤖 Generated with Claude Code

parawanderer and others added 2 commits November 20, 2026 17:35
…s the app

parawanderer/FindMy.py#9 (merged as 37d5ca0b) reads Grand Slam's hsc 409
with no au as a second factor, so an account Apple wants a code for is asked
for one instead of failing at the mobileme step (#248). The exporter runs the
same library, so it gets the same fix. Moved in all four places (AGENTS.md
rule 14); uv.lock by `uv lock`.

Co-Authored-By: Rob Lazzurs <rob@lazzurs.ie>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reADI

Since 2026-10-12 Apple serves the Android ADI machine that `anisette`
provisions differently from a Mac (#248), and the exporter's iCloud route
signs in as exactly that machine (#288). This makes the default an emulated
Mac instead: Apple's x86_64 CoreADI under Unicorn, through sacca97's machoadi
engine from os-findmy-e.

- The engine is GPL-2.0 and runs as `python -m machoadi.mac_anisette` in its
  own process, never imported. It comes from parawanderer/os-findmy-e, which
  spells the OS "Mac OS X" (#289), verifies TLS against FindMy.py's pinned
  Apple root rather than CERT_NONE, takes a serial, and installs with pip.
- Apple's library is fetched from Apple: 3.5 MB of the iTunes 12.8.3
  installer in one range request, checked against two pinned hashes. A port
  of the app's MacCoreAdiFetcher; nothing for the user to supply, on any OS.
- The machine is provisioned once, under this install's 0PENTAGX serial, and
  kept beside device-identity.json. The account signs in with the ids it was
  provisioned with. An install that was the Android machine gains one
  device-list entry, once, and is told so.
- CloudKit is given the machine's host UUID, since it parses the device id as
  a UUID and a Mac's is not one (as #274's _forCloudKit).
- --anisette-url is unchanged; --anisette-libs now explicitly selects the
  Android ADI. A PyInstaller build refuses with a message for now: it has no
  interpreter to run the engine with.

Not yet verified: a real sign-in through it.

Co-Authored-By: sacca97 <tommaso.sacchetti@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@parawanderer
parawanderer marked this pull request as ready for review November 20, 2026 17:26
@parawanderer
parawanderer merged commit f7f9eda into main Nov 20, 2026
10 checks passed
@parawanderer
parawanderer deleted the feat/exporter-emulated-mac branch November 20, 2026 17:26

This branch was previously deployed

1 inactive deployment
Android Build — cdea5de8 Deployed Nov 20, 2026 by parawanderer via Instrumented tests (emulator) #364
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant