Skip to content

Commit 9371a0a

Browse files
committed
Fixing a regression in the UI test automation.
bug:6967373 Change-Id: I28f01a2bfe44febcb1a519028dab82fb1da9753e
1 parent 58d37b5 commit 9371a0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/accessibility/AccessibilityManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ private void enforceCallingPermission(String permission, String function) {
21232123
if (OWN_PROCESS_ID == Binder.getCallingPid()) {
21242124
return;
21252125
}
2126-
if (hasPermission(permission)) {
2126+
if (!hasPermission(permission)) {
21272127
throw new SecurityException("You do not have " + permission
21282128
+ " required to call " + function);
21292129
}

0 commit comments

Comments
 (0)