Revoke account permission for an app

前端 未结 3 929
名媛妹妹
名媛妹妹 2021-02-08 20:11

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 the

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-08 20:34

    You might need to do a full uninstall/reinstall to in effect revoke it. Also, if you are using a specific sharedUserId, you can change the sharedUserId after you uninstall so it looks like a different account. Finally, you can sign it with a different cert. That's what I've been able to get away with, but a clean API to revoke (or even just an Activity) would be nice.

提交回复
热议问题