I made an app to display battery and network info in the status bar. For over 10 months the app did a 100% reliable job on a Nexus 6P (Marshmallow).
After I switched to a Pixel (Nougat 7.1.2) I recognised that the service seems to be getting stopped by the OS. The values in the status bar showing some old state.
Sadly I do not get an error and the issue comes up very rarely (less than once a week).
I already updated to buildToolsVersion '25.0.2'
The project on GitHub.
Please let me know, if you have any idea how to fix or investigate.