Skip to content

Commit 9f12373

Browse files
sganovAndroid (Google) Code Review
authored andcommitted
Merge "Fixing a regression in the UI test automation." into jb-mr1-dev
2 parents 993c3d7 + 9371a0a commit 9f12373

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)