Merge "Fix concurrent modify exception for A11y" am: 2dcd402cdc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1593751 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ie98305d5930ee7426bb8169d8f4a70d76e5383f6
This commit is contained in:
@@ -766,6 +766,10 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
|
|||||||
// performs the current profile parent resolution.
|
// performs the current profile parent resolution.
|
||||||
final int resolvedUserId = mSecurityPolicy
|
final int resolvedUserId = mSecurityPolicy
|
||||||
.resolveCallingUserIdEnforcingPermissionsLocked(userId);
|
.resolveCallingUserIdEnforcingPermissionsLocked(userId);
|
||||||
|
|
||||||
|
if (Binder.getCallingPid() == OWN_PROCESS_ID) {
|
||||||
|
return new ArrayList<>(getUserStateLocked(resolvedUserId).mInstalledServices);
|
||||||
|
}
|
||||||
return getUserStateLocked(resolvedUserId).mInstalledServices;
|
return getUserStateLocked(resolvedUserId).mInstalledServices;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user