commit | d0a2f86f357f346639a6648b4004266865c979b4 | [log] [tgz] |
---|---|---|
author | Daniel Sandler <dsandler@android.com> | Tue Aug 03 15:29:31 2010 -0400 |
committer | Daniel Sandler <dsandler@android.com> | Wed Aug 04 10:52:51 2010 -0400 |
tree | 686b2bfe2b7deda215e330f84786f834c7003350 | |
parent | e339464f1c8efe7e53b761cf44ff5be6e537ecad [diff] |
Fix crash when startForeground posts a broken Notification. The NotificationManager tries to crash the calling app, but in the case of a service calling startForeground, the caller is the ActivityManager, so system_server goes down. NotificationManagerService#enqueueNotificationInternal is a new internal-only method that accepts a UID/PID to use when punishing bogus notifications (such as the one in http://b/2869787). Change-Id: I84a9854bae630bc90288cebb94f174809d5dac8c