I've implemented a WearableListenerService
in both my main app and the companion Wear app. In the manifests, the service needs to be declared as android:exported="true"
(or not declared at all and left to default to true
) since it's started by Google Play Services. An exported service with no permissions can be called by any app on the system, but I can't find the correct permission to add to the service declaration to secure it. I've looked through the permissions on both the phone and the Wear device with pm list permissions
but I don't see anything that looks like what I need.
- Is there a permission that I can/should add to secure my services?
- If not, is it a good idea to manually secure the service by checking the package name of the caller?