Skip to content

core: fix AP login on Windows on ARM - #1761

Merged
kingosticks merged 1 commit into
librespot-org:devfrom
iibaranov-IG:fix/windows-arm-platform
Sep 11, 2026
Merged

kingosticks merged 1 commit into
librespot-org:devfrom
iibaranov-IG:fix/windows-arm-platform

Conversation

@iibaranov-IG

Copy link
Copy Markdown
Contributor

Windows on ARM currently advertises the legacy PLATFORM_WINDOWS_CE_ARM identifier in the AP handshake. Spotify rejects that platform during Premium login, as reported and isolated in #1758.

This change maps Windows arm and aarch64 targets to the supported desktop PLATFORM_WIN32_X86_64 identifier. The platform selection is extracted into a small pure function so the Windows ARM behavior and existing x86 behavior are covered by unit tests.

Validation:

  • cargo fmt --all -- --check
  • cargo test -p librespot-core windows_ (2 passed)
  • cargo build -p librespot-core
  • cargo clippy -p librespot-core --all-targets -- -D warnings

The handshake mapping is covered here; final Spotify authentication on Windows ARM still needs confirmation from the reporter's hardware.

Closes #1758

@kingosticks
kingosticks merged commit 939dc5e into librespot-org:dev Sep 11, 2026
12 checks passed
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.

Windows on ARM: AP login fails with PremiumAccountRequired because ClientHello announces PLATFORM_WINDOWS_CE_ARM

2 participants