diff options
author | Daniel Sandler <dsandler@android.com> | 2010-08-03 15:29:31 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2010-08-04 10:52:51 -0400 |
commit | d0a2f86f357f346639a6648b4004266865c979b4 (patch) | |
tree | 686b2bfe2b7deda215e330f84786f834c7003350 /core | |
parent | e339464f1c8efe7e53b761cf44ff5be6e537ecad (diff) | |
download | frameworks_base-d0a2f86f357f346639a6648b4004266865c979b4.zip frameworks_base-d0a2f86f357f346639a6648b4004266865c979b4.tar.gz frameworks_base-d0a2f86f357f346639a6648b4004266865c979b4.tar.bz2 |
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
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/app/NotificationManager.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/app/NotificationManager.java b/core/java/android/app/NotificationManager.java index 6fe12fc..1fae516 100644 --- a/core/java/android/app/NotificationManager.java +++ b/core/java/android/app/NotificationManager.java @@ -17,6 +17,7 @@ package android.app; import android.content.Context; +import android.os.Binder; import android.os.RemoteException; import android.os.Handler; import android.os.IBinder; |