@TargetApi(Build.VERSION_CODES.KITKAT)
    public static boolean hasDeviceAdminFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN);
    }
@ TargetApi ( Build . VERSION_CODES . KITKAT ) public static boolean hasDeviceAdminFeature ( PackageManager manager ) { return manager . hasSystemFeature ( PackageManager . FEATURE_DEVICE_ADMIN ) ; }
Checks if the device has a device administrative feature.
@param manager the package manager.
@return {@code true} if the device has a device administrative feature.