Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8899773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:56:21+00:00 2026-06-15T00:56:21+00:00

Created a test app using Eclipse to get the authToken from one of my

  • 0

Created a test app using Eclipse to get the authToken from one of my google e-mail accounts on my device.

Executing this prompted me with the allow access dialog where i press allow access:

accountManager.getAuthToken(account,"oauth2:https://www.googleapis.com/auth/userinfo.profile", false, new GetAuthTokenCallback(), null);

I wanted to create a chooser dialog that works from API8 and up where the user can choose
what google account he allow me to access. To do this i have to revoke the permission to see the screen again.

should i see my test app on this page or not?
Authorized Access to your Google Account

I have search for a way to revoke the permission and non is working..
Only thing working is to create a new app project.

UPDATE 2013
Using the Google Play service GCM and this is working ok

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:56:22+00:00Added an answer on June 15, 2026 at 12:56 am

    Regarding the “Authorized Access to your Google Account” page, you will not see your app there as this permission is a device local permission stored in a database on the phone.

    It does not seem like it is possible to revoke this permission in an easy way. I’ve been able to find a couple of ways to be able to trigger the dialog again, but none are ideal. In some of these solutions it’s not the exact same dialog that is shown, but it might be close enough for testing purposes depending on what you want to do:

    • Do a factory reset of the phone.
    • Create a new minimal test app and configure both apps to share the same UID. This means that both apps will be granted the same permissions and the dialog will be shown again to let the user allow your second app access as well.
    • Add an additional scope to the token type (e.g. change oauth2:https://www.googleapis.com/auth/userinfo.profile to oauth2:https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email). Since you are asking for additional permissions the dialog will be shown again.
    • Given that you have root access to your phone delete the table grants from the database /data/system/accounts.db which is where the granted permissions are stored as explained in How do you force AccountManager to show the "Access Request" screen after a user has already allowed access?

    Internally the getAuthToken method keeps track of if access has been granted or not using the UID of the application. So if you are able to somehow force Android to give your app a new UID or to force it to clear the database of given grants the dialog should be shown again. Here are some solutions that others say work for them but that doesn’t work for me (maybe it depends on which phone you use?):

    • Uninstall the app and restart the device (as you say)
    • Remove and re-add the google account (mentioned in Revoke account permission for an app)
    • Sign the app with a different certificate (also mentioned in Revoke account permission for an app)

    As a side note as revoke permissions to access google auth tokens mention there are internal Android methods for revoking access, but these are not accessible via the public API.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing some test Android apps using Eclipse. I created my 1st project,
I am writing some test Android apps using Eclipse. I created my 1st project,
I am using eclipse and I created a test android project and the package
I created web App Test Project using the following Maven command: mvn archetype:generate -DgroupId=com.vanilla.cache
I've created an app on Android 2.2 and used emulator to to test the
I have created an windows phone 7 app. I need to test it in
I created a silverlight app (without website) named TestApp , with one TextBox: <UserControl
I created a test application that generates 10k random numbers in a range from
I'm currently studying the Mockito framework and I've created several test cases using Mockito.
I have my new macbook air. I have created one test application. now i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.