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)
committerRubin Xu <rubinxu@google.com>
Thu, 9 Feb 2017 18:03:18 +0000 (18:03 +0000)
commit78f2e38a12fc313fd055af542ab524d4a523010b
treee2f3728916df9d9ac24399f06d32c28b4b0dacae
parentbe0dab477e349938c7d6db257835dbc2b59b9179
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
Merged-In: 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