App Standby Buckets

On this page 7

App Standby Buckets are an Android power management mechanism that places every installed app into a priority group based on how recently and how often the user engages with it, and then limits the app’s background jobs, alarms and network access according to that group. Introduced in Android 9 (API level 28), the feature is a core concept of mobile performance because it decides how much background work an app can actually perform on a real device.

The mechanism complements Doze mode, which restricts the whole device when it sits idle, and the broader background execution limits that Android applies to services. Where Doze reacts to the state of the device, App Standby Buckets react to the relationship between the user and a single app, so two apps on the same phone can receive very different treatment at the same moment.

How Android assigns apps to standby buckets

Android assigns each app to a bucket by observing usage signals such as launches, visible activities, notification interactions and foreground services. An app that the user opens right now lands in the Active bucket, and it moves gradually toward stricter buckets as days pass without engagement.

The assignment logic is not fully specified by the platform. Stock Android uses time-based heuristics, while devices with Adaptive Battery apply an on-device machine learning model that predicts when the user is likely to open each app. Device manufacturers may also adjust the policy, so the same app can sit in different buckets on different phones.

The following table summarizes the standard buckets and the behavior that typically places an app in each one.

BucketConstant valueTypical triggerRestriction level
Active10App in use or used moments agoMinimal
Working set20Used regularly, but not right nowMild
Frequent30Used often, but not every dayModerate
Rare40Rarely openedStrong
Restricted45Excessive resource use or long inactivitySevere
Standard standby buckets and typical triggers

The Restricted bucket arrived in Android 12 (API level 31). The system can place an app there when it consumes system resources excessively, and the user can force the same effect by choosing the restricted battery setting for the app. A fresh app that has never been launched is treated even more strictly, because the system has no evidence that the user wants it to run at all.

Resource limits applied in each bucket

Each bucket defines quotas for deferrable background work, chiefly scheduled jobs from JobScheduler and WorkManager, alarms from AlarmManager and network access while in the background. Android 9 expressed the limits as maximum deferral delays, while Android 12 and later express them mainly as execution time windows and alarm counts.

The values below are representative of recent Android releases and help explain observed behavior. They change between versions and may differ on vendor builds, so they should guide expectations rather than serve as guarantees.

BucketJob executionAlarmsBackground network
ActiveAbout 20 minutes per rolling hourNot limitedAllowed
Working setAbout 10 minutes per 4 hoursAbout 10 per hourAllowed
FrequentAbout 10 minutes per 12 hoursAbout 2 per hourAllowed
RareAbout 10 minutes per 24 hoursAbout 1 per hourDisabled
RestrictedAbout one 10-minute window per dayAbout 1 per dayDisabled
Representative limits on recent Android versions

Several conditions lift or soften the limits. When the device is charging, bucket restrictions on jobs and alarms are generally not enforced. Apps on the user’s battery optimization exemption list also escape most bucket quotas, and an app running a legitimate foreground service is considered active while the service runs.

App Standby Buckets are one layer in a stack of power controls, and developers often confuse them with neighboring features. Understanding which layer is responsible for a delayed job is the first step in diagnosing it.

MechanismScopeTriggerMain effect
App Standby BucketsPer appUser engagement historyQuotas for jobs, alarms and network
Doze modeWhole deviceScreen off, stationary, unpluggedBatches work into maintenance windows
Background execution limitsPer appApp enters the backgroundBlocks background services and implicit broadcasts
Battery optimization settingPer appUser or system choiceExempts or restricts an app explicitly
Wake lock controlsPer appHeld partial wake locksFlags or limits excessive CPU wakeups
How standby buckets differ from neighboring mechanisms

The mechanisms combine rather than replace each other. A job from an app in the Rare bucket on a dozing device must wait for both a Doze maintenance window and an available bucket quota, which explains why some background tasks run many hours later than requested.

Designing apps that behave well in every bucket

The robust strategy is to assume the app may sit in a strict bucket at any time and design background work to tolerate long deferral. Work that must happen immediately should be triggered by the user or delivered through a high-priority push message that leads to visible user value.

Developers can read the current bucket with UsageStatsManager.getAppStandbyBucket() and log it alongside job outcomes. For testing, the command adb shell am set-standby-bucket forces an app into a chosen bucket, and adb shell am get-standby-bucket confirms the result, which makes deterministic reproduction of deferral bugs possible.

The decision table below maps common background needs to approaches that survive bucket limits.

Background needRecommended approachReason
Periodic content syncWorkManager with constraintsDefers gracefully and respects quotas
Urgent incoming messageHigh-priority push with a notificationDelivers promptly without polling
Long user-started transferForeground service or user-initiated jobTreated as active work
Exact reminder at a set timeExact alarm with the required permissionLimited alarms still fire on time
Analytics uploadBatched job on unmetered network and chargingRuns when limits are relaxed
Choosing a background strategy under bucket limits

Common mistakes and misconceptions

Most problems with App Standby Buckets come from testing only on a developer device, where the app is constantly in the Active bucket. Real users open the app far less often, so background work that looks reliable in development can silently stall in production.

  • Assuming a periodic job runs on schedule: in the Rare bucket, a 15-minute periodic job may run only once a day.
  • Asking every user for a battery exemption: Google Play policy permits the exemption only for narrow use cases, and abuse can lead to removal.
  • Abusing high-priority push messages: messages that never produce a visible notification can be downgraded to normal priority.
  • Ignoring the Restricted bucket: an app with heavy wake lock or network use can be demoted by the system, not only by inactivity.
  • Blaming the operating system for poor engagement: a strict bucket usually reflects how users actually value the app.

Monitoring Android vitals for excessive wakeups and stuck wake locks helps avoid system demotion, while server-side metrics on sync latency per bucket reveal how much deferral real users experience.

The idea in brief

Android watches which apps a person really uses. Apps opened every day get generous permission to work in the background, while apps that sit untouched for weeks get only small, rare time slots.

Think of a busy office receptionist who answers calls from regular clients at once but asks rare callers to wait for a quiet moment. The phone saves battery the same way: the less an app is used, the more its background activity is postponed. For app makers, the lesson is simple: build features that still work when background tasks run late.

A practical scenario

A team maintains a weather app that refreshes forecasts with a periodic job every 30 minutes. Support tickets report stale forecasts, but engineers cannot reproduce the issue on their own phones, where the app is always in the Active bucket.

The team logs the result of getAppStandbyBucket() with every job run and discovers that about 40 percent of users sit in the Frequent or Rare bucket, where refreshes happen only a few times per day. Forcing a test device into the Rare bucket with adb shell am set-standby-bucket reproduces the problem immediately.

The fix has three parts: the app now refreshes on launch, severe weather alerts arrive through high-priority push messages with a visible notification, and the routine sync moves to WorkManager with relaxed timing. Complaints about stale data drop sharply, and battery use per user falls because the app no longer fights the system’s quotas.