Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c8f33a95 authored by Jay Thomas Sullivan's avatar Jay Thomas Sullivan Committed by Jay Sullivan
Browse files

[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
parent f33a3a29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment