How to NOT add Google account to Android phone while using Google Sign-In Button

Viewed 1163

I'm integrating Google-Sign button in my android app. However, whenever another user logs in with his credentials, the Google account is being added to Settings > Users & Accounts section on the phone. This should not happen.

For example, assume aarav@gmail.com is there under U & A section. Now, if alex@gmail.com is logging in the app on Aarav's phone, then Alex's Google account shouldn't be added to the phone.

Right now that is not the case. How can this be done?

2 Answers

If you want to use another Google account for android. First of all, you have to log in with your previous Google account which was added in the android device and after that remove that account. After removing the previous account you can add a new Google Account.

Because of the Andriod sync process, it checks your newly added account with the previous account. If it doesn't match it will throw an error.

You can add the account first, then after that you can delete it from settings.

Related