Android security tags, read closely by Lightrion

CVE-2024-0043 AI-generated analysis

platform/packages/modules/Permission, PermissionController role-controller (CompanionDevice*RoleBehavior)

AI-generated: written from the bulletin and the fixing diffs by claude-fable-5-1, then checked against the code by claude-opus-5-5 (6 corrections). Verify against the commit before relying on it.

The fix changes the four Companion Device profile role behaviors (App Streaming, Computer, Glasses, Watch) in PermissionController's role-controller so they skip granting and revoking notification access when the role controller is running in a managed (work) profile.

Root cause

CompanionDeviceAppStreamingRoleBehavior, CompanionDeviceComputerRoleBehavior, CompanionDeviceGlassesRoleBehavior and CompanionDeviceWatchRoleBehavior implemented RoleBehavior.grant() by always calling NotificationUtils.grantNotificationAccessForPackage(context, packageName), and revoke() by always calling NotificationUtils.revokeNotificationAccessForPackage(context, packageName). Neither checked which profile the role controller was running in. As a result, a package given one of these companion device profile roles in a managed (work) profile also got notification access there. The commit message states the intent: "Do not grant notification access for work apps." The bulletin rates this as a High severity EoP.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to May 2024 · Findings