Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab582514 authored by Irem Uguz's avatar Irem Uguz
Browse files

Add getEnforcingAdminsForPolicy method to DPM

Add the new method that retrieves EnforcingAdmins list for the given
policy identifier to DevicePolicyManager and to
DevicePolicyManagerService. The implementation in DPMS is work in
progress and will be completed in the follow-up CL for legacy policies.

Add helper method to EnforcingAdmin to check if admin is supervision
admin. Move the admin role constants to EnforcingAdmin class to make it
more consistent.

Test: atest FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest
Bug: 414733570
Flag: EXEMPT code not used yet

Change-Id: I410ec99749c2734eaafe2556aac9e06e1cd33e9f
parent 073d6222
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment