From 9d39d0cb361c5d3bba04a6bacf299be2162a6e92 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 24 Jun 2010 15:57:42 -0700 Subject: 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 --- services/java/com/android/server/StatusBarManagerService.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'services/java/com/android/server/StatusBarManagerService.java') 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() { -- cgit v1.1