The new Doze
mode on Android 6
disables nearly every useful background activity. I have an app, which regularly woke up the device (even if no lock screen), kept a partial wake lock, did some scans and reported that to the Internet. It is not a spy app - this operation is on purpose and known to users of the app.
Right now with Android 6
it doesn't work anymore, because the Doze
mode prevents the final communication with my servers.
I found a new setting under "Battery", which did allow me to put my app on a list of those app, which did not support "battery optimization". In the first tests it seemed, that this was making my app run again.
After some additional tests I found, that even my app was not supporting Doze
, it didn't work anymore in background.
Isn't this setting supposed to disable Doze
for particular apps?
Details to Doze here http://www.androidpolice.com/2015/06/01/android-m-feature-spotlight-this-is-exactly-how-doze-reduces-battery-drain/