Android security tags, read closely by Lightrion

CVE-2025-48582 AI-generated analysis

platform/packages/providers/MediaProvider, PermissionActivity / bulk request PendingIntent creation (MediaProvider.java)

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 (9 corrections). Verify against the commit before relying on it.

MediaProvider now records the uid of the app that created a bulk create request inside the PendingIntent extras for PermissionActivity, and PermissionActivity uses that uid, instead of Activity.getCallingPackage(), to decide whether user consent is needed and to which package URI permissions are granted.

Root cause

MediaProvider builds a PendingIntent targeting PermissionActivity for create bulk requests (e.g. CREATE_WRITE_REQUEST_CALL) but did not record which uid created the request. PermissionActivity.resolveCallingAppInfo() relied solely on getCallingPackage(), i.e. the package that started the activity, and that package name was also passed to shouldShowActionDialog() (consent decision), to grantUriPermission() (recipient of READ/WRITE URI grants) and to Metrics. The identity used for the permission check and the grant could therefore differ from the identity that created the request. The app info was also resolved with getApplicationInfo() rather than for the caller's user.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to March 2026 · Findings