Skip to content

Fix and integrate with anisette mac backend - #279

Open
sacca97 wants to merge 2 commits into
malmeloo:mainfrom
sacca97:main
Open

sacca97 wants to merge 2 commits into
malmeloo:mainfrom
sacca97:main

Conversation

@sacca97

@sacca97 sacca97 commented Oct 19, 2026 •

Copy link
Copy Markdown

Some changes required by the new anisette backend system to be coherent when sending requests to apple servers + fixes of issues encountered along the way.

Some tests might be removed eventually.

Fixes #278

@rabea98

rabea98 commented Oct 20, 2026

Copy link
Copy Markdown

Thanks for working on this! Quick question about the macOS ADI backend: macos.py pins adid to SHA-256 4b6b320f08edcf5d65ed1141399b76a8d9323fee2045c577c5d2f30f35a5dae1, but I can't find which macOS version that /usr/libexec/adid comes from. Which exact macOS 26 build produced it (e.g. 26.6.2 / 25G83)? I'm on Windows with no Mac, so I'd need to pull the file from a matching build. Thanks!

@sacca97

sacca97 commented Oct 20, 2026 •

Copy link
Copy Markdown
Author

@rabea98 it should be the latest available 26.X image, and then once you get the adi you have to take out the x86 part because is a fat one. I can check later tonight or tomorrow morning before making you download the wrong one.

ideally anything should work tho. I also tried another earlier MacOS i can't remember. I guess from 26.X you can pick any random one

@sacca97

sacca97 commented Oct 21, 2026

Copy link
Copy Markdown
Author

@rabea98 macOS 26.7.1 (25G241) x86_64 adid

@GunayAnach

Copy link
Copy Markdown

Tested the proposed local macOS ADI backend with Home Assistant running in a Linux Mint x86_64 container (Python 3.14).

Build and setup

Built the Python wheels in the HA environment from these commits:
FindMy.py: f2d24c8
Anisette.py: 627c9c663062bd872182b653113759c9d66b7e13
macOS-ADI-emulator: d4d2a832baf47d1cf43d989879950ac2aec45f47
Used the separately supplied CoreADI.x86_64 binary; its SHA-256 matched the backend’s expected hash: 4b6b320f08edcf5d65ed1141399b76a8d9323fee2045c577c5d2f30f35a5dae1.
Kept packages and binary on HA’s persistent /config mount, configured PYTHONPATH and MACOS_ADI_BINARY, and left the Anisette URL blank to select the local provider.
Results

The emulator booted and the local Anisette provider initialized.
Apple sign-in completed, including 2FA; HA set up the FindMy integration.
The first location fetch reported success, and a tracker reported location.
This was a real HA integration smoke test, not a run of the full upstream test suites. No credentials or tracker private keys were included.

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.

Since 2026-10-12: mobileme returns only mmeAuthToken (no searchPartyToken) — login OK, report fetch 401

3 participants