GoogleAuthUtil.getToken SecurityException异常 [英] GoogleAuthUtil.getToken SecurityException

查看:599
本文介绍了GoogleAuthUtil.getToken SecurityException异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到这个失败ICS的设备与最新的谷歌试图调用GoogleAuthUtil.getToken(参数)时播放服务上。这个问题是通过删除和添加谷歌账号到手机上得到解决。我无法重现错误。谷歌搜索堆栈跟踪提供任何见解。在这个问题上怎么可能是prevented又意味着什么任何想法是AP preciated!

I was getting this failure on a ICS device with latest Google Play Services when trying to call GoogleAuthUtil.getToken(args). The issue was resolved by removing and adding Google account to the phone. I wasn't able to reproduce the error. Google searching stack trace provided no insights. Any ideas on how this issue could be prevented and what it means are appreciated!

W/System.err( 3145): java.lang.SecurityException: Permission Denial: reading com.google.android.gsf.gservices.GservicesProvider uri content://com.google.android.gsf.gservices/prefix from pid=3145, uid=10055 requires com.google.android.providers.gsf.permission.READ_GSERVICES
W/System.err( 3145):    at android.os.Parcel.readException(Parcel.java:1327)
W/System.err( 3145):    at android.os.Parcel.readException(Parcel.java:1281)
W/System.err( 3145):    at com.google.android.gms.internal.a$a$a.a(Unknown Source)
W/System.err( 3145):    at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
W/System.err( 3145):    at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
W/System.err( 3145):    at com.xxxxx.Backend.obtainSheetKeyAndInitService(Backend.java:112)
W/System.err( 3145):    at com.xxxxx.Backend.fetchColumns(Backend.java:103)
W/System.err( 3145):    at com.xxxxx.ProgressActivity$DummySectionFragment$3.doInBackground(ProgressActivity.java:288)
W/System.err( 3145):    at com.xxxxx.ProgressActivity$DummySectionFragment$3.doInBackground(ProgressActivity.java:1)
W/System.err( 3145):    at android.os.AsyncTask$2.call(AsyncTask.java:264)
W/System.err( 3145):    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
W/System.err( 3145):    at java.util.concurrent.FutureTask.run(FutureTask.java:137)
W/System.err( 3145):    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
W/System.err( 3145):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
W/System.err( 3145):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
W/System.err( 3145):    at java.lang.Thread.run(Thread.java:856)

修改

由于报告这个错误的时间:

As of time of reporting the bug:

  • google_play_services-lib中的android:VERSIONNAME =65年2月3日(834000-30)
  • 在谷歌播放服务版本的设备4.0.31

更新库4.0.30,并添加请求允许的体现,这似乎已经奏效。等待谷歌,以确认新的库版本修复了这个问题,因为添加了新的许可是一种极不可取的修复。

Updated library to 4.0.30 and added requested permission to Manifest which seems to have worked. Waiting for Google to confirm that new library version fixes this issue because adding a new permission is a highly undesirable fix.

错误报告:<一href="http://$c$c.google.com/p/android/issues/detail?id=61934">http://$c$c.google.com/p/android/issues/detail?id=61934

推荐答案

今天二〇一三年十一月十四日出现了大幅回落,我们已经因收到此异常错误报告的数量。我也看到谷歌播放服务4.0.33版本已经出来了,我没有注意到什么时候的释放,但它看起来像昨天。

Today 2013-11-14 there has been a large drop in the number of error reports we have received due to this exception. Also I see Google Play Services version 4.0.33 is out, I didn't notice exactly when that released but it looks like yesterday.

也许,谷歌发布了4.0.33修复?这将是伟大的!

Perhaps Google released a fix in 4.0.33? That would be great!

如果有人已经能够重现此错误,请让我们知道,如果4.0.33修复你的。 (我们从来没有能够重现bug一个开发设备上,虽然我们已经从我们的安装基础痕迹不计其数。)

If anyone has been able to reproduce this bug, please let us know if 4.0.33 fixes it for you. (We have never been able to reproduce the bug on a dev device, although we have have zillions of traces from our installed base.)

[更新]谷歌肯定已经推了修复,我们只有少数报告在11/15和零上11/16

[UPDATE] Google has definitely pushed a fix, we had only a handful of reports on 11/15 and zero on 11/16

这篇关于GoogleAuthUtil.getToken SecurityException异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆