diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-06-24 15:57:42 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-06-24 17:27:28 -0700 |
commit | 9d39d0cb361c5d3bba04a6bacf299be2162a6e92 (patch) | |
tree | 3e08cfc2e7b5e1fabc21d2c0c9184531da78d41a /services/java/com/android/server/StatusBarManagerService.java | |
parent | 01e4cfc47d0a2c7e7ab383d2fb23224ec52c0301 (diff) | |
download | frameworks_base-9d39d0cb361c5d3bba04a6bacf299be2162a6e92.zip frameworks_base-9d39d0cb361c5d3bba04a6bacf299be2162a6e92.tar.gz frameworks_base-9d39d0cb361c5d3bba04a6bacf299be2162a6e92.tar.bz2 |
Make bad notifications crash their application.
Implement notification manager handling of bad notifications, to
call a new activity manager to have the owner's process crashed
(if there is one).
Change-Id: Ib15e8d0c598756f3b39c99cc2045c18e054daf6b
Diffstat (limited to 'services/java/com/android/server/StatusBarManagerService.java')
-rw-r--r-- | services/java/com/android/server/StatusBarManagerService.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/services/java/com/android/server/StatusBarManagerService.java b/services/java/com/android/server/StatusBarManagerService.java index 1a16387..4177432 100644 --- a/services/java/com/android/server/StatusBarManagerService.java +++ b/services/java/com/android/server/StatusBarManagerService.java @@ -85,7 +85,8 @@ public class StatusBarManagerService extends IStatusBarService.Stub void onClearAll(); void onNotificationClick(String pkg, String tag, int id); void onPanelRevealed(); - void onNotificationError(String pkg, String tag, int id, String message); + void onNotificationError(String pkg, String tag, int id, + int uid, int initialPid, String message); } /** @@ -293,11 +294,12 @@ public class StatusBarManagerService extends IStatusBarService.Stub mNotificationCallbacks.onNotificationClick(pkg, tag, id); } - public void onNotificationError(String pkg, String tag, int id, String message) { + public void onNotificationError(String pkg, String tag, int id, + int uid, int initialPid, String message) { enforceStatusBarService(); // WARNING: this will call back into us to do the remove. Don't hold any locks. - mNotificationCallbacks.onNotificationError(pkg, tag, id, message); + mNotificationCallbacks.onNotificationError(pkg, tag, id, uid, initialPid, message); } public void onClearAllNotifications() { |