DevicePolicyIdentifiers


public final class DevicePolicyIdentifiers
extends Object

java.lang.Object
   ↳ android.app.admin.DevicePolicyIdentifiers


Class containing identifiers for policy APIs in DevicePolicyManager, for example they will be passed in PolicyUpdateReceiver#onPolicySetResult and PolicyUpdateReceiver#onPolicyChanged to communicate updates of a certain policy back to the admin.

Summary

Constants

String ACCOUNT_MANAGEMENT_DISABLED_POLICY

String identifier for DevicePolicyManager#setAccountManagementDisabled.

String APPLICATION_HIDDEN_POLICY

String identifier for DevicePolicyManager#setApplicationHidden.

String APPLICATION_RESTRICTIONS_POLICY

String identifier for DevicePolicyManager#setApplicationRestrictions.

String AUTO_TIMEZONE_POLICY

String identifier for DevicePolicyManager#setAutoTimeZoneEnabled.

String AUTO_TIME_POLICY

String identifier for DevicePolicyManager#setAutoTimeEnabled.

String BACKUP_SERVICE_POLICY

String identifier for DevicePolicyManager#setBackupServiceEnabled.

String CAMERA_DISABLED_POLICY

String identifier for DevicePolicyManager#setCameraDisabled.

String CONTENT_PROTECTION_POLICY

String identifier for DevicePolicyManager#setContentProtectionPolicy.

String KEYGUARD_DISABLED_FEATURES_POLICY

String identifier for DevicePolicyManager#setKeyguardDisabledFeatures.

String LOCK_TASK_POLICY

String identifier for DevicePolicyManager#setLockTaskPackages.

String PACKAGES_SUSPENDED_POLICY

String identifier for DevicePolicyManager#setPackagesSuspended.

String PACKAGE_UNINSTALL_BLOCKED_POLICY

String identifier for DevicePolicyManager#setUninstallBlocked.

String PASSWORD_COMPLEXITY_POLICY

String identifier for DevicePolicyManager#setRequiredPasswordComplexity.

String PERMISSION_GRANT_POLICY

String identifier for DevicePolicyManager#setPermissionGrantState.

String PERSISTENT_PREFERRED_ACTIVITY_POLICY

String identifier for DevicePolicyManager#addPersistentPreferredActivity.

String RESET_PASSWORD_TOKEN_POLICY

String identifier for DevicePolicyManager#setResetPasswordToken.

String SECURITY_LOGGING_POLICY

String identifier for DevicePolicyManager#setSecurityLoggingEnabled.

String STATUS_BAR_DISABLED_POLICY

String identifier for DevicePolicyManager#setStatusBarDisabled.

String USB_DATA_SIGNALING_POLICY

String identifier for DevicePolicyManager#setUsbDataSignalingEnabled.

String USER_CONTROL_DISABLED_PACKAGES_POLICY

String identifier for DevicePolicyManager#setUserControlDisabledPackages.

Public methods

static String getIdentifierForUserRestriction(String restriction)

Returns a string identifier for the provided user restrictions, see DevicePolicyManager#addUserRestriction and UserManager for the list of available restrictions.

Inherited methods

Constants

ACCOUNT_MANAGEMENT_DISABLED_POLICY

Added in API level 34
public static final String ACCOUNT_MANAGEMENT_DISABLED_POLICY

String identifier for DevicePolicyManager#setAccountManagementDisabled.

Constant Value: "accountManagementDisabled"

APPLICATION_HIDDEN_POLICY

Added in API level 34
public static final String APPLICATION_HIDDEN_POLICY

String identifier for DevicePolicyManager#setApplicationHidden.

Constant Value: "applicationHidden"

APPLICATION_RESTRICTIONS_POLICY

Added in API level 34
public static final String APPLICATION_RESTRICTIONS_POLICY

String identifier for DevicePolicyManager#setApplicationRestrictions.

Constant Value: "applicationRestrictions"

AUTO_TIMEZONE_POLICY

Added in API level 34
public static final String AUTO_TIMEZONE_POLICY

String identifier for DevicePolicyManager#setAutoTimeZoneEnabled.

Constant Value: "autoTimezone"

AUTO_TIME_POLICY

Added in API level 34
public static final String AUTO_TIME_POLICY

String identifier for DevicePolicyManager#setAutoTimeEnabled.

Constant Value: "autoTime"

BACKUP_SERVICE_POLICY

Added in API level 34
public static final String BACKUP_SERVICE_POLICY

String identifier for DevicePolicyManager#setBackupServiceEnabled.

Constant Value: "backupService"

CAMERA_DISABLED_POLICY

Added in API level 34
public static final String CAMERA_DISABLED_POLICY

String identifier for DevicePolicyManager#setCameraDisabled.

Constant Value: "cameraDisabled"

CONTENT_PROTECTION_POLICY

Added in API level 35
public static final String CONTENT_PROTECTION_POLICY

String identifier for DevicePolicyManager#setContentProtectionPolicy.

Constant Value: "contentProtection"

KEYGUARD_DISABLED_FEATURES_POLICY

Added in API level 34
public static final String KEYGUARD_DISABLED_FEATURES_POLICY

String identifier for DevicePolicyManager#setKeyguardDisabledFeatures.

Constant Value: "keyguardDisabledFeatures"

LOCK_TASK_POLICY

Added in API level 34
public static final String LOCK_TASK_POLICY

String identifier for DevicePolicyManager#setLockTaskPackages.

Constant Value: "lockTask"

PACKAGES_SUSPENDED_POLICY

Added in API level 34
public static final String PACKAGES_SUSPENDED_POLICY

String identifier for DevicePolicyManager#setPackagesSuspended.

Constant Value: "packagesSuspended"

PACKAGE_UNINSTALL_BLOCKED_POLICY

Added in API level 34
public static final String PACKAGE_UNINSTALL_BLOCKED_POLICY

String identifier for DevicePolicyManager#setUninstallBlocked.

Constant Value: "packageUninstallBlocked"

PASSWORD_COMPLEXITY_POLICY

Added in API level 35
public static final String PASSWORD_COMPLEXITY_POLICY

String identifier for DevicePolicyManager#setRequiredPasswordComplexity.

Constant Value: "passwordComplexity"

PERMISSION_GRANT_POLICY

Added in API level 34
public static final String PERMISSION_GRANT_POLICY

String identifier for DevicePolicyManager#setPermissionGrantState.

Constant Value: "permissionGrant"

PERSISTENT_PREFERRED_ACTIVITY_POLICY

Added in API level 34
public static final String PERSISTENT_PREFERRED_ACTIVITY_POLICY

String identifier for DevicePolicyManager#addPersistentPreferredActivity.

Constant Value: "persistentPreferredActivity"

RESET_PASSWORD_TOKEN_POLICY

Added in API level 34
public static final String RESET_PASSWORD_TOKEN_POLICY

String identifier for DevicePolicyManager#setResetPasswordToken.

Constant Value: "resetPasswordToken"

SECURITY_LOGGING_POLICY

Added in API level 35
public static final String SECURITY_LOGGING_POLICY

String identifier for DevicePolicyManager#setSecurityLoggingEnabled.

Constant Value: "securityLogging"

STATUS_BAR_DISABLED_POLICY

Added in API level 34
public static final String STATUS_BAR_DISABLED_POLICY

String identifier for DevicePolicyManager#setStatusBarDisabled.

Constant Value: "statusBarDisabled"

USB_DATA_SIGNALING_POLICY

Added in API level 35
public static final String USB_DATA_SIGNALING_POLICY

String identifier for DevicePolicyManager#setUsbDataSignalingEnabled.

Constant Value: "usbDataSignaling"

USER_CONTROL_DISABLED_PACKAGES_POLICY

Added in API level 34
public static final String USER_CONTROL_DISABLED_PACKAGES_POLICY

String identifier for DevicePolicyManager#setUserControlDisabledPackages.

Constant Value: "userControlDisabledPackages"

Public methods

getIdentifierForUserRestriction

Added in API level 34
public static String getIdentifierForUserRestriction (String restriction)

Returns a string identifier for the provided user restrictions, see DevicePolicyManager#addUserRestriction and UserManager for the list of available restrictions.

Parameters
restriction String: Value is UserManager.ALLOW_PARENT_PROFILE_APP_LINKING, android.os.UserManager.DISALLOW_ADD_CLONE_PROFILE, UserManager.DISALLOW_ADD_MANAGED_PROFILE, UserManager.DISALLOW_ADD_PRIVATE_PROFILE, UserManager.DISALLOW_ADD_USER, UserManager.DISALLOW_ADD_WIFI_CONFIG, UserManager.DISALLOW_ADJUST_VOLUME, UserManager.DISALLOW_AIRPLANE_MODE, UserManager.DISALLOW_AMBIENT_DISPLAY, UserManager.DISALLOW_APPS_CONTROL, UserManager.DISALLOW_ASSIST_CONTENT, UserManager.DISALLOW_AUTOFILL, android.os.UserManager.DISALLOW_BIOMETRIC, UserManager.DISALLOW_BLUETOOTH, UserManager.DISALLOW_BLUETOOTH_SHARING, android.os.UserManager.DISALLOW_CAMERA, UserManager.DISALLOW_CAMERA_TOGGLE, UserManager.DISALLOW_CELLULAR_2G, UserManager.DISALLOW_CHANGE_NEAR_FIELD_COMMUNICATION_RADIO, UserManager.DISALLOW_CHANGE_WIFI_STATE, UserManager.DISALLOW_CONFIG_BLUETOOTH, UserManager.DISALLOW_CONFIG_BRIGHTNESS, UserManager.DISALLOW_CONFIG_CELL_BROADCASTS, UserManager.DISALLOW_CONFIG_CREDENTIALS, UserManager.DISALLOW_CONFIG_DATE_TIME, UserManager.DISALLOW_CONFIG_DEFAULT_APPS, UserManager.DISALLOW_CONFIG_LOCALE, UserManager.DISALLOW_CONFIG_LOCATION, UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS, UserManager.DISALLOW_CONFIG_PRIVATE_DNS, UserManager.DISALLOW_CONFIG_SCREEN_TIMEOUT, UserManager.DISALLOW_CONFIG_TETHERING, UserManager.DISALLOW_CONFIG_VPN, UserManager.DISALLOW_CONFIG_WIFI, UserManager.DISALLOW_CONTENT_CAPTURE, UserManager.DISALLOW_CONTENT_SUGGESTIONS, UserManager.DISALLOW_CREATE_WINDOWS, UserManager.DISALLOW_CROSS_PROFILE_COPY_PASTE, UserManager.DISALLOW_DATA_ROAMING, UserManager.DISALLOW_DEBUGGING_FEATURES, UserManager.DISALLOW_FACTORY_RESET, UserManager.DISALLOW_FUN, UserManager.DISALLOW_GRANT_ADMIN, UserManager.DISALLOW_INSTALL_APPS, UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES_GLOBALLY, UserManager.DISALLOW_MICROPHONE_TOGGLE, UserManager.DISALLOW_MODIFY_ACCOUNTS, UserManager.DISALLOW_MOUNT_PHYSICAL_MEDIA, UserManager.DISALLOW_NEAR_FIELD_COMMUNICATION_RADIO, UserManager.DISALLOW_NETWORK_RESET, android.os.UserManager.DISALLOW_OEM_UNLOCK, UserManager.DISALLOW_OUTGOING_BEAM, UserManager.DISALLOW_OUTGOING_CALLS, UserManager.DISALLOW_PRINTING, android.os.UserManager.DISALLOW_RECORD_AUDIO, UserManager.DISALLOW_REMOVE_MANAGED_PROFILE, UserManager.DISALLOW_REMOVE_USER, android.os.UserManager.DISALLOW_RUN_IN_BACKGROUND, UserManager.DISALLOW_SAFE_BOOT, UserManager.DISALLOW_SET_USER_ICON, UserManager.DISALLOW_SET_WALLPAPER, UserManager.DISALLOW_SHARE_INTO_MANAGED_PROFILE, UserManager.DISALLOW_SHARE_LOCATION, UserManager.DISALLOW_SHARING_ADMIN_CONFIGURED_WIFI, UserManager.DISALLOW_SIM_GLOBALLY, UserManager.DISALLOW_SMS, UserManager.DISALLOW_SYSTEM_ERROR_DIALOGS, android.os.UserManager.DISALLOW_THREAD_NETWORK, UserManager.DISALLOW_ULTRA_WIDEBAND_RADIO, UserManager.DISALLOW_UNIFIED_PASSWORD, UserManager.DISALLOW_UNINSTALL_APPS, android.os.UserManager.DISALLOW_UNMUTE_DEVICE, UserManager.DISALLOW_UNMUTE_MICROPHONE, UserManager.DISALLOW_USB_FILE_TRANSFER, UserManager.DISALLOW_USER_SWITCH, android.os.UserManager.DISALLOW_WALLPAPER, UserManager.DISALLOW_WIFI_DIRECT, UserManager.DISALLOW_WIFI_TETHERING, UserManager.ENSURE_VERIFY_APPS, or UserManager.KEY_RESTRICTIONS_PENDING This value cannot be null.

Returns
String This value cannot be null.