Skip to content

Commit 9bf2187

Browse files
committed
Perform an action in AccessibilityManagerSerivce using wrong process id.
1. We are passing the interrogating process id in the remote accessibility requests to catch the query from the same thread. While all other methods were doing this correctly somehow the perform action is using the incorrect process id. bug:6534935 Change-Id: Icef50833903c562758d51ef316b60c53c7a336c0
1 parent 0eaeb69 commit 9bf2187

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,11 +1412,11 @@ public boolean performAccessibilityAction(int accessibilityWindowId,
14121412
}
14131413
}
14141414
}
1415+
final int flags = (mIncludeNotImportantViews) ?
1416+
AccessibilityNodeInfo.INCLUDE_NOT_IMPORTANT_VIEWS : 0;
1417+
final int interrogatingPid = Binder.getCallingPid();
14151418
final long identityToken = Binder.clearCallingIdentity();
14161419
try {
1417-
final int flags = (mIncludeNotImportantViews) ?
1418-
AccessibilityNodeInfo.INCLUDE_NOT_IMPORTANT_VIEWS : 0;
1419-
final int interrogatingPid = Binder.getCallingPid();
14201420
connection.performAccessibilityAction(accessibilityNodeId, action, arguments,
14211421
interactionId, callback, flags, interrogatingPid, interrogatingTid);
14221422
} catch (RemoteException re) {

0 commit comments

Comments
 (0)