Skip to content

Games: Forget the account for every game when its profile is deleted - #4065

Open
haydexlawal wants to merge 1 commit into
microg:masterfrom
haydexlawal:games-delete-profile-forget-account
Open

haydexlawal wants to merge 1 commit into
microg:masterfrom
haydexlawal:games-delete-profile-forget-account

Conversation

@haydexlawal

@haydexlawal haydexlawal commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Deleting a Play Games profile in microG settings (Game play data → delete) cleared the cached player and the default account saved for com.google.android.play.games, but nothing else. Every game that had signed in with that account kept it as its saved account (account_<package>:<sig> in games.config). As a result:

  • the game kept showing in the played games list, which is built from those entries;
  • its next launch signed in silently with the account again, as if nothing had been deleted.

This adds GamesConfigurationService.forgetAccount(). It removes every saved account choice that points to the deleted account (including the global one) and every cached player for it. GameDeletePlayAccountFragment calls it after the profile has been deleted. The next sign-in then asks which account to use.

Tested on /e/OS 4.5 (Android 15):

  1. Create a profile with Scrabble GO.
  2. Delete the profile in Game play data.
  3. Open the game again: the account is no longer pre-selected for it, and the account picker shows.
    Related: Games: Ask to create a Play Games profile instead of looping sign-in #4063 and Games: Check again for a Play Games profile after it was deleted #4064 fix the sign-in loop itself. This one removes the leftover data after a profile is deleted.

Deleting a Play Games profile in microG settings only cleared the
account chosen for the Play Games app itself. Every game that had
signed in with that account kept it as its saved choice. These games
were still listed in the played games list, and their next launch
signed in with the account again without asking.

Now deleting a profile also clears that account from every game and
removes its cached profile. The next sign-in asks which account to
use.

Issue: https://gitlab.e.foundation/e/os/backlog/-/work_items/4101
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.

1 participant