Skip to content

App: Can't log in #248

Closed
Closed

Description

@hheymans

App version

1.1.2

Phone and Android version

Samsung s25

Where does it go wrong?

Signing in to my Apple account

What happened

opentagviewer-log.txt

Which exporter made the zip?

No response

The log

Unable to log in to Apple

Before you post

  • If I attached a log, I have had a look at it and taken out anything personal the app missed.

Activity

  1. added
    bugSomething isn't working
    @appIssues regarding the OpenTagViewer Android app
    on Oct 12, 2026
  2. parawanderer commented on Oct 12, 2026

    @parawanderer
    Owner

    Apple refused the sign-in at its first step, before your password was sent, so the password is not the problem: Email verification failed: This action cannot be completed at this time. appears in all four attempts in your log, with the app's on-device Anisette working each time.

    Two things to check:

    1. Can you sign in at https://account.apple.com with the same Apple ID, and does Apple ask you to do anything there (confirm details, unlock, accept something)?
    2. Did you enter your email address or a phone number as the Apple ID?

    In 1.1.2 there is no way to switch to a remote Anisette server once the on-device one works, which is the other thing worth trying for this error. The next release adds a "Try a remote server" button for exactly this failure, and records Apple's error code in the log so a failure like this one can be told apart from others.

    Drafted by Claude Code

  3. parawanderer commented on Oct 13, 2026

    @parawanderer
    Owner

    This is not specific to this app. Apple began refusing third-party Grand Slam sign-ins on 2026-10-12 (ec=-80045, "This action cannot be completed at this time"), across every project on this authentication path: AltStore #1828, SideStore #1645, iloader #859, xtool #329, atvloadly #215, plus Sideloadly and PlumeImpactor reports in those threads. Your log shows exactly that signature: refused before your password was sent, on-device Anisette working each time. One caution from those threads: repeated sign-in attempts may put the account at risk, so let it rest rather than retrying.

    Where it is broken. A sign-in request passes two checkpoints:

    your device ──▶ Apple's edge ──▶ GsService2 handler ──▶ sign-in
                  (headers, TLS)    (body: SRP + Anisette
                                     one-time password)
    
    September's 503s lived HERE ──▲            └── the -80045 refusal lives HERE
    our probe covers  HERE ───────┘             (NOT yet covered by our probe)
    

    Our check_gsa_edge.py probe tests the edge daily and passes for every identity we send — yet real sign-ins are refused with HTTP 200, which means the request got past the edge and the handler refused it. So the rule Apple added is behind the front door, in how the handler evaluates the Anisette data and SRP exchange carried in the body.

    What has been ruled out (from controlled probes in the threads above): it is not the password or account — synthetic accounts get the identical error; it is not the client-info strings that caused September's 503s — string variants change nothing; and it is not local Anisette provisioning failing — xtool's provisioning succeeds, then GsService init is refused anyway.

    If you want to help unbreak it, thank you — nobody has published the experiment that localises this yet, and the tooling to run it is in this repo:

    How to investigate, and our current hypothesis

    The investigation below is Claude Code's (an AI model), working from the issue threads and this repository's wire documentation. It is reasoning from evidence, not a confirmed finding — treat it as a starting hypothesis, and treat every claim about what Apple "must" be doing as a guess worth testing.

    The handler's decision at SRP init happens before any password is checked, so it can only be evaluating two things: the structure of the SRP exchange itself, and the Anisette data carried alongside it — the one-time password (X-Apple-I-MD), machine ID (X-Apple-I-MD-M), and the identifiers binding them to a machine. Local ADI provisioning succeeds (xtool's finding), which says the ADI libraries will still mint a one-time password; it says nothing about whether the handler still accepts what it mints. The most likely shape of the change, in order:

    1. The handler now validates the Anisette machine data against something it didn't before — provisioning recency, machine-identifier consistency between the OTP and the body, or a new required field in the init plist. This fits every observation: provisioning succeeds, junk-body edge probes pass (they carry no anisette data at all), and every client regardless of headers is refused identically.
    2. The handler rejects an entire class of machine identities — e.g. identities whose provisioning came from an emulator-emulating path (the unicorn-based providers many of these tools use) rather than real ADI hardware. This would fit the "any account, any IP, any headers" shape too.
    3. A required new field in the init body that only genuine Apple clients send. Least likely, but the cheapest to test.

    What would settle it, and what nobody has published: a real SRP init body, sent without credentials (init runs before the password is checked, so this is still not a sign-in attempt and carries no account risk), with the Anisette contents varied one at a time — fresh vs. stale provisioning, serial present vs. absent, OTP from a different provider. Whichever variation changes the answer is where the rule lives.

    To get started: scripts/probe_gsa_signin.py probes the edge with arbitrary header variants (--set Name=Value, --unset Name, --client-info "...") and no account involved. Its BODY docstring documents exactly where the handler-level extension goes — a --real-init mode building the genuine init body from the pinned FindMy.py's own SRP machinery, reporting the response plist's ec code, and varying the Anisette contents. That mode does not exist yet; building it is the first contribution worth making, and the script is structured so it reuses everything already there.

    Once it exists: run the baseline, vary the Anisette contents one at a time, and compare ec codes. A variation that flips -80045 to something else is the answer.

    And wherever you find the cause, please take it beyond this issue. Every project linked above is locked out identically and none of them can see this thread — post it to those trackers, xtool #329 first since its maintainer is actively investigating there. The whole ecosystem gets unblocked by one finding only if it travels.

    For this app specifically: there is nothing to fix on our side until the rule is understood. The next release adds a remote-Anisette fallback and logs Apple's error code so failures like this are recognisable, but there is no evidence yet that a different Anisette source gets past this refusal, and we won't promise that it will.

    Drafted by Claude Code, reviewed by @parawanderer


    Update, 2026-10-13 08:56 UTC

    As of this time, these are the latest findings across the other trackers. No project has published a cause or a fix: no fix branch, pull request or release in Impactor, isideload/iloader, xtool, SideStore, AltStore, anisette-v3-server or atvloadly.

    Drafted by Claude Code

  4. marked App: #259 as a duplicate of this issue on Oct 13, 2026
  5. hoorayman commented on Oct 14, 2026

    @hoorayman

    Cross-posting per this thread's request (this is not the -80045 refusal itself, but the blocker right behind it — and it is specific to fetching Find My reports):

    The GSA -80045 refusal is now solvable — report an Android identity consistent with the Android CoreADI Anisette machine ID, and treat hsc=409 in the GSA complete response as the 2FA prompt (Apple no longer sends au). With those two, login + trusted-device 2FA + mobileme all succeed.

    But since 2026-10-12 the com.apple.mobileme service-data tokens now contains only mmeAuthToken — searchPartyToken is gone. The report fetch (gateway.icloud.com/acsnservice/fetch) then returns HTTP 401. The token set appears tied to the (platform-consistent) Anisette identity: an Android identity passes mobileme but yields only mmeAuthToken, while a Mac identity with our Android Anisette is refused (status 1). So searchPartyToken may now require a genuine macOS/iOS Anisette.

    Full evidence, raw logs and the 5 variants we tried: malmeloo/FindMy.py#278 — malmeloo/FindMy.py#278

    This affects every project that reads tokens.searchPartyToken (OpenTagViewer, macless-haystack, …). If anyone has obtained searchPartyToken after 2026-10-12, please share.

  6. rubo77 commented on Oct 14, 2026

    @rubo77
    Contributor

    Attribution, stated plainly: the person posting this did not write or review a single
    line of code. The investigation and the fix were done by Devin (Fable 5.1), an automated
    contributor, running against this repository. Everything below is what it observed, in its
    own experiments — nothing is quoted second-hand.

    Root cause, localised to one check

    The refusal is not "Apple blocks third-party clients" — it is a provenance consistency
    check
    in the GsService2 handler:

    • The ADI libraries every project provisions with are Apple's Android binaries (from
      the Apple Music APK). The machine id they mint (X-Apple-I-MD-M) carries that origin.
    • Since 2026-10-12 the handler compares it against the platform X-MMe-Client-Info
      claims. Android-minted machine id + macOS/iPhone client-info → ec=-80045, before
      any credential is touched. A wrong OTP still gets -80045; only a missing OTP gets
      -80010, so the provenance verdict precedes authentication entirely.
    • Same machine id + Android client-info → ec=0 with the full SRP challenge
      (i, s, sp, c, B).
    • Provenance is bound at provisioning: a machine id provisioned under a Mac claim and
      then presented with an Android one is answered hsc=434 (re-sync demand) — you must
      re-provision, not just change the string.

    Second, independent finding: gsd.apple.com now chains to Apple Root CA – G3, which is
    in no shipped trust store. That is the -45003/502 every remote Anisette server hit — not
    a policy refusal, a TLS handshake failure on Apple's own provisioning endpoints.

    How it was found

    Extended probe_gsa_signin.py with --real-init: a structurally real SRP init
    (srp.User.start_authentication() A2k, ps: [s2k, s2k_fo], synthetic nonexistent Apple
    ID, real provisioned cpd) — the body the handler reads, while still never being a
    sign-in attempt. Then varied one cpd field at a time:

    variant answer
    no X-Apple-I-MD-M ec=-80009 "MID is invalid"
    junk X-Apple-I-MD-M ec=-29004 "environment mismatch"
    valid Android-minted MD-M + macOS client-info ec=-80045
    same + junk serial / junk device-id / junk X-Apple-I-MD still -80045
    same + Android client-info ec=0
    Mac-provisioned MD-M + Android client-info hsc=434
    second, independently provisioned machine id same -80045 → a class check, not an identity ban

    xtool found the client-info side independently (xtool-org/xtool#337, shipped in 1.22.2).
    What this adds: the field-level proof that X-Apple-I-MD-M provenance is the trigger, the
    hsc=434 re-provisioning requirement, and the G3 root cause of the remote-server errors.

    The fix, verified end to end

    On rubo77/OpenTagViewer@feature/gsa-real-init (two commits, MR-ready):

    • Hardware.ANDROID profile (Pixel 7 / Android;14;UQ1A.240205.002 / com.apple.akd/1.0),
      stored Mac/iPhone identities are replaced and anisette/provisioning is wiped before
      ADISetProvisioningPath so ADI re-provisions under the Android claim. Costs affected
      installs one re-login.
    • Apple Root CA – G3 added as a trust anchor for gsa/gsd only.

    Verified, honestly stated:

    • ✅ --real-init against live Apple: ec=0 with a freshly Android-provisioned machine id
    • ✅ On-device, Pixel 8 Pro: libraries download, ADI provisioning completes
      (ADIProvisioningEnd = 0), sign-in accepts password and 2FA code
    • ⚠️ After successful auth, that test account hit the known com.apple.mobileme delegate
      refusal (status=1, "account never used with an Apple device") — an account-level gate,
      unrelated to this fix
    • ✅ 469 JVM + 46 pytest + 35 instrumented tests green
    • ❓ Untested: an Apple ID that has previously been activated on real Apple hardware
      should pass the mobileme gate and reach actual fetching — that final step awaits a
      qualifying account
  7. hoorayman commented on Oct 14, 2026

    @hoorayman

    Thanks — this localises -80045 precisely, and matches what we found independently (Android-consistent identity → ec=0).

    One complementary data point that may refine the mobileme conclusion, because your own last two bullets are the crux:

    Your status=1 was the account gate (account never activated on real Apple hardware). We have the other half: our test Apple ID is activated (trusted-device 2FA prompts arrive, idms_pet is issued), and with the Android identity mobileme returns status=0 — so it clears the gate — but the com.apple.mobileme service-data.tokens contains only mmeAuthToken, never searchPartyToken:

    [gsa] o=complete Status={'hsc': 409, ..., 'au': 'trustedDeviceSecondaryAuth'}   # fixed as in your Android profile
    [gsa] o=complete Status={'hsc': 200, ...}                                       # 2FA code accepted
    [mobileme] idms_pet_len=523
    [mobileme] state=LOGGED_IN service_keys=['protocolVersion','tokens'] tokens=['mmeAuthToken']
    

    And the report fetch rejects that token: https://gateway.icloud.com/acsnservice/fetch with Basic <dsid>:<mmeAuthToken> → HTTP 401 (identical to a bogus token).

    We also compared identities in one session:

    mobileme X-MMe-Client-Info anisette result
    Android Android status=0, tokens = mmeAuthToken only
    Mac Android status=1

    So passing the mobileme gate does not yield searchPartyToken — the issued token set appears tied to the (platform-consistent) identity, and an Android identity never gets searchPartyToken. This suggests your final ❓ ("an activated account should reach actual fetching") may still stop at the fetch: the Android re-provisioning fix gets ec=0 and clears mobileme, but the Find My report fetch needs a token we haven't seen issued to Android identities.

    If you or Devin can run the activated account through the fetch step, the one thing that settles it is: does searchPartyToken appear in mobileme tokens (or does the fetch return 200)? That is exactly the question in malmeloo/FindMy.py#278 (malmeloo/FindMy.py#278), also posted to macless-haystack#248. Great work — this is the first field-level proof of the provenance check.

  8. parawanderer commented on Oct 14, 2026

    @parawanderer
    Owner

    Status as of 2026-10-14, with thanks to @rubo77 and @hoorayman for the field-level work above.

    Merged: #262 adds Apple Root CA - G3 as a trust anchor for gsa.apple.com and gsd.apple.com. gsd.apple.com, where ADI provisioning goes, now chains to that root, which Android does not ship. This is the trust-anchor part of @rubo77's branch only, credited to them. It does not fix -80045 by itself.

    What we understand so far:

    What this means for you:

    • If you are signed in and seeing locations, stay signed in. Do not sign out, clear the app's data or reinstall, because signing in again currently fails.
    • If you cannot sign in, there is no fix to install yet. Avoid retrying repeatedly; repeated attempts may put the account at risk.

    Next steps:

    Drafted by Claude Code, reviewed by @parawanderer

  9. 21 remaining items

  10. marked App: Opentagviewer #268 as a duplicate of this issue on Oct 23, 2026
  11. pinned this issue on Oct 24, 2026
  12. spidunno commented on Oct 25, 2026

    @spidunno

    any update on what an end user can do about this? is it possible to use the key generated by https://github.com/sacca97/os-findmy-e with opentagviewer somehow? currently this is a blocker for me using an airtag I have as the only apple device I have is an ipad and I can't exactly carry that around with me

  13. parawanderer commented on Oct 26, 2026

    @parawanderer
    Owner

    @spidunno there are two options here:

    1. it either requires somebody to finish this work: Sign in as an emulated Mac: Apple's macOS CoreADI under Unicorn, on the phone #274 ;
    2. or it requires you to host your own anisette server according to the conclusions of Since 2026-10-12: mobileme returns only mmeAuthToken (no searchPartyToken) — login OK, report fetch 401 malmeloo/FindMy.py#278 (comment) and switch to a remote anisette server on the first tab of the login or via the settings page for now, until #274 replaces it. This app is compatible with arbitrary remote anisette servers already with no changes, provided they return you your FindMy (and iCloud) tokens.
  14. NYZack commented on Nov 20, 2026

    @NYZack

    I can confirm that the debug apk just generated fixed my inability to log in. I used a Trusted Device for 2FA, and I didn't need to use an external anisette server. I was able to log in, retrieve my devices, and see them on the map.

  15. parawanderer commented on Nov 22, 2026

    @parawanderer
    Owner

    Hi, this release of the app fixes the issue for all users.
    Users who were successfully logged in already should also not lose their login status: Android App v1.2.0

  16. marked App: opentagviewer #282 as a duplicate of this issue on Nov 22, 2026
  17. marked App: OpenTagViewer #280 as a duplicate of this issue on Nov 22, 2026
  18. unpinned this issue on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    @appIssues regarding the OpenTagViewer Android appbugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions