Skip to content
Commit 6a4f99ad authored by Jay Thomas Sullivan's avatar Jay Thomas Sullivan
Browse files

[Role Logic Move] Call Role/PackageManager with UserContext

This change ensures we call all user-dependent RoleManager and
PackageManager methods with a user context. This includes:

- packageManager.queryIntentActivities(...)
- packageManager.replacePreferredActivity(...)
- packageManager.getWhitelistedRestrictedPermissions(...)
- packageManager.addWhitelistedRestrictedPermission(...)
- roleManager.getHeldRolesFromController(...)

Also, lift UserHandle out of PreferredActivity::configure[AsUser] and
into a method argument.

Bug: 302563690
Test: atest CtsRoleTestCases
Change-Id: I65f2d488cb8d4c7aee1d0d12892a5e71e56e258c
parent 876f383d
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