Wake lock
Keeps the CPU or screen awake.
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
| Android | iPhone | |
|---|---|---|
| Status | Supported | Supported |
| First version | Android 1.0 (API 1) | iOS 2.0 |
| Permission or entitlement | WAKE_LOCK | none |
| Protection level | normal | none |
| How access is granted | install | none |
| What the user sees | None (granted at install) | None |
| How long it lasts | Not revocable | n/a |
| How to take it back | n/a | n/a |
| Store policy | Play: Android vitals tracks excessive partial wake locks | none |
| API | PowerManager.WakeLock | UIApplication.isIdleTimerDisabled |
| Notes | Doze 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
| Type | Example | Apps |
|---|---|---|
| video | A streaming app keeps the screen on during a movie so it does not dim. | Netflix, YouTube |
| maps | A navigation app keeps the screen and brain awake on a road trip. | Google Maps |
| fitness | A run tracker keeps recording when the screen is off. | Strava |
| games | A game keeps the screen awake during a match so it does not lock. | Fortnite |
| productivity | A recipe or teleprompter app keeps the page lit. | None named |
| messaging | A video call keeps both screen and processor awake during the call. | Zoom |
| developer | A 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
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2015-10, Android 6.0 (API 23): Doze limits wake lock effect
Related capabilities
Related
- 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.