5 ms·
> Battery - We’re making Android devices smarter about managing power through a new feature called Doze. With M, Android uses significant motion detection to le
by heyheyhey 11y ago
> Battery - We’re making Android devices smarter about managing power through a new feature called Doze. With M, Android uses significant motion detection to learn if a device has been left unattended for a while. In this state, Android will exponentially back off background activity, trading off a little bit of app freshness for longer battery life.
Will this improve wakelock performance that has been plaguing Android for years?
- jaredmcateer 11y agoThe keynote claimed they took two identical Nexuses side by side with Lollipop and M loaded it up with a bunch of common apps. The standby battery time with M was around double.
- sumitviii 11y ago*Up to double.
- digi_owl 11y agoApparently apps could use priority notifications got wake devices up early. Expect Facebook and the rest to go priority priority priority...
- NeutronBoy 11y agoThe user sets which applications are 'priority' applications.
- kllrnohj 11y agoWakelocks have just been a scapegoat for people to pretend to sound smart when just saying that they want better battery life. They haven't actually been an issue for years. No, this won't magically fix bugs in apps that lead to poor battery life. If an app opens the camera and forgets to close it, yeah that's gonna murder your battery.
- serve_yay 11y agoThat shouldn't even be possible IMO.
- kllrnohj 11y agoI, too, would love to live in a world where it's impossible to write bugs. Things would be so much nicer if Google could just solve the halting problem already. Sadly it's more likely I'll just get some stupid pony instead.
- pas 11y agoThe OS manages resources. It can temporarily grant (exclusive) control of a resource to an application. It can measure your other resource activity (touchscreen). If not touch screen activity for a long time, or when simply the screen is locked, then why is the camera on? Sure, it can be a spy app, designed to listen and record! But then the OS can expose a per-app maximum wake setting. Yes, it'd look like a spreadsheet instead of a happy user UI, but that'd be a solution, instead of this "oh we can't do anything" excuse.
- sangnoir 11y ago> If not touch screen activity for a long time, or when simply the screen is locked, then why is the camera on? Because the OS shouldn't be making assumptions about applications' interaction models. People tend to write apps that OS creators never dreamed about. There are legitimate reasons for resource usage (camera) to continue without user interaction.From the top of my head, I can imagine writing a baby-monitor app that uses camera to stream video to my phone in the other room using wifi. The resource-limiting heuristics have to be impossibly good, otherwise it gets in the way of useful apps.
- jordanthoms 11y agoOne way of handling this is to have a separate permission - Use camera, which allows an app to use it for a limited time with the user interacting and while in foreground, and a 'Background Camera' permission which your baby-monitor app would request. Perhaps make the permissions dialog for the background permission scarier so developers have an incentive to use the less privileged permission. This would work nicely for GPS etc - sure, I want to be able to have My Tracks keep GPS on for 3 hours, but I don't need Uber to be able to do that - and their app has a nasty habit of forgetting to turn the GPS off if you leave it at the wrong time.
- tdkl 11y ago> Will this improve wakelock performance that has been plaguing Android for years? "Unsurprisingly, there are three apps set to ignore battery optimization by default—Google Play Services, the Play Store, and Download Manager."[1] So, nope. GPS will continue to do whatever they want and poll location every 60s. [1] http://www.androidpolice.com/2015/05/28/android-m-feature-spotlight-the-low-power-doze-mode-can-be-turned-on-and-off-on-a-per-app-basis/ http://www.androidpolice.com/2015/05/28/android-m-feature-sp...