Android 13 Battery & Performance

How Performance & Battery are improved in Android 13

Google has improved Android features over the years and every new version came with some improvement. Android 13 introduced some new features that have enhanced performance and battery usage. The battery capacity for android devices has been increased by vendors, but the software role is as much as important as the hardware is. Then, Google has been trying to provide better battery management. Battery management has been tied to process/services management and we’re going to cover both of them here. I discussed the other improvements such as security & privacy, user interface and etc in separate posts. Let’s discuss some Android 13 performance improvements.

Stop foreground service via notifications

This new feature lets users stop Foreground Services (FGS) from the notification panel. A list of apps that run foreground services and are labelled as Active apps with a stop button is accessible from the notification panel. By stopping the app the following actions occur:

  1. The entire app will be stooped and removed from memory. ( Not only the FGS)
  2. The app’s activity back stack will be removed by the system.
  3. Any notification associated with FGS will be removed.
  4. But the app won’t be removed from history.
  5. Scheduled jobs are preserved.
  6. Alarms are preserved.
  7. if there’s any media playback it will be stopped.

There’re 2 exemptions. Some types of apps won’t e listed in the FGS list and some of them won’t have any stop button that let users stop them.

  • System apps, safety apps and devices in demo mode are exemptions to e listed in the FGS list.
  • Device owner apps, profile owner apps, persistent apps and the apps having ROLE_DIALER role won’t have the stop button.

Android 13 can estimate & prefetch the next job

Android 13 tries to determine the next job and sign it as the prefetch through JoScheduler. So, apps can use prefetch jobs for any work that they want to be done prior to the net launch.

Battery life management

App Standby Bucket was introduced in Android 9 helping the system prioritize the app’s request. There’re 5 priority buckets (Active, Working Set, Frequent, Rare, Restricted). The system decides how an app should be put into a priority bucket based on how recently and how frequently an app has been used. Restricted priority has been added to Android 12. In the conditions below an app qualified to be placed in Restricted:

  1. The user doesn’t interact with your app for a specific number of days. For Android 13 it’s 8 days.
  2. Invoking an excessive number of broadcasts and binding during 24H.

There are some exemptions from the conditions above:

  1. Companion device apps
  2. Device Owner apps
  3. Profile owner apps
  4. Persistent apps
  5. Devices in Demo mode
  6. VPN apps
  7. ROLE_DIALER apps
  8. etc.

Leave a Comment

Your email address will not be published. Required fields are marked *