From 27f3de6bac93140452ce131cbbd8c6df33e25a94 Mon Sep 17 00:00:00 2001 From: Chander S Pechetty Date: Wed, 10 Feb 2010 22:14:00 +0530 Subject: [PATCH] Fixs the incorrect message for SecurityException when injecting a Key, Pointer and Trackball events into the UI across applications, the corresponding methods throw SecurityException with incorrect permission message. INJECT EVENT permission should be INJECT_EVENTS --- services/java/com/android/server/WindowManagerService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java index 327cd72c81959..b87ad3225e524 100644 --- a/services/java/com/android/server/WindowManagerService.java +++ b/services/java/com/android/server/WindowManagerService.java @@ -5285,7 +5285,7 @@ public class WindowManagerService extends IWindowManager.Stub switch (result) { case INJECT_NO_PERMISSION: throw new SecurityException( - "Injecting to another application requires INJECT_EVENT permission"); + "Injecting to another application requires INJECT_EVENTS permission"); case INJECT_SUCCEEDED: return true; } @@ -5313,7 +5313,7 @@ public class WindowManagerService extends IWindowManager.Stub switch (result) { case INJECT_NO_PERMISSION: throw new SecurityException( - "Injecting to another application requires INJECT_EVENT permission"); + "Injecting to another application requires INJECT_EVENTS permission"); case INJECT_SUCCEEDED: return true; } @@ -5341,7 +5341,7 @@ public class WindowManagerService extends IWindowManager.Stub switch (result) { case INJECT_NO_PERMISSION: throw new SecurityException( - "Injecting to another application requires INJECT_EVENT permission"); + "Injecting to another application requires INJECT_EVENTS permission"); case INJECT_SUCCEEDED: return true; }