Prior to Android M there was something called sleep mode in Android. With Android M Google introduced the so called Doze Mode. Can anyone please elaborate the difference between these modes?
-
1There was nothing particularly similar to Doze on android versions prior to M. Are you referring to sleep mode as - DND / Alarms Only / Priority mode?– bluerenCommented Jun 28, 2016 at 7:02
-
I believe Application Processor has to sleep whenever it is idle in order to save battery/power. So sleep in prior Android M versions was more from CPU perspective that I'm referring to. But, with Android M Doze Mode feature is something which has been incorporated from Android OS perspective(maybe, in order to help the CPU sleep for longer period).– WranglerCommented Jul 7, 2016 at 15:49
1 Answer
Sleep Mode - means CPU will be sleeping and will not accept any command except from RIL(Radio Interface Layer) and alarms. CPU will go to sleep mode with in fraction of seconds after LCD is turned off.
Doze Mode - means that apps on your phone will have no network access, the system will ignore “wakelocks” when apps try to keep the device from going to sleep, and no background tasks will be allowed to run. That certainly makes it sound like your phone won’t do you much good, but there are a few ways Doze preserves functionality. While apps can’t wake the device up to run sync jobs and other background tasks, high-priority push messages will still show up. So for example, a Hangouts message will appear on a device that’s in Doze mode.
App Standby - an app that goes into standby loses all network access and all its background sync jobs are suspended. These restrictions are temporarily lifted when your phone is plugged in and for a few minutes every day or two. This gives suspended apps a chance to run any pending sync jobs, but they won’t be allowed to continue running. A high-priority push notification will also be able to wake an app from standby for a short time.
Read more here
-
I doubt that "CPU will go to sleep mode with in fraction of seconds after LCD is turned off", doesn't align with my experience at all– ssynhtnCommented Jun 20, 2021 at 18:41