OSDN Git Service

Visit Uris in RemoteViews for granting purposes.
authorJeff Sharkey <jsharkey@android.com>
Thu, 19 Apr 2018 03:32:12 +0000 (21:32 -0600)
committerJeff Sharkey <jsharkey@android.com>
Thu, 19 Apr 2018 03:40:47 +0000 (21:40 -0600)
commit23b3118f288d2beff0519ca294baac8093995989
tree80cabef85b9c9e3632e1f01fe3cf6514963cf83a
parent56487413b75e09100d9aabb9a8c1cf83b39ef34c
Visit Uris in RemoteViews for granting purposes.

RemoteViews end up passing around Uris, so we need to extend Uri
permission grants for them to ensure the recipient of a Notification
object is able to render its contents.

Bug: 9069730
Test: atest frameworks/base/services/tests/uiservicestests/src/com/android/server/notification
Change-Id: Id31b5adaf2ee66113a1b503e32126aeddbf97b28
core/java/android/app/Notification.java
core/java/android/widget/RemoteViews.java
services/core/java/com/android/server/notification/NotificationRecord.java