User: Password:
|
|
Subscribe / Log in / New account

Blocking suspend blockers

Blocking suspend blockers

Posted May 21, 2010 23:17 UTC (Fri) by vonbrand (guest, #4458)
In reply to: Blocking suspend blockers by brendan_wright
Parent article: Blocking suspend blockers

Ever heard of dancing pigs? Fat chance that the end user will ever make an informed decision on installing an application calling for this then...


(Log in to post comments)

Blocking suspend blockers

Posted May 22, 2010 1:53 UTC (Sat) by swetland (guest, #63414) [Link]

It is true that users are well-trained to keep clicking until they get whatever it is that they're after, but the way we use suspend blockers in Android includes more than just warning users that the app may "prevent the device from sleeping":

- Applications that don't specifically need to prevent suspend don't request the permission, and the vast majority of apps fall into that category. The user obtains benefit here in that if non-suspend-blocking apps perform poorly, they only do so while the device is awake, which we attempt to minimize.

- Applications that keep the device awake must use suspend blockers and the statistics from their use allows us to answer the "Why is my battery running low?" question by pointing out apps that are contributing to poor battery life. The "battery low, please plug in the charger" notification has had a "Why?" button since Android 2.0, to help users discover the "what apps are using up my battery" panel.

So yes, users will certainly get their dancing pigs (or bouncing cows), especially on a platform that has no restrictions on app installation, but we can certainly help the user still have a positive experience, or at the least, understand what the cause of their negative experience is.

Blocking suspend blockers

Posted May 22, 2010 2:30 UTC (Sat) by dlang (subscriber, #313) [Link]

do the statistics tell you how long an app has blocked suspend? how many times it's done so? what percentage of the time?

a long running app that uses suspend blockers only where needed could still show up as a top item for total time blocked or how many times it's blocked.

Blocking suspend blockers

Posted May 22, 2010 3:15 UTC (Sat) by swetland (guest, #63414) [Link]

The battery statistics service tracks number of times acquired, total realtime (aka walltime) held, etc. Here's a sample from a typical bugreport. The user facing UI is, of course, friendlier looking: http://frotz.net/misc/battery-stats-unplugged.txt

It starts with an overview then provides a UID-by-UID and process-by-process breakdown of wakelocks, cpu time, sensor usage, etc.

Blocking suspend blockers

Posted Jun 1, 2010 20:11 UTC (Tue) by Duncan (guest, #6647) [Link]

Thanks for the link to a real log. That's one thing I'd not seen in all this discussion.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds