Merge "Fix concurrent modify exception for A11y"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user