Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27f3de6b authored by Chander S Pechetty's avatar Chander S Pechetty
Browse files

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
parent b81b1447
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
        }