In Android Q / Android 10 using USES_POLICY_DISABLE_KEYGUARD_FEATURES of the keyguard_features causes a security exception.
devicePolicyManager.setKeyguardDisabledFeatures(componentName, DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE);
java.lang.SecurityException: Admin ComponentInfo{ ... } is not a device owner or profile owner, so may not use policy: disable-keyguard-features
Upon further inspection, I found that android pie has marked KEYGUARD_FEATURES deprecated and removed it in android-q / Android 10. Is there any other alternative to disable keyguard_features