feat: EA store with sign-in, library, native downloads, updates and launch without the EA app (#2259)

* docs: research and plan for EA and Ubisoft stores

* feat(ea): EA store with sign-in, library, native downloads, updates and launch without the EA app

* perf(ea): fetch large archive records as parallel ranges

* fix(ea): register game display names

* fix(ea): license legacy EA Core games and harden the LSX endpoint

* fix(ea): run legacy Origin SDK games with a stand-in Origin process

* fix(ea): trust only the prepared game on LSX and stop stale library syncs

* fix(ea): close LSX sessions on stop and drop clients that never hand-shake

* fix(ea): require every hashed field before licensing or caching a probe

* fix(ea): trust one LSX session per launch

* fix(ea): serialize the library cache write with sign-out and rerun a skipped sync

* fix(ea): hand off library sync requests under one lock

* fix(ea): clear the sign-in before invalidating the library

* fix(ea): serialize sign-out with token refresh and with the library cache

* fix(ea): LSX trusts only verified peers, new launch closes old sessions, exit stops its own game

* fix(ea): LSX hides profile and presence from unverified peers

* fix(ea): LSX handshake has a fixed deadline and untrusted sessions yield their slot

* fix(ea): LSX never registers a client after its listener was stopped

* fix(ea): LSX evicts each untrusted session at most once

* fix(ea): LSX admission and eviction share one lock and keep the cap

* fix(ea): LSX trust promotion excludes eviction

* fix(ea): LSX launch generation guards restarts and drops results after shutdown

* fix(ea): LSX publishes launch state under the admission lock and tags accepts by generation

* fix(ea): LSX restarts rebind its listener and promotion checks the launch generation

* fix(ea): record why EA refuses a game licence in the store log

* chore(ea): log owned offers and the full licence refusal

* chore(ea): log the account's entitlements when no game licence is granted

* chore(ea): log legacy entitlements when no game licence is granted

* chore(ea): log only the refused game's own entitlements

* fix(ea): skip trial launchers flagged 1 and license games whose LSX peer Android cannot name
This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-10 14:56:29 -05:00
1 parent 9bf638a3c4
commit d8ed02f2cf
46 files changed
+5284 -7

No files matched your search

@@ -0,0 +1,69 @@
query GameImages($gameSlug: String!, $locale: Locale!) {
game(slug: $gameSlug, locale: $locale) {
id
slug
title
keyArt {
...imageRenditionData
__typename
}
packArt {
...PackArt
__typename
}
...PrimaryLogo
__typename
}
}
fragment imageRenditionData on ImageRendition {
path
aspect9x16Image {
path
__typename
}
aspect16x9Image {
path
__typename
}
aspect1x1Image {
path
__typename
}
largestImage {
path
__typename
}
rawImages {
path
__typename
}
__typename
}
fragment PrimaryLogo on GameV2 {
primaryLogo(uiClientContexts: ["juno-web-game-tile"]) {
path
title
largestImage {
path
width
height
__typename
}
__typename
}
__typename
}
fragment PackArt on ImageRendition {
aspect2x1Image {
path
__typename
}
aspect9x16Image {
path
__typename
}
__typename
}
@@ -0,0 +1,49 @@
query GetUserPlayer {
me {
id: pd
pd
player {
...Player
__typename
}
__typename
}
}
fragment Player on Player {
id: pd
pd
psd
displayName
uniqueName
nickname
avatar {
...Avatar
__typename
}
relationship
__typename
}
fragment Avatar on AvatarList {
large {
...image
__typename
}
medium {
...image
__typename
}
small {
...image
__typename
}
__typename
}
fragment image on Image {
height
width
path
__typename
}
@@ -0,0 +1,9 @@
query availableBuilds($offerId: String!) {
availableBuilds(offerId: $offerId) {
buildId
downloadType
gameVersion
buildLiveDate
__typename
}
}
@@ -0,0 +1,7 @@
query downloadUrl($offerId: String!, $buildId: String) {
downloadUrl(offerId: $offerId, buildId: $buildId) {
url
syncUrl
__typename
}
}
@@ -0,0 +1,66 @@
query getLegacyCatalogDefs($offerIds: [String!]!, $locale: Locale) {
legacyOffers(offerIds: $offerIds, locale: $locale) {
offerId: id
contentId
basePlatform
primaryMasterTitleId
mdmProjectNumber
achievementSetOverride
gameLauncherURL
gameLauncherURLClientID
stagingKeyPath
mdmTitleIds
multiplayerId
executePathOverride
installationDirectory
installCheckOverride
monitorPlay
displayName
displayType
igoBrowserDefaultUrl
executeParameters
softwareLocales
dipManifestRelativePath
metadataInstallLocation
distributionSubType
downloads {
igoApiEnabled
downloadType
version
executeElevated
buildReleaseVersion
buildLiveDate
buildMetaData
gameVersion
treatUpdatesAsMandatory
enableDifferentialUpdate
__typename
}
locale
greyMarketControls
isDownloadable
isPreviewDownload
downloadStartDate
releaseDate
useEndDate
subscriptionUnlockDate
subscriptionUseEndDate
softwarePlatform
softwareId
downloadPackageType
installerPath
processorArchitecture
macBundleID
gameEditionTypeFacetKeyRankDesc
appliedCountryCode
cloudSaveConfigurationOverride
firstParties{
partner
partnerId
partnerIdType
__typename
}
suppressedOfferIds
__typename
}
}
@@ -0,0 +1,33 @@
query getLegacyEntitlements($limit: Int, $next: String, $storeFronts: [UserLegacyEntitlementStorefront!]!) {
me {
legacyEntitlements(
paging: {limit: $limit, next: $next},
storefronts: $storeFronts,
status: [ACTIVE, DISABLED]
) {
next
items {
cdKey
entitlementTag
entitlementType
externalType
grantDate
groupName
id
isSubscription
isSubscriptionExpired
lastModifiedDate
originPermissions
productId
status
statusReasonCode
terminationDate
trialTimeRemainingSeconds
useCount
version
__typename
}
__typename
}
}
}
@@ -0,0 +1,69 @@
query getPreloadedOwnedGames($next: String, $locale: Locale, $limit: Int, $type: [GameProductType!]!, $entitlementEnabled: Boolean, $isMac: Boolean = false, $storefronts: [UserGameProductStorefront!], $ownershipMethods: [OwnershipMethod!], $processorArchitectures: [ProcessorArchitecture!], $platforms: [GamePlatform!]!) {
me {
id: pd
ownedGameProducts(storefronts: $storefronts, locale: $locale, paging: {limit: $limit, next: $next}, productFound: true, orderBy: {field: NAME, direction: ASC}, ownershipMethod: $ownershipMethods, processorArchitectures: $processorArchitectures, type: $type, downloadableOnly: false, entitlementEnabled: $entitlementEnabled, platforms: $platforms) {
next
totalCount
items {
...userGameProductFragment
__typename
}
__typename
}
__typename
}
}
fragment userGameProductFragment on UserGameProduct {
id: originOfferId
originOfferId
status
product {
...OwnedGameProductFragment
__typename
}
__typename
}
fragment OwnedGameProductFragment on GameProduct {
id
name
downloadable
gameSlug
trialDetails {
trialType
__typename
}
baseItem(availabilities: [VISIBLE]) {
title
id
baseGameSlug
gameType
__typename
}
gamePlatformDetails @include(if: $isMac) {
gamePlatform
__typename
}
processorArchitectureDetails @include(if: $isMac) {
processorArchitecture
platform
__typename
}
gameProductUser(storefronts: $storefronts) {
ownershipMethods
initialEntitlementDate
entitlementId
gameProductUserTrial {
trialTimeRemainingSeconds
__typename
}
status
__typename
}
purchaseStatus {
repurchasable
__typename
}
__typename
}
@@ -0,0 +1,27 @@
query sdkEntitlements($productIds: [String!]!, $includeChildGroups: Boolean!, $groupNames: [String!]!, $entitlementTag: String!, $pageSize: Int!, $pageNumber: Int!) {
me {
sdkEntitlements(
productIds: $productIds,
includeChildGroups: $includeChildGroups,
groupNames: $groupNames,
entitlementTag: $entitlementTag,
paging: {
pageSize: $pageSize, pageNumber: $pageNumber
}
) {
entitlements {
entitlementTag
entitlementType
grantDate
groupName
id
productId
terminationDate
useCount
version
__typename
}
__typename
}
}
}