Repository navigation
feat(core): support native Store authentication and ADI device provisioning - #25
Merged
Merged
Conversation
…ioning Since November 2026 Apple's edge drops most requests to the legacy MZFinance authenticate action. Updating the client User-Agent to Configurator/2.21 routes sign-in through auth.itunes.apple.com/auth/v1/native, which requires a Store-scoped (dsid = -1) X-Apple-AMD / X-Apple-AMD-M device proof alongside the existing SAP X-Apple-ActionSignature. Add crates/ipatool-core/src/adi to range-read Apple's x86-64 libCoreADI.so and libstoreservicescore.so (~2 MB compressed, pinned by SHA-256) from the official Android Apple Music APK and run them inside the existing Unicorn engine with a lightweight ELF loader and Bionic/VFS shims. Automatically service X-Apple-AMD-Action (SP/RP) challenges via auth/v1/otp/1.5/finish, persist adi.pb locally, and attach Store AMD headers across native sign-in, purchase, download, and version queries.
Update both English and Chinese READMEs to describe the auth/v1/native endpoint, Store ADI (X-Apple-AMD) device provisioning, the ~2 MB CoreADI range download cached under ~/.ipatool/cache/, and the new sap/ and adi/ modules in the project layout.
live_store_adi_provisions_and_produces_accepted_headers runs as part of the scheduled `live_` suite, so list the Android Apple Music APK digests and auth/v1/native provisioning endpoint alongside the SAP and Unicorn artifacts in the failure issue body.
Workflow-level RUSTFLAGS=-Dwarnings leaked into `cargo install cross`, turning future-incompat warnings from cross's locked eyre 0.6.12 dependency (`semicolon_in_expressions_from_non_local_macros`) into hard errors on newer stable Rust toolchains.
This was referenced Nov 30, 2026
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.
Closes #17
Closes #24
Summary
Since November 2026 Apple's edge drops most requests to the legacy
MZFinance.woa/wa/authenticateaction, whileConfigurator/2.21is routed by the bag tohttps://auth.itunes.apple.com/auth/v1/native, which requires both a SAPX-Apple-ActionSignatureand a Store-scoped (dsid = -1) ADI device proof (X-Apple-AMD/X-Apple-AMD-M).Changes
Configurator/2.21and allowauth.itunes.apple.com/auth/v1/native(/fast) in the bag validator and manual redirect handler; handle 2FA challenges and DSID cookie/header fallbacks on native responses.crates/ipatool-core/src/adi): range-read Apple's self-contained x86-64libCoreADI.soandlibstoreservicescore.so(~2 MB compressed, verified against pinned SHA-256 digests) from the official Android Apple Music APK and run them inside the existing Unicorn emulator with a lightweight ELF loader and Bionic/VFS shims.SP/RPdevice provisioning: completeauth/v1/otp/1.5/finishhandshakes and persistdevice_id+adi.pblocally across runs.buyProduct,volumeStoreDownloadProduct, and version queries; share download product dictionary resolution inversions.rs.README.md/README_zh.md, and include the Android CoreADI digests in weeklylive.ymlfailure reports.Verification
cargo fmt --all --check&cargo clippy --all-targets --all-features -- -D warningscargo test --workspace(121 unit tests passing)cargo test -p ipatool-core -- --ignored live_store_adi(fresh asset range-fetch, SHA-256 verification, SAP + Store ADISPprovisioning handshake, and state reload)authre-authentication, free licensepurchase,version list,version meta, and full IPAdownload+iTunesMetadata.plist/.sinfpatching.