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

Commit 0e162628 authored by Xiqi Ruan's avatar Xiqi Ruan
Browse files

Skip feature check for non-provision APIs

Add `isDeviceAdminFeatureDisabled()` which returns true when both
`device_admin` feature and `FLAG_REMOVE_DEVICE_ADMIN_FEATURE_CHECKS` are
disabled

Bug: 419238296, 422879516
Test: atest FrameworksServicesTests:DevicePolicyManagerTest and manual test with device_admin disabled on device
Flag: android.app.admin.flags.remove_device_admin_feature_checks
Change-Id: If338fe7cf37e6bbe8f6051938a2ccb39fb900662
parent d6b5b5cf
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