Stateful
Stateful

Reputation: 737

Unauthorize and App from AccountManager Credential Access

I have an app that I'm developing that uses AccountManager to get credentials for a Google account that is subsequently used for getting a cookie from AppEngine. I've noticed that I find bugs when I send the app to testers because they get prompted to authorize the account. I need to do a bunch of testing and am looking for a way to "unauthorize" an app from a particular credential so I can do my testing on the next install. I can't find anything in settings where I can remove the authorization to an account from an app. Do you know of a way to do this?

Thank you,
Stateful

Upvotes: 1

Views: 881

Answers (3)

user1365836
user1365836

Reputation: 350

You can try to remove from this page:

https://accounts.google.com/b/0/IssuedAuthSubTokens?hl=it

Upvotes: 0

Miguel
Miguel

Reputation: 13

It is true that uninstalling is most of the time not enough. You need to uninstall and restart the phone right afterwards. At least this works for me

Upvotes: 1

Nikolay Elenkov
Nikolay Elenkov

Reputation: 52966

At least as of 2.3, there is no API for this. IIRC, if you install the application, the authorization entry will be removed from the database, so a re-install should work.

Upvotes: 0

Related Questions