Skip to content
  • There are no suggestions because the search field is empty.

Security Component

The Security Policy Component is used to control how secure a device must be. It lets you manage screen lock requirements, encryption, system restrictions, and what actions users are allowed to take on the device.

Use this component when you need to protect data and prevent misuse of a managed device.


Device Radio State

Device Radio State

API reference: deviceRadioState — Type: object

Covers controls for radio state such as Wi-Fi, bluetooth, and more.

Control Wi-Fi states

API reference: wifiState — Type: enum

Controls whether the Wi-Fi is on or off and if the user can change said state. Supported on company-owned devices running Android 13 and above.

OptionEnumDescription
DefaultWIFI_STATE_UNSPECIFIEDDefaults to WIFI_STATE_USER_CHOICE.
User choiceWIFI_STATE_USER_CHOICEUser is allowed to enable/disable Wi-Fi.
Wi-Fi enforced onWIFI_ENABLEDWi-Fi is on and the user is not allowed to turn it off.
Wi-Fi enforced offWIFI_DISABLEDWi-Fi is off and the user is not allowed to turn it on.

Control airplane mode state

API reference: airplaneModeState — Type: enum

Supported on Android 9 and above on fully managed devices and work profiles on company-owned devices.

OptionEnumDescription
DefaultAIRPLANE_MODE_STATE_UNSPECIFIEDDefaults to AIRPLANE_MODE_USER_CHOICE.
User choiceAIRPLANE_MODE_USER_CHOICEThe user is allowed to toggle airplane mode on or off.
DisabledAIRPLANE_MODE_DISABLEDAirplane mode is disabled. The user is not allowed to toggle it on.

Control ultra wideband state

API reference: ultraWidebandState — Type: enum

Supported on Android 14 and above on fully managed devices and work profiles on company-owned devices.

OptionEnumDescription
DefaultULTRA_WIDEBAND_STATE_UNSPECIFIEDDefaults to ULTRA_WIDEBAND_USER_CHOICE.
User choiceULTRA_WIDEBAND_USER_CHOICEThe user is allowed to toggle ultra wideband on or off.
DisabledULTRA_WIDEBAND_DISABLEDUltra wideband is disabled. The user is not allowed to toggle it on.

Control cellular 2G setting usability

API reference: cellularTwoGState — Type: enum

Supported on Android 14 and above on fully managed devices and work profiles on company-owned devices.

OptionEnumDescription
DefaultCELLULAR_TWO_G_STATE_UNSPECIFIEDDefaults to CELLULAR_TWO_G_USER_CHOICE.
User choiceCELLULAR_TWO_G_USER_CHOICEThe user is allowed to toggle cellular 2G on or off.
DisabledCELLULAR_TWO_G_DISABLEDCellular 2G is disabled. The user is not allowed to toggle it on.

Minimum required security level of Wi-Fi networks

API reference: minimumWifiSecurityLevel — Type: enum

Supported on Android 13 and above on fully managed devices and work profiles on company-owned devices.

OptionEnumDescription
DefaultMINIMUM_WIFI_SECURITY_LEVEL_UNSPECIFIEDDefaults to OPEN_NETWORK_SECURITY.
OpenOPEN_NETWORK_SECURITYThe device can connect to all types of Wi-Fi networks.
Personal only (WEP, WPA2-PSK)PERSONAL_NETWORK_SECURITYOpen Wi-Fi networks are not allowed.
Enterprise EAP onlyENTERPRISE_NETWORK_SECURITYEnterprise EAP network is the minimum required.
Enterprise 192-bit onlyENTERPRISE_BIT192_NETWORK_SECURITY192-bit enterprise network is the minimum required.

Device Connectivity Management

Device Connectivity Management

API reference: deviceConnectivityManagement — Type: Object

Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more.

USB Data Access

API reference: usbDataAccess — Type: enum

Controls what files and/or data can be transferred via USB. Supported only on company-owned devices.

OptionEnumDescription
DefaultUSB_DATA_ACCESS_UNSPECIFIEDDefaults to DISALLOW_USB_FILE_TRANSFER.
Allow allALLOW_USB_DATA_TRANSFERAll types of USB data transfers are allowed.
Disallow file transferDISALLOW_USB_FILE_TRANSFERTransferring files over USB is disallowed. Mouse and keyboard connections are still allowed.
Disallow allDISALLOW_USB_DATA_TRANSFERAll types of USB data transfers are prohibited. Requires Android 12+ with USB HAL 1.3+.

Wi-Fi configuration

API reference: ConfigureWifi — Type: enum

OptionEnumDescription
DefaultCONFIGURE_WIFI_UNSPECIFIEDDefaults to ALLOW_CONFIGURING_WIFI unless wifiConfigDisabled is true.
AllowALLOW_CONFIGURING_WIFIThe user is allowed to configure Wi-Fi.
Disallow new configurationsDISALLOW_ADD_WIFI_CONFIGAdding new Wi-Fi configurations is disallowed. User can only switch between already configured networks. Android 13+.
Disallow allDISALLOW_CONFIGURING_WIFIDisallows all Wi-Fi configuration.

Wi-Fi direct configuration

API reference: wifiDirectSettings — Type: enum

Supported on company-owned devices running Android 13 and above.

OptionEnumDescription
DefaultWIFI_DIRECT_SETTINGS_UNSPECIFIEDDefaults to ALLOW_WIFI_DIRECT.
AllowALLOW_WIFI_DIRECTThe user is allowed to use Wi-Fi direct.
DisallowDISALLOW_WIFI_DIRECTThe user is not allowed to use Wi-Fi direct.

Tethering settings

API reference: tetheringSettings — Type: enum

OptionEnumDescription
DefaultTETHERING_SETTINGS_UNSPECIFIEDDefaults to ALLOW_ALL_TETHERING.
Allow allALLOW_ALL_TETHERINGAllows configuration and use of all forms of tethering.
Disallow Wi-Fi tetheringDISALLOW_WIFI_TETHERINGDisallows Wi-Fi tethering. Android 13+ on company-owned devices.
Disallow allDISALLOW_ALL_TETHERINGDisallows all forms of tethering.

Wi-Fi SSID Restriction Policy

API reference: wifiSsidPolicy — Type: Object

Restrictions on which Wi-Fi SSIDs the device can connect to. Supported on company-owned devices running Android 13 and above.

FieldAPI ReferenceTypeDescription
Wi-Fi SSID policy typewifiSsidPolicyTypeenumType of the Wi-Fi SSID policy to be applied.
SSIDs to be allowedwifiSsids[]objectList of Wi-Fi SSIDs that should be applied in the policy.

Wi-Fi SSID Policy Type options

OptionEnumDescription
DefaultWIFI_SSID_POLICY_TYPE_UNSPECIFIEDNo restrictions on which SSID the device can connect to.
DenyWIFI_SSID_DENYLISTThe device cannot connect to any Wi-Fi network in the denylist.
AllowWIFI_SSID_ALLOWLISTThe device can only connect to SSIDs in the allowlist.

Wi-Fi Roaming Settings

API reference: wifiRoamingPolicy.wifiRoamingSettings[] — Type: Object

OptionEnumDescription
UnspecifiedWIFI_ROAMING_MODE_UNSPECIFIEDDefaults to WIFI_ROAMING_DEFAULT.
DisabledWIFI_ROAMING_DISABLEDWi-Fi roaming is disabled. Android 15+ on fully managed devices.
DefaultWIFI_ROAMING_DEFAULTDefault Wi-Fi roaming mode of the device.
AggressiveWIFI_ROAMING_AGGRESSIVEAllows quicker Wi-Fi roaming. Android 15+.

Bluetooth Sharing

API reference: bluetoothSharing — Type: enum

OptionEnumDescription
DefaultBLUETOOTH_SHARING_UNSPECIFIEDDefaults to BLUETOOTH_SHARING_DISALLOWED on work profiles and BLUETOOTH_SHARING_ALLOWED on fully managed devices.
AllowedBLUETOOTH_SHARING_ALLOWEDBluetooth sharing is allowed. Supported on Android 8+.
DisallowedBLUETOOTH_SHARING_DISALLOWEDBluetooth sharing is disallowed. Supported on Android 8+.

Preferential Network Service Settings

Preferential Network Service Settings

API reference: preferentialNetworkServiceSettings — Type: Object

Can be set on both work profiles and fully managed devices on Android 13 and above.

Default Preferential Network

API reference: preferentialNetworkServiceSettings.defaultPreferentialNetworkId — Type: enum

OptionEnumDescription
UnspecifiedPREFERENTIAL_NETWORK_ID_UNSPECIFIEDDefaults to NO_PREFERENTIAL_NETWORK.
No preferential networkNO_PREFERENTIAL_NETWORKApplication does not use any preferential network.
Network 1PREFERENTIAL_NETWORK_ID_ONEPreferential network identifier 1.
Network 2PREFERENTIAL_NETWORK_ID_TWOPreferential network identifier 2.
Network 3PREFERENTIAL_NETWORK_ID_THREEPreferential network identifier 3.
Network 4PREFERENTIAL_NETWORK_ID_FOURPreferential network identifier 4.
Network 5PREFERENTIAL_NETWORK_ID_FIVEPreferential network identifier 5.

Fallback to Default Connection

API reference: preferentialNetworkServiceConfigs[].fallbackToDefaultConnection — Type: enum

OptionEnumDescription
DefaultFALLBACK_TO_DEFAULT_CONNECTION_UNSPECIFIEDDefaults to FALLBACK_TO_DEFAULT_CONNECTION_ALLOWED.
AllowFALLBACK_TO_DEFAULT_CONNECTION_ALLOWEDFallback to default connection is allowed.
DisallowFALLBACK_TO_DEFAULT_CONNECTION_DISALLOWEDFallback to default connection is not allowed.

Non matching networks

API reference: preferentialNetworkServiceConfigs[].nonMatchingNetworks — Type: enum

OptionEnumDescription
DefaultNON_MATCHING_NETWORKS_UNSPECIFIEDDefaults to NON_MATCHING_NETWORKS_ALLOWED.
AllowNON_MATCHING_NETWORKS_ALLOWEDApps can use networks other than the preferential service.
DisallowNON_MATCHING_NETWORKS_DISALLOWEDApps are blocked from using other networks. Android 14+.

Short message for functionalities disabled by admin

API reference: shortSupportMessage.UserFacingMessage

A message displayed to the user in the settings screen wherever functionality has been disabled by the admin. Maximum 200 characters.

Long message displayed on device administrator settings

API reference: longSupportMessage.UserFacingMessage

A message displayed to the user in the device administrators settings screen. Maximum 4096 characters.

Features & actions on lock screen

API reference: keyguardDisabledFeatures[] — Type: enum

OptionEnumDescription
CameraCAMERADisable the camera on secure keyguard screens.
NotificationsNOTIFICATIONSDisable showing all notifications on secure keyguard screens.
FingerprintDISABLE_FINGERPRINTDisable fingerprint sensor on secure keyguard screens.
Face unlockFACEDisable face authentication on secure keyguard screens.
Iris unlockIRISDisable iris authentication on secure keyguard screens.
Trust agentsTRUST_AGENTSIgnore trust agent state on secure keyguard screens.
Remote inputDISABLE_REMOTE_INPUTDisable remote input on secure keyguard screens.
ShortcutsSHORTCUTSDisable all shortcuts on secure keyguard screen on Android 14+.

Encryption Policy

API reference: encryptionPolicy — Type: enum

OptionEnumDescription
DefaultENCRYPTION_POLICY_UNSPECIFIEDNo encryption required.
Encryption without password on bootENABLED_WITHOUT_PASSWORDEncryption required but no password required to boot.
Encryption with password on bootENABLED_WITH_PASSWORDEncryption required with password required to boot.

App Functions

API reference: appFunctions — Type: enum

OptionEnumDescription
DefaultAPP_FUNCTIONS_UNSPECIFIEDDefaults to APP_FUNCTIONS_ALLOWED.
AllowedAPP_FUNCTIONS_ALLOWEDApps are allowed to expose app functions.
DisallowedAPP_FUNCTIONS_DISALLOWEDApps are not allowed to expose app functions.

Password Policies

Password Policies

API reference: passwordPolicies[] — Type: Object

Password requirement policies. Different policies can be set for work profile or fully managed devices by setting the passwordScope field.

Policy scope

API reference: passwordScope — Type: enum

OptionEnumDescription
Devices and profilesSCOPE_UNSPECIFIEDApplied to the work profile for work profile devices and the whole device for fully managed/dedicated devices.
DevicesSCOPE_DEVICERequirements applied only to the device.
ProfilesSCOPE_PROFILERequirements applied only to the work profile.

Unified work and personal lock

API reference: unifiedLockSettings — Type: enum

Applicable when: passwordScope = SCOPE_PROFILE. Controls whether a unified lock is allowed on Android 9+.

OptionEnumDescription
DefaultUNIFIED_LOCK_SETTINGS_UNSPECIFIEDDefaults to ALLOW_UNIFIED_WORK_AND_PERSONAL_LOCK.
Allow unified lockALLOW_UNIFIED_WORK_AND_PERSONAL_LOCKA common lock for the device and the work profile is allowed.
Require separate work lockREQUIRE_SEPARATE_WORK_LOCKA separate lock for the work profile is required.

Time before password re-entry is required

API reference: requirePasswordUnlock — Type: enum

OptionEnumDescription
DefaultREQUIRE_PASSWORD_UNLOCK_UNSPECIFIEDDefaults to USE_DEFAULT_DEVICE_TIMEOUT.
Use defaultUSE_DEFAULT_DEVICE_TIMEOUTThe timeout period is set to the device's default.
24 hoursREQUIRE_EVERY_DAYThe timeout period is set to 24 hours.

Password Expiration Timeout

API reference: passwordExpirationTimeout — Type: string

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "86400s" (24 hours). Value 0 means no expiration.

Password Quality

API reference: passwordQuality — Type: enum

OptionEnumDescription
No requirementsPASSWORD_QUALITY_UNSPECIFIEDThere are no password requirements.
SomethingSOMETHINGA password is required, but no restrictions on content.
BiometricBIOMETRIC_WEAKLow-security biometric recognition technology at minimum.
NumericNUMERICThe password must contain numeric characters.
Numeric complexNUMERIC_COMPLEXNumeric characters with no repeating or ordered sequences.
AlphabeticALPHABETICThe password must contain alphabetic or symbol characters.
AlphanumericALPHANUMERICThe password must contain both numeric and alphabetic characters.
CustomCOMPLEXMust meet the minimum requirements specified in passwordMinimumLength, passwordMinimumLetters, etc.

Minimum length

API reference: passwordMinimumLength — Type: Integer

The minimum allowed password length. A value of 0 means no restriction. Only enforced when passwordQuality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX.

Complex Password Character Rules

Applicable when: passwordQuality = COMPLEX

FieldAPI referenceTypeDescription
Minimum letterspasswordMinimumLettersintegerMinimum number of letters required.
Minimum lowercasepasswordMinimumLowerCaseintegerMinimum number of lower case letters required.
Minimum uppercasepasswordMinimumUpperCaseintegerMinimum number of upper case letters required.
Minimum non-letterpasswordMinimumNonLetterintegerMinimum number of non-letter characters required.
Minimum numericpasswordMinimumNumericintegerMinimum number of numerical digits required.
Minimum symbolspasswordMinimumSymbolsintegerMinimum number of symbols required.

Password changes before reuse is allowed

API reference: passwordHistoryLength — Type: Integer

The number of previous passwords that cannot be reused. Value 0 means no restriction.

Password failures before device is wiped

API reference: maximumFailedPasswordsForWipe — Type: Integer

Number of incorrect passwords that can be entered before a device is wiped. Value 0 means no restriction.


Enforcement Rules

Enforcement Rules

API reference: policyEnforcementRules

Rules that define the behavior when a particular policy cannot be applied on a device. Each rule defines actions to take if a device is not compliant with the specified policy.

Each enforcement rule group contains:

  • Target policies to monitor
  • Optional block action timeline
  • Optional wipe action timeline
  • Optional Factory Reset Protection (FRP) preservation

Available Policy Targets

Policy NameAndroid Policies
Password PoliciespasswordPolicies
Time before lockmaximumTimeToLock
Disable screenshotscreenCaptureDisabled
Disable cameracameraDisabled
Camera accesscameraAccess
Disabled lock screen featureskeyguardDisabledFeatures
Default permission policydefaultPermissionPolicy
Disable factory resetfactoryResetDisabled
Disable installing appsinstallAppsDisabled
Disable uninstalling appsuninstallAppsDisabled
Encryption policyencryptionPolicy
WiFi ConfigurationopenNetworkConfiguration
Always on VPNalwaysOnVpnPackage
System update policysystemUpdate
Applications policyapplications
Enable kiosk launcherkioskCustomLauncherEnabled
Kiosk action settingskioskCustomization

Block Device Access

API reference: policyEnforcementRules.blockAction.blockAfterDays — Type: Integer

Number of days the policy is non-compliant before the device is blocked. Value 0 means immediate block. Must be less than wipeAfterDays.

Wipe Device Data

API reference: policyEnforcementRules.wipeAction.wipeAfterDays — Type: Integer

Number of days the policy is non-compliant before the device is wiped. Must be greater than blockAfterDays.

Preserve Factory Reset Protection (FRP)

API reference: policyEnforcementRules.wipeAction.preserveFrp — Type: boolean

Whether factory-reset protection data is preserved on the device after wipe. Does not apply to work profiles.


Cross Profile Policies

Cross Profile Policies

API reference: crossProfilePolicies — Type: Object

Controls the data from the work profile that can be accessed from the personal profile and vice versa.

Share contacts from work to personal profile

API reference: crossProfilePolicies.showWorkContactsInPersonalProfile — Type: enum

OptionEnumDescription
DefaultSHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_UNSPECIFIEDDefaults to SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED.
AllowedSHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWEDAllows apps in the personal profile to access work profile contacts.
DisallowedSHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWEDPrevents personal apps from accessing work profile contacts.
Disallowed except system appsSHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEMPrevents most personal apps except OEM default Dialer, Messages, and Contacts. Android 14+.

Share copied text across profiles

API reference: crossProfilePolicies.crossProfileCopyPaste — Type: enum

OptionEnumDescription
DefaultCROSS_PROFILE_COPY_PASTE_UNSPECIFIEDDefaults to COPY_FROM_WORK_TO_PERSONAL_DISALLOWED.
AllowedCROSS_PROFILE_COPY_PASTE_ALLOWEDText copied in either profile can be pasted in the other.
Disallowed from work to personalCOPY_FROM_WORK_TO_PERSONAL_DISALLOWEDPrevents pasting work profile text into the personal profile.

Share app data across profiles

API reference: crossProfilePolicies.crossProfileDataSharing — Type: enum

OptionEnumDescription
DefaultCROSS_PROFILE_DATA_SHARING_UNSPECIFIEDDefaults to DATA_SHARING_FROM_WORK_TO_PERSONAL_DISALLOWED.
AllowedCROSS_PROFILE_DATA_SHARING_ALLOWEDData from either profile can be shared with the other.
Disallowed from work to personalDATA_SHARING_FROM_WORK_TO_PERSONAL_DISALLOWEDPrevents sharing data from the work profile to the personal profile.
Disallowed alwaysCROSS_PROFILE_DATA_SHARING_DISALLOWEDPrevents data sharing in both directions.

Work profile widgets default

API reference: crossProfilePolicies.workProfileWidgetsDefault — Type: enum

OptionEnumDescription
DefaultWORK_PROFILE_WIDGETS_DEFAULT_UNSPECIFIEDDefaults to WORK_PROFILE_WIDGETS_DEFAULT_DISALLOWED.
AllowedWORK_PROFILE_WIDGETS_DEFAULT_ALLOWEDWork profile widgets are allowed by default.
DisallowedWORK_PROFILE_WIDGETS_DEFAULT_DISALLOWEDWork profile widgets are disallowed by default.

Personal Usage Policies

Personal Usage Policies

API reference: personalUsagePolicies — Type: Object

Policies managing personal usage on a company-owned device with a work profile.

Camera Disabled

API reference: personalUsagePolicies.cameraDisabled — Type: boolean

If true, the camera is disabled on the personal profile. Note: cameraDisabled is deprecated — use cameraAccess instead.

Screen Capture Disabled

API reference: personalUsagePolicies.screenCaptureDisabled — Type: boolean

If true, screen capture is disabled for all users.

Max Days With Work Profile Off

API reference: personalUsagePolicies.maxDaysWithWorkOff — Type: Integer

Controls how long the work profile can stay off. Minimum duration is 3 days. Value 0 turns the feature off.

Private Space Policy

API reference: personalUsagePolicies.privateSpacePolicy — Type: enum

OptionEnumDescription
DefaultPRIVATE_SPACE_POLICY_UNSPECIFIEDDefaults to PRIVATE_SPACE_ALLOWED.
AllowedPRIVATE_SPACE_ALLOWEDUsers can create a private space profile.
DisallowedPRIVATE_SPACE_DISALLOWEDUsers cannot create a private space profile. Any existing private space will be removed.

Advanced Security

Advanced Security

API reference: advancedSecurityOverrides — Type: Object

Advanced security settings. In most cases, setting these is not needed.

Untrusted Apps Policy

API reference: advancedSecurityOverrides.untrustedAppsPolicy — Type: enum

OptionEnumDescription
DefaultUNTRUSTED_APPS_POLICY_UNSPECIFIEDDefaults to DISALLOW_INSTALL.
Don't allow installationDISALLOW_INSTALLDisallow untrusted app installs on entire device.
Allow in personal profile onlyALLOW_INSTALL_IN_PERSONAL_PROFILE_ONLYAllow untrusted app installs in the personal profile only.
Always allowALLOW_INSTALL_DEVICE_WIDEAllow untrusted app installs on entire device.

Google Play Protect Verification

API reference: advancedSecurityOverrides.googlePlayProtectVerifyApps — Type: enum

OptionEnumDescription
DefaultGOOGLE_PLAY_PROTECT_VERIFY_APPS_UNSPECIFIEDDefaults to VERIFY_APPS_ENFORCED.
EnforcedVERIFY_APPS_ENFORCEDForce-enables app verification.
User choiceVERIFY_APPS_USER_CHOICEAllows the user to choose whether to enable app verification.

Control access to developer settings & safe boot

API reference: advancedSecurityOverrides.developerSettings — Type: enum

OptionEnumDescription
DefaultDEVELOPER_SETTINGS_UNSPECIFIEDDefaults to DEVELOPER_SETTINGS_DISABLED.
DisabledDEVELOPER_SETTINGS_DISABLEDDisables all developer settings and prevents the user from accessing them.
AllowedDEVELOPER_SETTINGS_ALLOWEDAllows all developer settings.

Common Criteria Mode

API reference: advancedSecurityOverrides.commonCriteriaMode — Type: enum

Supported only on company-owned devices running Android 11+. Warning: enforces a strict security model — standard device use may be affected.

OptionEnumDescription
DefaultCOMMON_CRITERIA_MODE_UNSPECIFIEDDefaults to COMMON_CRITERIA_MODE_DISABLED.
EnabledCOMMON_CRITERIA_MODE_ENABLEDEnables Common Criteria Mode.
DisabledCOMMON_CRITERIA_MODE_DISABLEDDisables Common Criteria Mode.

Content protection policy (Android 15+)

API reference: advancedSecurityOverrides.contentProtectionPolicy — Type: enum

OptionEnumDescription
DefaultCONTENT_PROTECTION_POLICY_UNSPECIFIEDDefaults to CONTENT_PROTECTION_DISABLED.
DisabledCONTENT_PROTECTION_DISABLEDContent protection is disabled and the user cannot change this.
EnforcedCONTENT_PROTECTION_ENFORCEDContent protection is enabled and the user cannot change this.
User choiceCONTENT_PROTECTION_USER_CHOICEThe user is allowed to choose the behavior of content protection.

Enable creating windows besides app windows

API reference: createWindowsDisabled — Type: boolean

Whether creating windows besides app windows is disabled.


Enable changing the device user icon

API reference: setUserIconDisabled — Type: boolean

Whether changing the user icon is disabled. Applies on Android 7 and above.


Enable changing the device wallpaper

API reference: setWallpaperDisabled — Type: boolean

Whether changing the wallpaper is disabled.


Maximum time before device sleeps

API reference: maximumTimeToLock — Type: string

Maximum time in milliseconds for user activity until the device locks. A value of 0 means no restriction.


Minimum Android API level

API reference: minimumApiLevel — Type: Integer

The minimum allowed Android API level.


Camera Access

API reference: cameraAccess — Type: enum

OptionEnumDescription
DefaultCAMERA_ACCESS_UNSPECIFIEDEquivalent to CAMERA_ACCESS_DISABLED if cameraDisabled is true, otherwise CAMERA_ACCESS_USER_CHOICE.
User choiceCAMERA_ACCESS_USER_CHOICEAll cameras on the device are available. User can use the camera access toggle on Android 12+.
DisabledCAMERA_ACCESS_DISABLEDAll cameras on the device are disabled.
EnforcedCAMERA_ACCESS_ENFORCEDAll cameras are available. On fully managed devices running Android 12+, the user cannot use the camera access toggle.

Printing Policy

API reference: printingPolicy — Type: enum

Supported on Android 9 and above.

OptionEnumDescription
DefaultPRINTING_POLICY_UNSPECIFIEDDefaults to PRINTING_ALLOWED.
AllowedPRINTING_ALLOWEDPrinting is allowed.
DisallowedPRINTING_DISALLOWEDPrinting is disallowed.

Enable screenshots on device

API reference: screenCaptureDisabled — Type: boolean

Whether screen capture is disabled.


Enable adding new users and profiles on device

API reference: addUserDisabled — Type: boolean

Whether adding new users and profiles is disabled.


Enable factory reset from device settings

API reference: factoryResetDisabled — Type: boolean

Whether factory resetting from settings is disabled.


Enable installing apps on device

API reference: installAppsDisabled — Type: boolean

Whether user installation of apps is disabled.


Enable uninstalling apps on device

API reference: uninstallAppsDisabled — Type: boolean

Whether user uninstallation of applications is disabled.


Enable adding and removing accounts on device

API reference: modifyAccountsDisabled — Type: boolean

Whether adding or removing accounts is disabled.


Enable keyguard on device (Lock screen)

API reference: keyguardDisabled — Type: boolean

If true, this disables the Lock Screen for primary and/or secondary displays. Supported only in dedicated device management mode.


Enable user credentials configuration on device

API reference: credentialsConfigDisabled — Type: boolean

Whether configuring user credentials is disabled.


Enable removing other users on device

API reference: removeUserDisabled — Type: boolean

Whether removing other users is disabled.


Enable mount of physical external media on device

API reference: mountPhysicalMediaDisabled — Type: boolean

Whether the user mounting physical external media is disabled.


Summary

Use the Security Policy Component to:

  • ✔ Enforce lock screen and password rules
  • ✔ Prevent data leakage (USB, NFC, Bluetooth)
  • ✔ Control network and roaming activity
  • ✔ Restrict apps and system access
  • ✔ Protect against device tampering
  • ✔ Enforce company security standards

This is the most important component for enterprise compliance and data protection.