summaryrefslogtreecommitdiff
path: root/PermissionController/role-controller/java
AgeCommit message (Collapse)Author
2025-03-21Allow the SYSTEM_SUPERVISION role to be set for CTS Jason Parks
Bug: 378102594 Flag: android.app.supervision.flags.supervision_manager_apis Test: atest CtsSupervisionTestCases Relnote: N/A Change-Id: Iec86b5423299ae0d43d5e40ff5184ede0a8095b6
2025-03-11Replace allowPrivateProfile flag with sdk version check Yi-an Chen
b/398830041 currently impacts flag value matching for mainline module on V platform. According to trunk stable team, these flag checks can be replaced with sdk version check. Hence removing the flag checks in this CL Bug: 396234389 Test: Build Flag: EXEMPT bugfix Relnote: N/A Change-Id: Id351f1516d9db763e8d765da552d4da2182300b9
2025-03-03Add Role names to role exclusivity error messages Richard MacGregor
Bug: 396225382 Flag: EXEMPT log only update Relnote: N/A Test: build Change-Id: I753e7452e05effbbc8aeae2bda62c7ca659f3cb4
2025-02-26Reenable fallback for parent profile Richard MacGregor
When setting role holder ensure the parent profile role fallback is reenabled Bug: 399184180 Flag: com.android.permission.flags.cross_user_role_ux_bugfix_enabled Relnote: N/A Test: atest RoleManagerMultiUserTest Change-Id: I64db7f9dcf13ef3da89f175f1b5512b229fd11d3
2025-02-20Allow bypassing qualification to work properly with static roles Hai Zhang
Right now bypassing qualification for a static role allows assigning a different holder initially but still randomly reverts it later on. We should not try to revert to the static holder while we are bypassing qualifications. Bug: 390304109 Flag: EXEMPT bugfix Test: presubmit Relnote: N/A Change-Id: I64881c83798cd32f7766eab5f9b609f4bdbb4dee
2025-02-20Use user context when getting profiles for user Richard MacGregor
LOW_COVERAGE_REASON=b/377295697 Bug: 394850733 Flag: EXEMPT bugfix Relnote: n/a Test: atest RoleManagerMultiUserTest Change-Id: Ib4c7a42e0134cdf21481732d6fc160d78900d9f5
2025-02-07set minSdk for ReservedForTestingProfileGroupExclusivityRole Richard MacGregor
Bug: 383538899 Flag: EXEMPT bugfix Relnote: N/A Test: atest RoleManagerMultiUserTest Change-Id: I03f3dfd9a6c915c0ec4a95adc559d08de95d4c50
2025-02-07Update B sdk level checks Richard MacGregor
Replace custom sdk check with SdkLevel Bug: 372743073 Flag: EXEMPT bugfix Relnote: N/A Test: build Change-Id: Ib2bed2592749a38e9311219fc5dadd919eb46cf1
2025-02-06Merge "Check DISALLOW_CONFIG_DEFAULT_APPS for all users of a cross-profile ↵ Richard MacGregor
role" into main
2025-02-05Check DISALLOW_CONFIG_DEFAULT_APPS for all users of a cross-profile role Richard MacGregor
Bug: 379143953 Flag: com.android.permission.flags.cross_user_role_ux_bugfix_enabled Relnote: N/A Test: atest RoleManagerMultiUserTest Change-Id: I448a8d2a90c0121338876ef04c843f4758e17c6a
2025-02-04Add recommended category for default app page Hai Zhang
For assistant, it can be enabled by overlaying PermissionController config_recommendedAssistants with a list of package names, optionally with signing certificate digests if the app needs to be a non-system app, similar to the config for default holders. This is not available for the request role dialog yet and thus still can't be used with a role that allows requesting. Bug: 388234667 Relnote: N/A Flag: com.android.permission.flags.default_apps_recommendation_enabled Test: manual Change-Id: I10a387c31362a126ee6264915f40f14926e06910
2025-02-03Refactor default app implementation Hai Zhang
So that it can better accommodate new features. Default holders logic is extracted into SignedPackage(Utils) for reuse, a RoleApplicationItem is added to replace the previous Pair, the LiveData transformation functions are made generic, and DefaultAppChildFragment preference code is also refactored to be more reusable. Bug: 388234667 Relnote: N/A Flag: EXEMPT bugfix Test: presubmit Change-Id: I3285e868c6d7457dfd42bbe12c741e5cae2f78f5
2025-01-30Remove allowBypassingQualifications from the VDM roles. Vladimir Komsiyski
Starting Android 16 no longer needed as CTS rely on Shell. The tests can use the Shell identity and the new CDM test API to acquire the needed permissions and create a virtual device Fix: 391599609 Test: atest Flag: EXEMPT test improvement LOW_COVERAGE_REASON=NON_CODE_ONLY Relnote: N/A Change-Id: I4d61f2c5d086d9eeb7393ea18c6693d30b26eb57
2025-01-17Merge "Fix which profiles show in default app list" into main Richard MacGregor
2025-01-17Merge "Update the protection level of EXECUTE_APP_FUNCTION permission" into main Oluwarotimi Adesina
2025-01-16Fix which profiles show in default app list Richard MacGregor
Default app list should show all profiles when opening with profile parent Default app list should only show work profile when opening with work profile Default app list should only show private profile when opening with private profile Bug: 390247739 Flag: EXEMPT bugfix Relnote: Fix shown profiles in default app list Test: manual Change-Id: Ib7a003e48a731d6c5b79b373bc35ec703a55c347
2025-01-16Merge "Change WALLET role exclusivity=profileGroup" into main James Willcox
2025-01-16Update the protection level of EXECUTE_APP_FUNCTION permission Oluwarotimi Adesina
Flag: android.app.appfunctions.flags.enable_app_function_manager Test: Existing coverage Bug: 383498170 Relnote: N/A LOW_COVERAGE_REASON=TEST_ONLY Change-Id: I38084323489d8940ae236edca48b6f0698b83869
2025-01-15Fix rolebehavior ability to override role visible Richard MacGregor
Fix bug where if role was `visible="false"` in roles.xml, then RoleBehavior was not able to enable it by overriding RoleBehavior.isVisibleAsUser() Bug: 383126474 Flag: EXEMPT bugfix Relnote: N/A Test: atest RoleManagerTest Test: atest RoleMultiUserTest Test: atest RoleParserTest Change-Id: Ib07ea13199641d4301f397452d4b03f173cf376f
2025-01-09Change WALLET role exclusivity=profileGroup James Willcox
Bug: 356107987 Test: manual Flag: android.permission.flags.wallet_role_cross_user_enabled Relnote: Allow wallet role to be used in profiles Change-Id: I5191a2f260173a8bf836a1b0ad673b82062f1bba
2025-01-08Add MANAGE_DEFAULT_APPLICATIONS to DEVICE_POLICY_MANAGEMENT role Richard MacGregor
Allows DEVICE_POLICY_MANAGEMENT to modify/query active user for cross-user roles Bug: 387560997 Change-Id: Iaaed754786ed72005a2954d08896f0fd3462973a Flag: com.android.permission.flags.cross_user_role_enabled Relnote: N/A Test: builds
2024-12-20Merge changes Id362c17a,I3128c8b1 into main Richard MacGregor
* changes: Fix selecting none default app Fix profile group exclusive role request
2024-12-20Fix selecting none default app Richard MacGregor
Fix selection of "none" default apps when the current active user for a profile group exclusive role is not the primary user LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Bug: 382688491 Flag: com.android.permission.flags.cross_user_role_enabled Relnote: N/A Test: atest RoleManagerTest Test: atest RoleManagerMultiUserTest Change-Id: Id362c17ac9ae937228667f3617eb937d97d90111
2024-12-20Fix profile group exclusive role request Richard MacGregor
Profile group exclusive roles may show the same package for multiple users in a role request activity, this fix ensures the correct user was set as role holder for the user selection. LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Bug: 378888203 Flag: com.android.permission.flags.cross_user_role_enabled Relnote: N/A Test: atest RoleManagerTest Test: atest RoleManagerMultiUserTest Change-Id: I3128c8b1419afce31104ba4f8af91fa1b56c2b53
2024-12-20Refactor logic in isAvailableAsUser Richard MacGregor
Update isAvailableAsUser logic concerning profileGroup exclusivity to be more readable LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Bug: 384770324 Flag: com.android.permission.flags.cross_user_role_enabled Relnote: N/A Test: RoleManagerMultiUserTest Test: manual Change-Id: I2a9cda83ad88bbd8895d1f9702ddd1a88140f14f
2024-12-11Profile group exclusive roles setting changes Richard MacGregor
Show profile group exclusive roles in primary default app list section. Show all users for which profile group exclusive role is available in default app screen. LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Bug: 378887269 Test: atest RoleManagerTest Test: atest RoleManagerMultiUserTest Change-Id: Id0596f089d8cdcf13941646c547871fce679de18
2024-12-10Followup fixes for RoleManager test api Richard MacGregor
Followup fixes for RoleManager get/setDefaultHoldersForTest and is/setRoleVisibleForTest LOW_COVERAGE_REASON=b/382484309 Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Bug: 381315745 Test: atest RoleManagerTest Test: atest RoleManagerMultiUserTest Change-Id: I19ddcd4a71682f89ccf32322833db3404f46c86f
2024-12-06Merge "Ensure cross-user roles are not available for private space ↵ Richard MacGregor
profile/user" into main
2024-12-06Merge "Add get/setDefaultHoldersForTest and is/setRoleVisibleForTest" into main Richard MacGregor
2024-12-05Ensure cross-user roles are not available for private space profile/user Richard MacGregor
Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Bug: 382514430 Test: atest RoleManagerMultiUserTest Change-Id: I78abf982c1c633db366fb4951f3ff6fde8c6612c
2024-12-05Add get/setDefaultHoldersForTest and is/setRoleVisibleForTest Richard MacGregor
Add role methods to assist in setting test role visiblity and default holders LOW_COVERAGE_REASON=b/382484309 Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Bug: 381315745 Test: atest RoleManagerTest Change-Id: I6d1d4200849a2be994f83da675fc57837ae7204f
2024-12-03Merge "RoleParser role exclusivity requirement" into main Richard MacGregor
2024-12-02Merge "Disable default and fallback role holders for non-active users of ↵ Richard MacGregor
profileGroup exclusive roles" into main
2024-12-02Disable default and fallback role holders for non-active users of ↵ Richard MacGregor
profileGroup exclusive roles If a role is profile group exclusive and users is not active, do not apply default role holder and fallback role holder for user LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Bug: 379143798 Test: atest RoleManagerMultiUserTest Change-Id: I068f3eebd4ad368e68d3b3ce1069d8663a94fb5a
2024-12-02RoleParser role exclusivity requirement Richard MacGregor
Add RoleParser requirement that preferred activites can not be added to a profileGroup exclusive role. This is to prevent preferred activities to be applied for cross user scenarios RelNote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Bug: 379141911 Test: atest RoleParserTest Change-Id: Iff9e945c579764f7b54892886bfdf9416eb7d80c
2024-11-28Enforce profileExclusive available on full user Richard MacGregor
Ensure that profileGroup exclusive role is only available if also available for the profile-group's full user LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Bug: 376133070 Test: manual Change-Id: Id3f6ae8a8702edf371cd63b8b34e894b5ac5fc86
2024-11-26Add a check to ensure that preferred activities are not configured for ↵ Richard MacGregor
profile group exclusive roles. This is to prevent preferred activities to be applied for cross user scenarios RelNote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Bug: 379141911 Test: manual Change-Id: Ib3f6bb06f7415aabcca20002a7acff50f78e7687
2024-11-25Set activeuser when setting role holder Richard MacGregor
Set active user for profilegroup exclusive roles when calling setDefaultApplication and addRoleHolderAsUser API LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Test: atest RoleManagerMultiUserTest Bug: 378887974 Bug: 378888547 Change-Id: Ifd8e9a60f5024799dd4dc81d00cd578d799a4114
2024-11-14Allow RoleBehavior to override exclusivity Richard MacGregor
Add RoleBehavior getExclusivity override. Also update showNone to be false if role is not exclusive. This is normally enforced in role parser, but needs to be enforced here too now that RoleBehavior can override to be a non-exclusive role. Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Bug: 373390494 Test: manual LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Change-Id: I67d55f5c96c8040e65fa64f360c70648e0247c75
2024-11-08Merge "Add Cross-user role persistence" into main Richard MacGregor
2024-11-08Add Cross-user role persistence Richard MacGregor
Add persistence for cross-user role support. LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Relnote: Add cross-user role persistence Flag: com.android.permission.flags.cross_user_role_enabled Test: atest RolesPersistenceTest Bug: 373469933 Change-Id: I428f1033e8c76959fea611070a79ac1c7b3eb6ac
2024-11-07Merge "Revert^4 "Add Cross-user role support xml parsing"" into main Richard MacGregor
2024-11-07Merge "Revert "Clean up unused lib/rules in build file"" into main Yi-an Chen
2024-11-07Revert^4 "Add Cross-user role support xml parsing" Richard MacGregor
This reverts commit 71b5e5bbb8ea0de555d69081112e5656b0c68750. Reason for revert: Fixed flag dependencies that caused incorrect flag states for some features Test: atest SafetyCenterManagerTest on T and U devices LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Change-Id: I19b830ede537121b97d25bd7e3e60b53e0b81d0b
2024-11-06Revert^3 "Add Cross-user role support xml parsing" Chaitanya Cheemala (xWF)
This reverts commit d60d6806c170f95441733e3fc23e6f36e85e01ba. Reason for revert: Likely culprit for b/377607654 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted. Change-Id: Ia5586206e3af74cd993a9da52e7eb58fe09470dc
2024-11-05Revert^2 "Add Cross-user role support xml parsing" Richard MacGregor
This reverts commit b5a2cfc3b9ebe0d3721bf62aff76f366e0e31cf1. Reason for revert: Fixing apex error in initial change Test: atest SafetyCenterManagerTest LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Change-Id: I00be8f7547df54a8132aa8de41c7fb7efdff012d
2024-11-01Merge "Revert "Add Cross-user role support xml parsing"" into main Chaitanya Cheemala (xWF)
2024-11-01Revert "Add Cross-user role support xml parsing" Chaitanya Cheemala (xWF)
This reverts commit 2258d6daf8744e3e7598bd34d1b76c657b5bf58e. Reason for revert: Likely culprit for b/376805931 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted. Change-Id: Iffb5d707c1505e482dfa1f10ed543a2840611262
2024-11-01Merge "Add Cross-user role support xml parsing" into main Richard MacGregor
2024-10-31Add Cross-user role support xml parsing Richard MacGregor
Add roles.xml parsing logic for cross-user role support. Adds new exclusivity logic for none, user, and profile. LOW_COVERAGE_REASON=FLAG_NOT_ENABLED Relnote: N/A Flag: com.android.permission.flags.cross_user_role_enabled Test: RoleParserTest Bug: 372746603 Change-Id: I23b22ff8c4a7b446190af96de1ca76d0121c584a