Currently, Uri Permissions read/write grants are modified/accessed from...
Currently, Uri Permissions read/write grants are modified/accessed from different parts across the system: * `UriGrantsManagerService.revokeUriPermissionFromOwner` (which is using `owner.removeUriPermission` (iterating over all read/write permissions for owner) without locking) * `UriGrantsManagerService.grantUriPermissionUnchecked` (which is using `UriPermission.grantModes` (adding new read/write permissions for owner) without any locking) * `UriGrantsManagerService.removeUriPermissionsForPackageLocked` and `UriGrantsManagerService.revokeUriPermissionLocked` (which is using `UriPermission.revokeModes` (removing read/write permissions for owner) with main UriGrantsManagerService lock) * `WindowManager` and `ActivityManager` (that using `removeUriPermissions` directly (iterating over all read/write permissions for owner) without any locking) Introduce synchronization for this part of the system. Bug: 213993781 Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/uri/ Change-Id: Idbe02e53e2b4c9fcb02d6e22dc92480d711c7779
Loading
Please register or sign in to comment