Repository navigation
Offer CoreADI by hand when the emulated Mac cannot download it - #297
Merged
Merged
Conversation
A phone that could not download Apple's macOS CoreADI fell back to a remote Anisette server. Since Apple's 2026-10-12 change a server signs in and then every report fetch answers 401. When a stored server answered, the sign-in screen skipped the Anisette step entirely, so nobody was ever told. - MacCoreAdiFetcher.importFrom takes the iTunes 12.8.3 disk image (reading only the payload's byte range) or the CoreADI library, universal or x86_64, checked against the download's own pins. - EmulatedMacAnisette marks a failed fetch with NO_COREADI_REASON; AnisetteStatus makes that NEEDS_COREADI. It also now recognises the emulated Mac's crash sentence as CRASHES_HERE, which it never did. - The sign-in screen stops on the Anisette step in that state, even with a working stored server, and offers Apple's link (copyable), "Choose a file" and "Retry". The server stays, under a sentence saying locations won't load through it. A successful retry goes straight to the account form. - Settings -> Anisette offers the same file in the same state. - Three new strings in all locales; "Choose a file", "Retry", the rejection message and "Copied" are reused. Tests: MacCoreAdiFetcherTest (disk image, universal, thin, wrong build, wrong image, unrelated file), EmulatedMacAnisetteTest (the marker), AnisetteStatusTest, LoginAnisetteFallbackLayoutTest, and SuppliedCoreAdiFlowTest (Espresso, with screenshots), which fails with the routing change taken out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MacCoreAdiRealImageTest runs importFrom on the real iTunes 12.8.3 image with the real pins, when COREADI_DMG names it; skipped otherwise. Passed on 2026-11-21 in 0.3 s. Listed in CONTRIBUTING's test table (rule 10). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
parawanderer
temporarily deployed
to
Android Build
November 21, 2026 14:07 — with
GitHub Actions
Inactive
parawanderer
temporarily deployed
to
Android Build
November 21, 2026 14:07 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #274, and needed before it ships. When the emulated Mac can't download Apple's macOS CoreADI (a blocked network, a firewall, Apple's CDN refusing), sign-in fell back to a remote Anisette server. Since Apple's 2026-10-12 change, a server signs in and then every report fetch answers 401. Worse, when a stored server answered, the sign-in screen skipped the Anisette step entirely, so nothing ever said so.
Changes
MacCoreAdiFetcher.importFromtakes either the iTunes 12.8.3 disk image (it seeks to the payload's byte range rather than reading 291 MB) or the CoreADI library, universal or x86_64. Both are checked against the download's own pins.NEEDS_COREADI:EmulatedMacAnisettemarks a failed fetch withNO_COREADI_REASON, andAnisetteStatusturns it into the new state.CRASHES_HERE, so a phone the emulator crashed on got the generic message instead of the report button.add_strings.py; "Choose a file", "Retry", the rejection message and "Copied" are reused.Testing
MacCoreAdiFetcherTest, 6 new tests (disk image, universal, thin, wrong build, wrong image, unrelated file); the disk-image test fails when the offset is off by one byte.EmulatedMacAnisetteTest, 2 new tests (the marker is set, and only for a failed fetch).importFromwith the real pins: passes, in 0.3 s (MacCoreAdiRealImageTest, opt-in viaCOREADI_DMG).SuppliedCoreAdiFlowTest(Espresso, 5 tests, with screenshots in light and dark), plus new cases inAnisetteStatusTestandLoginAnisetteFallbackLayoutTest. AlongsideAppleLoginFallbackFlowTestandAnisetteApkPickerFlowTest, all 41 pass. The test that a stored server no longer skips the offer fails with the routing change taken out.testDebugUnitTest: everything passes except the 20 existing Windows-only failures inEmulatedMacAnisetteTest/UnicornNoticeTest(File.renameToover an existing file, and CRLF); CI on Linux is the check for those.🤖 Generated with Claude Code