Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
AccountManager undocumented exception returns "unknown authTokenType"
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
H  
View profile  
 More options Jan 12 2011, 6:00 pm
From: H <m...@howardb.com>
Date: Wed, 12 Jan 2011 15:00:12 -0800 (PST)
Local: Wed, Jan 12 2011 6:00 pm
Subject: AccountManager undocumented exception returns "unknown authTokenType"

Hi,

I'm calling the AccountManager like this:

accountManagerFutureOld = mAccountManager.getAuthToken(mAccount, "cl",
false, null, null);

The Account being passed in is a Google account (type="com.google").

This works perfectly well for thousands of users of my app. But a handful of
times each day, some users are getting this error

java.lang.IllegalArgumentException: unknown authTokenType
at
android.accounts.AccountManager.convertErrorToException(AccountManager.java :1093)
at android.accounts.AccountManager.access$500(AccountManager.java:74)
at
android.accounts.AccountManager$AmsTask$Response.onError(AccountManager.jav a:944)
at
android.accounts.IAccountManagerResponse$Stub.onTransact(IAccountManagerRes ponse.java:69)
at android.os.Binder.execTransact(Binder.java:287)
at dalvik.system.NativeStart.run(Native Method)

This isn't an exception that the javadoc says comes from this method!

I think this is coming from the
AbstractAccountAuthenticator.getAuthTokenLabel(IAccountAuthenticatorRespons e,
String) who in turn catches this exception from the concrete
authenticator's getAuthTokenLabel(String) method. I've decompiled the gsf
and looked in this method, but can't see any throw of
an IllegalArgumentException in there. All it really does is call the
PackageManager.getPermissionInfo() and retrieve attributes of the
PermissionInfo returned.

Looking at the details for the reports, I *think* these reports are only
coming from non google devices - for example the reported models include
MID-7AS, XT800, EFREN II, etc. I don't see any mentions of nice devices like
Desire or Nexus, etc.

At first I thought this was just people forcing my app onto a non gapps
device, but the fact that they have a Google account on the device which can
be happily enumerated and retrieved using the standard api (i.e.
type-com.google) makes me think they at least have the full google services
framework otherwise they wouldn't have the GoogleLoginService.

So does anyone know exactly what this error thinks is missing..? Is there
any way to spot this before trying the call?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sandeep Android  
View profile   Translate to Translated (View Original)
 More options Jun 25 2012, 10:42 am
From: Sandeep Android <sandeep.dhames...@gmail.com>
Date: Mon, 25 Jun 2012 07:42:29 -0700 (PDT)
Local: Mon, Jun 25 2012 10:42 am
Subject: Re: AccountManager undocumented exception returns "unknown authTokenType"

am also failing into same thing. tried many things but no success.

did you manage to get it done any now?

thanks a lot.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
H  
View profile  
 More options Jun 29 2012, 11:25 am
From: H <m...@howardb.com>
Date: Fri, 29 Jun 2012 08:25:33 -0700 (PDT)
Local: Fri, Jun 29 2012 11:25 am
Subject: Re: AccountManager undocumented exception returns "unknown authTokenType"

No, never found a solution. I think Google restrict access to certain
services from only Google licensed devices. So devices which don't
*officially* have access to the Market seems to be the ones that can't
access certain services. They can access some, such as gmail and gcal, but
not all. Requests for auth tokens via the AccountManager calls the gsf and
likely therefore sends the device's model back with the request so Big G
can know if they would be a licensed device or not trying to access Google
services.

The only solution in my app was to use OAuth2 explicitly and since that's
via a different method, it seems to work nicely.

HTH.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sandeep Dhameshia  
View profile  
 More options Jun 29 2012, 3:36 pm
From: Sandeep Dhameshia <sandeep.dhames...@gmail.com>
Date: Sat, 30 Jun 2012 01:06:36 +0530
Local: Fri, Jun 29 2012 3:36 pm
Subject: Re: [android-developers] Re: AccountManager undocumented exception returns "unknown authTokenType"

thanks mate for reply.

am using nexus device, so shouldn't be that issue. and I see it not that
frequently. bit strange but it's happening at particular time in a day, say
between 18-21IST. I know it's weird but I've observed this. rest of the
times it's as expected!!
On Jun 29, 2012 8:57 PM, "H" <m...@howardb.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »