CVE-2026-58970 AI-generated analysis
platform/frameworks/base, ActivityManager / AppTimeTracker (usage time report PendingIntent)
AppTimeTracker.deliverResult now sends the usage-time-report PendingIntent (mReceiver) with an ActivityOptions bundle that sets MODE_BACKGROUND_ACTIVITY_START_DENIED. Per the commit message, this stops apps from starting foreground services from the background through this send.
Root cause
AppTimeTracker.deliverResult(Context) built a fill-in Intent with the usage time report extras and called mReceiver.send(context, 0, fillinIntent) with no ActivityOptions, so the send did not explicitly deny background activity start. Per the commit message, apps could use this usageTimeReport delivery to start foreground services from the background.
How the fix works
- services/core/java/com/android/server/am/AppTimeTracker.java:deliverResult: create ActivityOptions via ActivityOptions.makeBasic() and call setPendingIntentBackgroundActivityStartMode(ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_DENIED).
- services/core/java/com/android/server/am/AppTimeTracker.java:deliverResult: replace mReceiver.send(context, 0, fillinIntent) with the 7-argument overload mReceiver.send(context, 0, fillinIntent, null onFinished, null handler, null requiredPermission, options.toBundle()), so the send carries the denied background-start mode. The CanceledException handling is unchanged.
Completeness
- Covers the single send site in AppTimeTracker.deliverResult, which is the only place in the diff where mReceiver is sent.
- The fix only denies background activity start on this PendingIntent send. It does not change how the receiver PendingIntent is supplied or validated, and it does not touch other system-initiated PendingIntent sends elsewhere in the framework (none are shown in the material).
- The material does not show whether other callers of AppTimeTracker or other usage-report paths exist.
Behavior changes
- The usage time report PendingIntent is now sent with MODE_BACKGROUND_ACTIVITY_START_DENIED, so a background start that used to depend on this system send is now denied. The report extras (EXTRA_USAGE_TIME_REPORT, EXTRA_USAGE_TIME_REPORT_PACKAGES) are still delivered as before.
Per major
- Android 14: same fix: platform/frameworks/base d2b7d0e8ab7a in android-security-14.0.0_r31, identical diff (same blob hashes 2da6a33d22fe..07e5331eff9f).
- Android 15: same fix: platform/frameworks/base 7f52efca499b in android-security-15.0.0_r19, the reference commit.
- Android 16: same fix: platform/frameworks/base a9f3330b0f82 in android-security-16.0.0_r10, identical diff.
- Android 17: same fix: platform/frameworks/base e532173df93d in android-security-17.0.0_r3, identical diff.
Unknowns
- The exact call path by which an app gets its PendingIntent set as mReceiver and causes deliverResult to run. The repro steps are only referenced as being 'in the bug'.
- How the send without options let the target start a foreground service from the background. The commit message states the effect but not the mechanism.
- Whether other system-side sends of app-supplied PendingIntents follow the same pattern. The material does not show any.