Java.lang.SecurityException: not allowed to start Intent service

I get the following exception from users on google play:

java.lang.SecurityException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gsf (has extras) } without permission com.google.android.c2dm.permission.RECEIVE

Within 8 months, I uploaded my application to the market, and this is the first time I have received this exception. Can someone tell me how this exception happened all of a sudden and what is it? I searched the net but couldn’t find anything. Please, help.

+5
source share
1 answer

Since there were no target filters in the manifest for this, the default service for android: exported was false. When you set android: exported = "true" another application will be able to start the Service.

http://developer.android.com/guide/topics/manifest/service-element.html#exported

+2

All Articles