0

If so, can I block all third-party app wakelocks since I want the apps to run only when my screen is on?

I understand that this would break some functionality like receiving whatsapp messages when screen is off, but I am fine with it.

0

Are wakelocks only when screen is off?

No

Quoting from Android Developers

A wake lock is a mechanism to indicate that your application needs to have the device stay on

The following wake lock levels are defined, with varying effects on system power. These levels are mutually exclusive - you may only specify one of them.

enter image description here

  • As you can see from the picture partial wakelocks will continue to run irrespective of state of screen.

I want the apps to run only when my screen is on?

This should be possible using but I haven't tried. Another alternative is using a task killer like [root] Servicely to choose and selectively kill apps when the screen is on.

Note: Task killers are not recommended for reasons mentioned here Do I really need to install a task manager? and various other answers in tag

For further reading: Wakelocks: Detect No-Sleep Issues in Android* Applications

  • I have used servicely to control wakelocks despite the warning not to use it- the trick is in carefully configuring it once you identify your offending app – beeshyams May 9 '16 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.