DO NOT MERGE. Grant MMS Uri permissions as the calling UID.
A recent security fix prevents the system UID from handing out Uri
permission grants directly from itself. Instead, services need to
issue grants as the original calling UID to ensure that the caller
actually has access to the Uris.
Test: builds, boots, send/recv MMS works in primary/secondary users
Bug: 33231106
Change-Id: Ia9fe19843b52977c8a94ee5349b907beda1882fc
(cherry picked from commit 7ff418d9a9)
This commit is contained in:
committed by
Jeff Sharkey
parent
19dae584ba
commit
3eddf40675
@@ -60,6 +60,13 @@ public abstract class ActivityManagerInternal {
|
||||
*/
|
||||
public static final int APP_TRANSITION_TIMEOUT = 3;
|
||||
|
||||
/**
|
||||
* Grant Uri permissions from one app to another. This method only extends
|
||||
* permission grants if {@code callingUid} has permission to them.
|
||||
*/
|
||||
public abstract void grantUriPermissionFromIntent(int callingUid, String targetPkg,
|
||||
Intent intent, int targetUserId);
|
||||
|
||||
/**
|
||||
* Verify that calling app has access to the given provider.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user