CVE-2026-28586 AI-generated analysis
platform/frameworks/base, AppOps (services/core/java/com/android/server/appop/AppOpsService.java)
Adds the isOpRestrictedDueToSuspend check (already present in the checkOp path) to the noteOp and startOp paths of AppOpsService so a suspended package gets MODE_IGNORED on those paths too.
Root cause
AppOpsService already returned AppOpsManager.MODE_IGNORED from the checkOp path (checkOperationUnchecked) when isOpRestrictedDueToSuspend(code, packageName, uid) was true, as the diff context near line 2457 shows. The noteOp and startOp paths (named noteOperationUnchecked and startOperationUnchecked in the commit message) had no such check. After their SyncNotedAppOp(MODE_ERRORED, ...) early return they went straight on to proxy attribution handling and the rest of the op logic. Per the commit message, a suspended app could therefore bypass AppOps suspend restrictions through noteOp/startOp.
How the fix works
- services/core/java/com/android/server/appop/AppOpsService.java (Android 14 commit c31c5d04d4c4): in the noteOp path (hunk at ~line 2675, noteOperationUnchecked per the commit message), right after the existing early return of SyncNotedAppOp(MODE_ERRORED, ...), a new block returns new SyncNotedAppOp(AppOpsManager.MODE_IGNORED, code, attributionTag, packageName) when isOpRestrictedDueToSuspend(code, packageName, uid) is true. This happens before proxyAttributionTag handling.
- Same file, startOp path (hunk at ~line 3218, startOperationUnchecked per the commit message): the same isOpRestrictedDueToSuspend early return is inserted at the same position, before proxyAttributionTag handling.
- A stray blank line before the existing isOpRestrictedDueToSuspend check in the checkOp path is removed (cosmetic, no logic change).
- services/tests/servicestests/src/com/android/server/pm/SuspendPackagesTest.java: after suspension, assertOpBlockedOnSuspend now also calls iAppOps.noteOperation(...) and iAppOps.startOperation(new Binder(), ...) and asserts getOpMode() == MODE_IGNORED for each, in addition to the existing checkOperation assertion.
- Android 15/16/17 commits (c87384f4be82, 9bef8bf1eee4, dd21dedbb88c): the same two insertions plus a third isOpRestrictedDueToSuspend early return in another path (the hunk just before 'boolean isRestricted = false; synchronized (this) {'). They also add OP_RESERVED_FOR_TESTING to a static op array that ends with OP_RECORD_AUDIO, OP_CAMERA, OP_VIBRATE, and switch the tests to OP_RESERVED_FOR_TESTING, OP_VIBRATE and OP_PLAY_AUDIO.
Completeness
- On Android 14 the check is added at exactly two sites, the noteOp and startOp paths. In both, it runs right after the MODE_ERRORED early return and before proxyAttributionTag handling, and returns MODE_IGNORED early.
- The enforcement relies entirely on isOpRestrictedDueToSuspend, which the Android 14 commit leaves unchanged. The ops it covers are not shown in the 14 material.
- The Android 15/16/17 commits patch a third path in AppOpsService.java that the Android 14 commit does not touch. The material does not show whether that path exists in the Android 14 code base, so the 14 fix may be complete for its tree or may leave a sibling path unpatched (see potential_variants).
- The 14 test exercises only checkOperation, noteOperation and startOperation through IAppOpsService. Other entry points (for example proxy variants) are not covered by the test in the material.
Behavior changes
- For a suspended package whose op is suspend-restricted, noteOperation and startOperation on AppOpsService now return a SyncNotedAppOp with mode MODE_IGNORED. Previously these paths had no suspend check.
- The early return happens before proxy attribution tag handling and the rest of the note/start logic in these paths.
- Android 15+ only: OP_RESERVED_FOR_TESTING is added to a static op array in AppOpsService for test support. This is not part of the Android 14 change.
Per major
- Android 14: Fixed in android-security-14.0.0_r28 (commit c31c5d04d4c4, DO NOT MERGE cherry-pick): two insertion sites (noteOp and startOp paths) plus a test update. 8/8 patched lines present at android-security-14.0.0_r31.
- Android 15: Adapted fix in android-security-15.0.0_r16 (c87384f4be82, DO NOT MERGE): three insertion sites, OP_RESERVED_FOR_TESTING added to a static op array, and tests switched to OP_RESERVED_FOR_TESTING/OP_VIBRATE/OP_PLAY_AUDIO. Patched region present at r19.
- Android 16: Same adapted fix as 15 in android-security-16.0.0_r7 (9bef8bf1eee4, DO NOT MERGE). Patched region present at r10.
- Android 17: Same adapted fix as 15/16 in android-security-17.0.0_r3 (dd21dedbb88c, not marked DO NOT MERGE). Patched region present at r3.
Unknowns
- Exact enclosing function names for the two Android 14 insertion sites (the diff hunks do not show the signatures; the commit message names noteOperationUnchecked and startOperationUnchecked).
- Whether the third path patched in the 15/16/17 commits exists in the Android 14 tree.
- The full set of ops that isOpRestrictedDueToSuspend restricts, and whether it uses the static array that the 15+ commits extend.
- Whether these paths record any op state before the MODE_ERRORED early return (that code is not shown).
- The concrete information-disclosure impact behind the bulletin's ID classification beyond what the commit message states.