Files
DroidDeck/docs/development/ea-store.md
T
The412Banner cfe07b0848 fix(ea): Steam copies of EA games get the CPUID of their own exe's bitness
Merges main, keeping the steam request key from #3021 in prepare_ea.
prepare_steam_ea now puts the game exe in the sidecar it passes to
prepare_ea, so ea_game_hardware sends the 64-bit CPUID for a 64-bit game.
2026-11-27 18:33:17 +00:00

4.1 KiB

EA store

EA games install, update and start without the EA app. The research behind it is in ea-ubisoft-stores.md.

Pieces

Piece Where What it does
Sign-in stores/ea/EaAuth.kt, EaLogin in EaBackend.kt JUNO_PC_CLIENT OAuth with PKCE in the store login WebView; the code comes back on EA's qrc:///html/login_successful.html redirect. Tokens refresh with the refresh token.
Library EaApi.kt, EaLibrary.kt Owned games (getPreloadedOwnedGames, EA storefront), their offers (getLegacyCatalogDefs) and art (GameImages, SteamGridDB when EA has no portrait). Editions of one game collapse onto the base offer; trials, DLC and non-downloadable offers are left out.
Queries app/src/main/resources/ea/graphql/*.gql EA's own query texts, byte for byte. The gateway matches persisted queries by SHA-256, so these files must not be reformatted (-text in .gitattributes).
Downloads Rust src/ea/ in libdroiddeckstores.so, EaInstaller.kt A build is one ZIP on EA's CDN. The engine reads its central directory with ranged reads, keeps files whose size and CRC match, and streams every other entry through inflate into place. .droiddeck-ea-files records what it placed, so a resume or update does not re-hash those files; files a new build drops are removed.
Updates EaUpdates in EaBackend.kt The game page compares the installed version with the offer's live gameVersion (every 30 minutes at most). Update runs the same install, which only fetches changed files.
Launch, guest droiddeck-store-launch (prepare_ea) Creates the prefix, reads the machine as Wine reports it (wmic, vol, hostname, CPUID from a 32-bit and a 64-bit probe; cached in pfx/.droiddeck-ea-hw.json until the Proton version or its FEX libraries change; a probe that times out, fails or misses a value keeps the older complete cache), writes EA app presence keys and the game's Install Dir keys in both registry views, runs the build's Touchup once per installed build, then asks the app for the session and writes any licence files.
Launch, Steam copy prepare_steam_ea in droiddeck-store-launch, the Proton wrapper Steam starts its EA titles with steam2ea://, which only the EA app handles, and the EA app does not install here. When the prefix has no EA app, the hook reads the game's __Installer/installerdata.xml and its offers (__Installer/LOC/Origin.OFR.*.dat), runs prepare_ea with a steam request (the app answers with the launch environment instead of a sidecar file), and writes droiddeck-ea-steam.bat in the game's compatdata. The wrapper runs that launcher in place of the link. Writing the EA app presence keys also satisfies the install script, so Steam stops running the EA app installer.
Launch, app EaLaunch.kt, EaOoa.kt, EaLsx.kt Answers ea-prepare: starts the LSX endpoint on 127.0.0.1:3216, mints the short-lived opaque token, writes .droiddeck-ea-env (read once and deleted by the launcher .bat), and for games with a Core folder requests an online-activation licence for the machine hash.
LSX EaLsx.kt The local endpoint EA's SDK talks to instead of the EA app: challenge, AES session key, config, profile, settings, game info, auth codes for the game's own client ids, licences with Denuvo tokens, entitlements. Friends, presence and the overlay answer empty.

Machine hash

The licence names a hash of the machine the game's activation layer computes itself. The hash version follows the activation library's product version (Core/activation.dll or awc.dll): 5.x → 4, 4.7.6+ → 3, 4.7.x → 2, 4.x → 1. Versions 2 and 3 also hash CPUID leaf 1 ECX, which FEX reports differently to 32-bit (WOW64) and 64-bit (ARM64EC) processes when their AVX support differs, so the game is sent the CPUID its own exe's bitness sees. A cache from before the 64-bit probe has only the 32-bit values, and every game gets those until a probe with Proton found succeeds.

Not done yet

  • Cloud saves (cloudsync.juno.ea.com).
  • Pre-DiP games (no installerdata.xml) fall back to the exe picker.
  • Javelin anti-cheat games do not run under Proton.