问题
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