简体   繁体   English

java.lang.SecurityException:不允许启动服务意图

[英]java.lang.SecurityException: Not allowed to start service Intent

I am getting the following exception from the users on google play: 我从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. 我已经在市场上上传了我的应用程序已经8个月了,这是我第一次遇到这种例外情况。 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. 请帮忙。

Since there were no intent filters specified in the manifest for this Service the default for android:exported was false. 由于清单中没有为此服务指定意图过滤器,因此android:exported的默认值为false。 When you set android:exported="true" the other application will be able to start the Service. 当您设置android:exported =“ true”时,其他应用程序将能够启动服务。

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.lang.SecurityException:不允许启动服务意图 - java.lang.SecurityException: Not allowed to start service Intent 无法启动辅助服务:java.lang.SecurityException:不允许启动服务意图 - Unable to start aidl service : java.lang.SecurityException: Not allowed to start service Intent java.lang.SecurityException:未经许可,不得启动服务意图BIND_INPUT_SERVICE - java.lang.SecurityException: Not allowed to start service Intent without permission BIND_INPUT_SERVICE java.lang.SecurityException:不允许停止服务Intent? - java.lang.SecurityException: Not allowed to stop service Intent? 无法获取主令牌-java.lang.SecurityException:不允许启动服务意图 - Unable to get master token - java.lang.SecurityException: Not allowed to start service Intent java.lang.SecurityException:不允许在android API级别23中启动服务意图错误 - java.lang.SecurityException: Not allowed to start service Intent error in android api level 23 Android GCM错误:java.lang.SecurityException:不允许启动服务意图{act = com.google.android.c2dm.intent.REGISTER} - Android GCM error: java.lang.SecurityException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.REGISTER } java.lang.SecurityException:不允许绑定到服务 - java.lang.SecurityException: Not allowed to bind to service Android:java.lang.SecurityException:权限拒绝:启动意图 - Android: java.lang.SecurityException: Permission Denial: start Intent CSipSimple-java.lang.SecurityException:权限拒绝:不允许发送广播android.intent.action.Phone_State - CSipSimple - java.lang.SecurityException : Permission Denial: not allowed to send broadcast android.intent.action.Phone_State
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM