AFAIK, this Intent not passed to Service any way.
Instead of stopService() you can use startService() to pass in your extra functions and enable something there, which is why your service calls stopSelf() . This will have the pure effect of calling stopService() and providing additional data at the same time.
source share