Skip to Content
Platform.Ontology

Wake lock

Keeps the CPU or screen awake.

Does something on your deviceNotifications and backgroundPowerAndroid and iPhoneWhile you use itIn the background

In one line

Can keep your phone's processor awake on Android, or the screen on iPhone

Keeps the CPU or screen awake.

Prevents sleep and drains battery. Android flags apps that hold long wake locks in Android vitals.

What it can and can't do

What the user does: Nothing. It happens during a download, a video, a workout or a call

It can

  • Keep the screen on during a video or recipe on iPhone
  • Keep the processor running so a task can finish on Android
  • Be allowed at install without a prompt on Android

It cannot

  • Keep the processor awake on iPhone; it only keeps the screen on
  • Always beat Doze and App Standby, which ignore wake locks in some states
  • Hold the phone awake after the task is over without draining the battery

How it differs between platforms: Android has a CPU wake lock granted at install. iPhone can only keep the screen awake.

On Android and iPhone

AndroidiPhone
StatusSupportedSupported
First versionAndroid 1.0 (API 1)iOS 2.0
Permission or entitlementWAKE_LOCKnone
Protection levelnormalnone
How access is grantedinstallnone
What the user seesNone (granted at install)None
How long it lastsNot revocablen/a
How to take it backn/an/a
Store policyPlay: Android vitals tracks excessive partial wake locksnone
APIPowerManager.WakeLockUIApplication.isIdleTimerDisabled
NotesDoze and App Standby ignore wake locks in some states.Screen wake only; no CPU wake lock.

Data you get

What comes back: Wake lock held
Shape: event
How often: duration

No individual data fields. The signal is the access itself.

Technical limits

  • Doze ignores wake locks
  • Screen wake only on iOS

The story

What it is

Lets an app keep the phone's brain or screen awake instead of letting it sleep.

For you

You see the screen stay on while you watch a video or follow a recipe. Quietly, an app can also keep the phone awake in your pocket, which drains the battery.

For makers

Makers use it to keep playback, downloads and uploads from being cut off. Google watches wake lock time closely because a bad one is a top cause of battery complaints.

Where you see it

TypeExampleApps
videoA streaming app keeps the screen on during a movie so it does not dim.Netflix, YouTube
mapsA navigation app keeps the screen and brain awake on a road trip.Google Maps
fitnessA run tracker keeps recording when the screen is off.Strava
gamesA game keeps the screen awake during a match so it does not lock.Fortnite
productivityA recipe or teleprompter app keeps the page lit.None named
messagingA video call keeps both screen and processor awake during the call.Zoom
developerA developer uses the Android vitals dashboard to find which apps hold wake locks too long.None named

Risks

  • Drains battery
  • A stuck wake lock can keep the phone warm

Android and iPhone in short

  • Android: Granted at install. Doze and standby ignore wake locks in some states.
  • iPhone: iOS only lets apps keep the screen awake. There is no wake lock for the processor.

What the platform says

  • Google: Wake locks. Google tells developers to use wake locks sparingly and flags apps that hold them too long in Android vitals.

Good uses and abuse

Legitimate uses

  • Media playback

Known abuse

  • Battery drain

Scores

ScoreValueMeaning
Sensitivity1 of 5How revealing the data is
Utility3 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bitsNot ratedRough identifying entropy, when known

History

  • 2015-10, Android 6.0 (API 23): Doze limits wake lock effect
  • Foreground service. Can run long tasks on Android with a visible notification, but only for a stated purpose

Same idea on the web

  • Screen Wake Lock. Can keep your screen on while the page is showing, but not in the background
  • Screen Wake Lock. Can keep your screen awake while the tab is open and showing

Sources

How well checked: Based on official documentation.

On this page