App Standby Buckets is a feature introduced in Android 9 Pie that allows the system to manage app resources more efficiently by categorizing apps into different "buckets" based on user interactions. This feature helps enhance performance and battery life by controlling how frequently apps can run and access network resources while in the background. Here's how it works and some tips to enhance performance using App Standby Buckets:
App Standby Buckets Categories
-
Active:
- Apps in active use or those showing activity on the screen fall into this bucket.
- The system applies the fewest restrictions on these apps.
-
Working Set:
- Apps that are used regularly but not currently active.
- These apps have moderate restrictions on network and background tasks.
-
Frequent:
- Apps that are used often but not daily.
- Background tasks and access to resources are more limited than the Working Set.
-
Rare:
- Apps that are rarely used.
- These have the most restrictions on jobs, alarms, and network access.
-
Restricted:
- Apps that have been manually restricted by the system or user.
- The system imposes strict restrictions on these apps.
Tips for Developers
-
Optimize for Buckets: Adjust your app’s behavior based on the bucket it's in. For example, you might defer less important background tasks for apps in the Frequent or Rare buckets.
-
Use WorkManager: Leverage Android’s WorkManager to schedule background tasks efficiently. WorkManager respects standby bucket restrictions and helps perform background work accordingly.


