Presentation is loading. Please wait.

Presentation is loading. Please wait.

Wakelock detector 1.5.* UzumApps Copyright 2013.

Similar presentations


Presentation on theme: "Wakelock detector 1.5.* UzumApps Copyright 2013."— Presentation transcript:

1 Wakelock detector 1.5.* UzumApps Copyright 2013

2 Did this ever happen to you?
next morning... 50% must be enough until tomorrow morning. Time to sleep zzzzz

3 or this? screen turns on.. No new Messages 4:00 AM zzzz
new msg from gf? screen turns on.. No new Messages

4 What is wakelock? Basically, whenever there is no User Interaction, android device enters into Sleep mode, in which the device uses the minimum power. Before entering sleep mode: The screen dims Screen (also hardware key LED) turns off Finally the CPU goes into the sleep mode. That is called deep sleep mode. Wakelock is the Android feature which can be used by developers to override deep sleep mode and control power management of device: turn on cpu, turn on screen, turn on hardware key LED

5 Why wakelock is bad? It enables apps to do tasks transparently in the background, without user's awareness. Which might waste battery power, network data and other resources. Apps can switch on the screen without user's intention. This can be quite annoying for the users. Buggy apps. Whenever the wakelock acquired, it must be released, otherwise it can cause sleepless(insomniac) phone. The phone's CPU keeps running or the screen won't turn off

6 Who benefits from our Wakelock Detector(WLD)?
People who suffer from extreme battery drain, even when they are not using phone(this is caused by partial wakelocks) People who are annoyed by random Screen wake-ups (this one caused by full-wakelocks) People who dont know which app is keeping their screen on continuously (this one caused by unreleased wakelocks of developers)

7 Types of Wakelocks Android PowerManager supports 4 kind of wakelocks for developers, which are used in acquire/release method : Wakelock Type CPU Screen Keyboard PARTIAL_WAKE_LOCK On* Off SCREEN_DIM_WAKE_LOCK On Dim SCREEN_BRIGHT_WAKE_LOCK Bright FULL_WAKE_LOCK Note: PARTIAL_WAKE_LOCK must be released by developer Other wakelock types(screen related wakelocks) are released automatically when the user presses Power Button By using ACQUIRE_CAUSES_WAKE_UP flag developers can turn on the screen while acquiring one of these wakelock types Above wakelock types belongs to PowerManager. Also there is another wakelock type "Window wakelock" which belongs to WindowManager. This wakelock is managed by android os. It is well recomended for developers to keep screen on.

8 What we get from BatteryStats internal class?
Currently we are retrieving 3 type of wakelock statistics from "BatteryStats" internal class : CPU related PARTIAL_WAKE_LOCK Screen related SCREEN_DIM_WAKELOCK SCREEN_BRIGHT_WAKELOCK FULL_WAKELOCK Window wakelocks(deprecated) Window wakelock - which is managed by Android OS

9 Since when wakelock Statistics in Wakelock Detector are gathered
The Battery management system of Android resets gathered battery usage statistics(including wakelock statistics), whenever: reboot phone unplug USB cable when battery level above 90% By default our program shows statistics since it was reset(see above). Although user can change to "Since USB cable unplug" in Settings window, this is useful when you need to see frequent changes in wakelock behaviour.

10 Locale We are opening common excel file for anyone to translate Wakelock detector into their own language. LINK

11 Any ideas? If you have any more ideas to add, or things you want to change, let us know at ! Thanks!


Download ppt "Wakelock detector 1.5.* UzumApps Copyright 2013."

Similar presentations


Ads by Google