OSDN Git Service

DO NOT MERGE. Grant MMS Uri permissions as the calling UID.
authorJeff Sharkey <jsharkey@android.com>
Wed, 30 Nov 2016 21:29:59 +0000 (14:29 -0700)
committerJeff Sharkey <jsharkey@google.com>
Tue, 7 Feb 2017 01:23:32 +0000 (01:23 +0000)
commit3eddf406755d6ab18acb46f9550c997ca4bb1970
tree5036908d6fdd626b7931de7f1434bf10b3fe4763
parent19dae584bacd6eb1db8bb01eb079e1132099e139
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 7ff418d9a9afb9ecf42f87fffd3e65477decb55e)
core/java/android/app/ActivityManagerInternal.java
services/core/java/com/android/server/MmsServiceBroker.java
services/core/java/com/android/server/am/ActivityManagerService.java