[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
Loading
Please register or sign in to comment