How does doze mode affect background/foreground services, with/without partial/full wakelocks?

Processes which have a current running foreground service are supposed to be unaffected by Doze. Bound/unbound, started/not-started, and wakelocks do not affect this whitelisting process. However, there is an issue on Android M devices where foreground services are not properly whitelisted when the foreground service is the in the same process as the top activity … Read more