OSDN Git Service

Limit Instant App notifications
authorChad Brubaker <cbrubaker@google.com>
Fri, 27 Jan 2017 21:39:00 +0000 (13:39 -0800)
committerChad Brubaker <cbrubaker@google.com>
Thu, 2 Feb 2017 19:04:57 +0000 (11:04 -0800)
commit6b68f1060ccb2b58bd24f85d05813c09667556b8
treed0b8c606b0cec5815b8261f384549e361d482b9d
parent61d7a8a7f56bb4b47da54eb0763c0a033ddee715
Limit Instant App notifications

Instants apps are not allowed to create toasts or notifications, however
they are allowed to update notifications that were created by the
system for them (i.e. a notification for a foreground service).

Test: Manually verified that .notify() fails with a security exception
Test: Manually verified startForeground shows a notification and that it
can be updated.

Change-Id: I054cccc2aa817263d15abd34851b0e06f16fb829
services/core/java/com/android/server/notification/NotificationManagerService.java