Repository navigation
Games: Forget the account for every game when its profile is deleted - #4065
Open
haydexlawal wants to merge 1 commit into
Open
haydexlawal wants to merge 1 commit into
haydexlawal wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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>ingames.config). As a result: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.GameDeletePlayAccountFragmentcalls 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):
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.