Update the order of admins in PolicyEnforcementInfo
PolicyEnforcementInfo sorts the admins in constructor in a way that supervision admin will be first one if it exists. To keep the behaviour consistent with DPMS.getEnforcingAdminInternal, change the ordering in following way: supervision admins -> DPC admins -> other admins. Test: atest FrameworksServicesTests:com.android.server.devicepolicy.PolicyEnforcementInfoTest Flag: android.app.admin.flags.policy_transparency_refactor_enabled Bug: 414733570 Change-Id: Idf3f83c46f089b90e5f67a660736d2950b8c3524
Loading
Please register or sign in to comment