Unauthorize and App from AccountManager Credential Access

随声附和 提交于 2019-12-11 04:36:02

问题


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


回答1:


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.




回答2:


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




回答3:


You can try to remove from this page:

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



来源:https://stackoverflow.com/questions/8206036/unauthorize-and-app-from-accountmanager-credential-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!