第三方app 调用远程service 时,如果 manifest.xml 中service 节中为配置 intent-filter 节点,就会报
SecurityException: Not allowed to start service Intent // SecurityException: Not allowed to bind service Intent
正确调用如下:
<service android:name="AlizeRecognitionService">
<intent-filter >
<action android:name="com.bime.alizerecognition.AlizeRecognitionService"/>
</intent-filter>
</service>
如果只是下面这样,在本app中调用该service 是没问题的,给第三方app调用就会报上述错误,相当于一种隐式的权限公开声明
<service android:name="AlizeRecognitionService">
</service>