[Role Logic Move] Make setNotificationListenerAccessGranted user-aware
This operation currently assumes that the calling user is the user for which the operation should target. Instead, pull the userId from NotificationManager's context, and pass this to NotificationService. Mark NotificationManager method as @UserHandleAware, which informs the caller that the operation will instead target the user passed into the context used to initialize NotificationManager. This change is needed to support the Role Business Logic Move project, because the caller of this method will be moving from a per-user app into SystemServer. Bug: 302563478 Test: atest CtsRoleTestCases NotificationListenerCheckTest NotificationManagerTest Change-Id: Ic590a9ab40a87be4817cd32c13d7248fc15a154b
Loading
Please register or sign in to comment