How Android Doze Works, and How to Tweak It to Save Your Battery


How Android Doze Works, and How to Tweak It to Save Your Battery Your smartphone does so much that it feels impossible to get through the day on a full charge. It doesn’t have to be that way, though. Android’s Doze feature, introduced in Marshmallow and refined in Nougat, keeps battery drain low when you’re not using your phone. In Android, apps have the ability to use what’s called a “wakelock” to prevent your phone from going into a power-saving deep sleep mode. This deep sleep mode usually kicks in when your phone’s screen is off, but that can get in the way of how some apps work. For example, if you’re using a fitness tracker, you don’t want your phone turning off GPS or your accelerometer just because your phone is in your pocket with the screen turned off. In principle, this is a good concept. Apps keep your phone awake and working when they need to, and let it sleep when they don’t. This is a problem, though, when every developer thinks their app is important enough to keep your phone on all the time. That’s why apps like Facebook kill your battery, even when you’re not using them. Doze helps solve this problem by periodically blocking wakelocks and shutting off network access if your phone goes unused for a while. It will then periodically allow apps to check in during “maintenance windows” every so often (these windows occur less frequently the longer you don’t use your device). See how to tweak it for Marshmallow and Nougat at http://ift.tt/2c8mdYe

Comments