I want to implement the service in the application.
Added in its manifest
<service android:name=".tools.services.MyService" android:enabled="true" android:exported="true"> </service> Highlights the word service and says that if I do not add permission, it will not work
If you want to specify the option of exported = false), you can’t. Without this, any application can use this service.
If I press Alt + Enter and add what it asks, it turns out like this
<service android:name=".tools.services.MyService" android:enabled="true" android:exported="true" android:permission=""> </service> But what do you need to add to android:permission="" ?
android:exported="false"- ermak0ff