diff options
| author | 2021-02-22 18:37:05 +0000 | |
|---|---|---|
| committer | 2021-02-22 18:37:05 +0000 | |
| commit | 2dcd402cdc7806d0dffc14971b64c3e7f05b64af (patch) | |
| tree | 9fa401677dd3be1d030b0ec26deccca724bdde62 | |
| parent | d46665bdd7175aa8d3c4353bc346dbd6d18356ce (diff) | |
| parent | 8f22ff722ee4dc110f39c4815af9c44b6e5e588d (diff) | |
Merge "Fix concurrent modify exception for A11y"
| -rw-r--r-- | services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java b/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java index fcf270b4ef35..ac2ce5c75269 100644 --- a/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java +++ b/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java @@ -766,6 +766,10 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub // performs the current profile parent resolution. final int resolvedUserId = mSecurityPolicy .resolveCallingUserIdEnforcingPermissionsLocked(userId); + + if (Binder.getCallingPid() == OWN_PROCESS_ID) { + return new ArrayList<>(getUserStateLocked(resolvedUserId).mInstalledServices); + } return getUserStateLocked(resolvedUserId).mInstalledServices; } } |