SecurityException: Not allowed to start service Intent

第三方app 调用远程service 时,如果 manifest.xml 中service 节中为配置 intent-filter 节点,就会报

SecurityException: Not allowed to start service Intent  // SecurityException: Not allowed to bind service Intent

 

正确调用如下:

 

android:name="AlizeRecognitionService">
>

android:name="com.bime.alizerecognition.AlizeRecognitionService"/>

 

如果只是下面这样,在本app中调用该service 是没问题的,给第三方app调用就会报上述错误,相当于一种隐式的权限公开声明

 

android:name="AlizeRecognitionService">

你可能感兴趣的:(SecurityException: Not allowed to start service Intent)