Skip to content

Spell the legacy Mac's OS as Apple's akd does, now that Apple refuses macOS - #291

Merged
parawanderer merged 2 commits into
mainfrom
fix/289-mac-os-x
Nov 20, 2026
Merged

parawanderer merged 2 commits into
mainfrom
fix/289-mac-os-x

Conversation

@parawanderer

Copy link
Copy Markdown
Owner

Fixes #289. Since 2026-11-20 Apple's edge refuses every Grand Slam sign-in whose X-MMe-Client-Info spells the OS <macOS;…> (HTML 503, 190 bytes), and lets the identical request with <Mac OS X;…> through. LEGACY_MAC, the profile every install presents on both the local and remote Anisette transports, said macOS.

Bisected against gsa.apple.com/grandslam/GsService2, one field at a time:

Client info Edge
<MacBookPro13,2> <macOS;13.1;22C65> <… (com.apple.akd/1.0)> refused
<MacBookPro13,2> <Mac OS X;13.1;22C65> <… (com.apple.akd/1.0)> through
<MacBookPro18,3> <macOS;13.4.1;22F8> …, <Mac14,2> <macOS;15.7.5;24G624> … refused
<MacBookPro13,2> <Mac OS X;12.6;21G115> … through

Provisioning (lookup, midStartProvisioning, midFinishProvisioning) and acsnservice/fetch accept both spellings.

Changes:

  • AdiDeviceIdentity.Hardware.LEGACY_MAC: OS name macOS → Mac OS X. Python reads it across the bridge, so new sign-ins move with it.
  • identity.respellRefusedOsName, called in main.getAccount: a stored account carries its identity and its password, and FindMy.py re-authenticates under it on PET renewal or a fetch 401. Without this, every existing legacy-Mac session would be refused at that point. Only os_name changes; serial, ids and the other five fields are untouched.
  • check_gsa_edge.py: adds a macOS spelling control probe expected to be refused, mirroring the Xcode control.
  • AGENTS.md rule 18: records this incident.

Verified: check_gsa_edge.py all ok from a residential connection; 483 Python tests (bridge + scripts); testDebugUnitTest; AdiDeviceIdentityTest and IdentityBridgeTest on the managed device. The restore test fails with the getAccount call reverted. Not verified: a real sign-in against an Apple account.

Does not address #248. #274 also needs MacIdentity.OS_NAME changed to "Mac OS X"; its current value is refused.

Drafted by Claude Code

🤖 Generated with Claude Code

…uses macOS

Since 2026-11-20 Apple's edge answers every Grand Slam sign-in whose
X-MMe-Client-Info says <macOS;...> with a 190-byte HTML 503, and lets the
identical request saying <Mac OS X;...> through. Model, version, build and
bundle make no difference; provisioning and the report fetch accept both.
The legacy Mac profile, which every install presents, said macOS (#289).

- LEGACY_MAC's OS name is now "Mac OS X", so new sign-ins go through on both
  the local and the remote Anisette transport.
- Stored accounts carry their own identity and their password, so FindMy.py
  would re-authenticate under "macOS" at the next PET renewal and be refused.
  getAccount respells it on restore; nothing else about the identity moves.
- The edge check gains a control for the macOS spelling, so a change to this
  rule is noticed the way the Xcode one is.

Fixes #289

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The earlier commit's edit also landed in assertAnisetteIsSupported, which
parses the same JSON into a local that only the type check reads. Harmless,
but not where the correction belongs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@parawanderer
parawanderer merged commit 704e5e1 into main Nov 20, 2026
4 checks passed
@parawanderer
parawanderer deleted the fix/289-mac-os-x branch November 20, 2026 16:40

This branch was previously deployed

1 inactive deployment
Android Build — 44717697 Deployed Nov 20, 2026 by parawanderer via Instrumented tests (emulator) #358
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.

Apple's edge is refusing this project's sign-in requests

1 participant