Search code examples
androiduser-accounts

Revoke account permission for an app


I wrote a code that request an AuthToken from the account manager, using the getAuthToken(). On the first time - the user needs to "Allow" the authentication, but later on there's no need to.

I want to know if there's a way to revoke that permission, using the android system or code, in order to help me debug my program (I'm running out of accounts :)). Uninstalling the app doesn't help.

Thank you,

Udi


Solution

  • I've found that when you remove and re-add the account, then the permission is revoked, and you have to allow it again.

    That's the easiest way i've found, I'm marking this as the answer unless I'll get a better one.