<service android:name=".RecentTaskService" android:permission="xxx.xxx.xxx" android:exported="true"> <intent-filter> <action android:name="xxx.xxx.xxx" /> </intent-filter> </service>
The bound service needs to set the attribute exported = true in the node;
If permission is set for the bound service, you need to declare permission when binding the service
<permission android:name="xxx.xxx.xxx" /> <uses-permission android:name="xxx.xxx.xxx" />