When to use READ_GSERVICES permission?

纵饮孤独 提交于 2019-12-05 18:01:45

问题


I have an application which uses Google Play Services for GCM and ads. My last update added an in-app billing and I received a crash report for :

java.lang.SecurityException: attempting to read gservices without permission: 
Neither user 10237 nor current process has 
com.google.android.providers.gsf.permission.READ_GSERVICES.

I never had this problem before, nor did I when I tested my application with IAP. It only happens on one device (Xperia Z, surely the same user). When I search for this permission, it is referred on the Google's doc only for Maps API which says it "Allows the API to access Google web-based services.". But it is not mentioned for GCM implementation, ADs or on the Google Play Services pages.

So, do I really need this permission? Or is it a bug (maybe from the manufacturer) on the device end?


回答1:


Duplicate of: java.lang.SecurityException: attempting to read gservices without permission

This is a bug introduced on the last Google Play Services release (4.3), unfortunately we will have to wait for a fix:

https://groups.google.com/forum/#!topic/google-admob-ads-sdk/sePctoDJbRg%5B101-125-false%5D



来源:https://stackoverflow.com/questions/22682538/when-to-use-read-gservices-permission

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