OSDN Git Service

Do not block notifications or toasts for SYSTEM_UID or PHONE_UID.
authorDaniel Sandler <dsandler@android.com>
Mon, 10 Jun 2013 16:06:51 +0000 (12:06 -0400)
committerThe Android Automerger <android-build@android.com>
Mon, 10 Jun 2013 22:18:04 +0000 (15:18 -0700)
commit9698fa4c38bcbda13371163012b4af400e30f7da
tree73f10eaebdec2fa7c1876d9685ebcb886ffb3f7d
parent3ad5dfda321b3ccd3cde0a00c724d143d2ac6505
Do not block notifications or toasts for SYSTEM_UID or PHONE_UID.

The specific bug is this: SIM PIN unlock attempt toasts are
sent from com.android.settings/.IccLockSettings which runs
as the phone process; NoMan wasn't having any of that and
was blocking the toasts.

With this change we treat SYSTEM_UID and PHONE_UID the same
for all security checks, and furthermore we guarantee that
all notifications and toasts from those UIDs will be
permitted.

Bug: 9098802
Change-Id: Idc788527aa2cb38e015fe92773766a514167999e
services/java/com/android/server/NotificationManagerService.java