services/tests/servicestests/src/com/android/server/devicepolicy/PolicyEnforcementInfoTest.kt
0 → 100644
+105
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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