OSDN Git Service

Issues with messaging apps on non-primary user account
authorTom Taylor <tomtaylor@google.com>
Mon, 24 Nov 2014 17:36:43 +0000 (09:36 -0800)
committerTom Taylor <tomtaylor@google.com>
Mon, 24 Nov 2014 17:36:43 +0000 (09:36 -0800)
commit86201db27e7585975bd59401b4b7d28198ecf3f5
tree463958cb16fc7787c9c7a157bff79788ef624292
parent26750711e12900aca6c7c35556b4548038cfb505
Issues with messaging apps on non-primary user account

Bug 18399514

Adjust the contentUri to contain the caller's userId so that when
the phone process tries to open the Uri, it will open the provider
on the correct user.
Also make sure the Uri grants are properly qualified. We only need to grant
permission for sending. Receiving an MMS is always done by the primary
user and doesn't need special permissions. Move various permission grants
from the SmsManager to here.

Change-Id: Ib192f651ab05db9f07e9e6245bb343ed7a55b18e
services/core/java/com/android/server/MmsServiceBroker.java