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 04:43:24 +0000 (04:43 +0000)
commit3f3da42ef9bc03ad9f7c6a6f71b3c7c0f935bde4
treee204839962957e833c54034cea86a3aca8e39b7e
parent4b0164b27cc9e891f7a4b6d2b2c624600ac697bc
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