How to use Battery Optimization (Doze mode) in Android Marshmallow?
Doze mode is a new battery saving feature launched in Android Marshmallow. Here is what the Android Developer Docs say about Doze mode:
'If a user leaves a device unplugged and stationary for a period of time, with the screen off, the device enters Doze mode. In Doze mode, the system attempts to conserve battery by restricting apps' access to network and CPU-intensive services. It also prevents apps from accessing the network and defers their jobs, syncs, and standard alarms.
Periodically, the system exits Doze for a brief time to let apps complete their deferred activities. During this maintenance window, the system runs all pending syncs, jobs, and alarms, and lets apps access the network.'
But you might have certain apps that you want to run at all times. Follow the below steps to exclude an app from entering the Doze mode:
- Go to settings>>battery
- Open menu by tapping the menu icon ()
- Tap 'Battery optimization'
- Select 'All apps' from the dropdown
- Tap any app that you want to exclude
- Select 'Don't optimize' and confirm by tapping 'Done'