Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.SecurityException: Not allowed to start service Intent

I am getting the following exception from the 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

Its been 8 months that I have uploaded my app on market and this is the first time I have got this exception. Can anyone tell me, how this exception came all of a sudden and what this is about. I searched the net but couldn't find anything. Please help.

like image 696
Rookie Avatar asked Sep 13 '12 08:09

Rookie


1 Answers

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

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

like image 89
Vipul Purohit Avatar answered Oct 24 '22 21:10

Vipul Purohit