- [Resource: Policy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.SCHEMA_REPRESENTATION)
- [ApplicationPolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.SCHEMA_REPRESENTATION)
- [InstallType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType)
- [PermissionPolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PermissionPolicy)
- [PermissionGrant](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PermissionGrant)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PermissionGrant.SCHEMA_REPRESENTATION)
- [DelegatedScope](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DelegatedScope)
- [ManagedConfigurationTemplate](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ManagedConfigurationTemplate)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ManagedConfigurationTemplate.SCHEMA_REPRESENTATION)
- [ConnectedWorkAndPersonalApp](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ConnectedWorkAndPersonalApp)
- [AutoUpdateMode](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutoUpdateMode)
- [ExtensionConfig](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ExtensionConfig)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ExtensionConfig.SCHEMA_REPRESENTATION)
- [AlwaysOnVpnLockdownExemption](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AlwaysOnVpnLockdownExemption)
- [WorkProfileWidgets](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WorkProfileWidgets)
- [CredentialProviderPolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CredentialProviderPolicy)
- [CustomAppConfig](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CustomAppConfig)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CustomAppConfig.SCHEMA_REPRESENTATION)
- [UserUninstallSettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserUninstallSettings)
- [InstallConstraint](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallConstraint)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallConstraint.SCHEMA_REPRESENTATION)
- [NetworkTypeConstraint](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NetworkTypeConstraint)
- [ChargingConstraint](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ChargingConstraint)
- [DeviceIdleConstraint](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceIdleConstraint)
- [UserControlSettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserControlSettings)
- [PreferentialNetworkId](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkId)
- [Role](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Role)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Role.SCHEMA_REPRESENTATION)
- [RoleType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType)
- [ExtraCapabilities](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ExtraCapabilities)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ExtraCapabilities.SCHEMA_REPRESENTATION)
- [LocalDeviceWipeCommand](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LocalDeviceWipeCommand)
- [KeyguardDisabledFeature](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#KeyguardDisabledFeature)
- [PersistentPreferredActivity](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersistentPreferredActivity)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersistentPreferredActivity.SCHEMA_REPRESENTATION)
- [SystemUpdate](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemUpdate)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemUpdate.SCHEMA_REPRESENTATION)
- [SystemUpdateType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemUpdateType)
- [FreezePeriod](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#FreezePeriod)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#FreezePeriod.SCHEMA_REPRESENTATION)
- [Date](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Date)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Date.SCHEMA_REPRESENTATION)
- [StatusReportingSettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#StatusReportingSettings)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#StatusReportingSettings.SCHEMA_REPRESENTATION)
- [ApplicationReportingSettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationReportingSettings)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationReportingSettings.SCHEMA_REPRESENTATION)
- [PackageNameList](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PackageNameList)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PackageNameList.SCHEMA_REPRESENTATION)
- [BatteryPluggedMode](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BatteryPluggedMode)
- [ProxyInfo](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ProxyInfo)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ProxyInfo.SCHEMA_REPRESENTATION)
- [ChoosePrivateKeyRule](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ChoosePrivateKeyRule)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ChoosePrivateKeyRule.SCHEMA_REPRESENTATION)
- [AlwaysOnVpnPackage](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AlwaysOnVpnPackage)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AlwaysOnVpnPackage.SCHEMA_REPRESENTATION)
- [LocationMode](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LocationMode)
- [ComplianceRule](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ComplianceRule)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ComplianceRule.SCHEMA_REPRESENTATION)
- [NonComplianceDetailCondition](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NonComplianceDetailCondition)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NonComplianceDetailCondition.SCHEMA_REPRESENTATION)
- [ApiLevelCondition](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApiLevelCondition)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApiLevelCondition.SCHEMA_REPRESENTATION)
- [AppAutoUpdatePolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AppAutoUpdatePolicy)
- [AppTrack](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AppTrack)
- [EncryptionPolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#EncryptionPolicy)
- [PlayStoreMode](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PlayStoreMode)
- [SetupAction](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SetupAction)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SetupAction.SCHEMA_REPRESENTATION)
- [LaunchAppAction](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LaunchAppAction)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LaunchAppAction.SCHEMA_REPRESENTATION)
- [PolicyEnforcementRule](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PolicyEnforcementRule)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PolicyEnforcementRule.SCHEMA_REPRESENTATION)
- [BlockAction](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BlockAction)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BlockAction.SCHEMA_REPRESENTATION)
- [BlockScope](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BlockScope)
- [WipeAction](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WipeAction)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WipeAction.SCHEMA_REPRESENTATION)
- [KioskCustomization](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#KioskCustomization)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#KioskCustomization.SCHEMA_REPRESENTATION)
- [PowerButtonActions](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PowerButtonActions)
- [SystemErrorWarnings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemErrorWarnings)
- [SystemNavigation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemNavigation)
- [StatusBar](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#StatusBar)
- [DeviceSettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceSettings)
- [AdvancedSecurityOverrides](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AdvancedSecurityOverrides)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AdvancedSecurityOverrides.SCHEMA_REPRESENTATION)
- [UntrustedAppsPolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UntrustedAppsPolicy)
- [GooglePlayProtectVerifyApps](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#GooglePlayProtectVerifyApps)
- [DeveloperSettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeveloperSettings)
- [CommonCriteriaMode](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CommonCriteriaMode)
- [MtePolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MtePolicy)
- [ContentProtectionPolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ContentProtectionPolicy)
- [PersonalUsagePolicies](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalUsagePolicies)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalUsagePolicies.SCHEMA_REPRESENTATION)
- [PlayStoreMode](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PlayStoreMode_1)
- [PersonalApplicationPolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalApplicationPolicy)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalApplicationPolicy.SCHEMA_REPRESENTATION)
- [InstallType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType_1)
- [PrivateSpacePolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateSpacePolicy)
- [BluetoothSharing](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BluetoothSharing)
- [PersonalCrossDevicePolicies](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalCrossDevicePolicies)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalCrossDevicePolicies.SCHEMA_REPRESENTATION)
- [TaskContinuityHandoff](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TaskContinuityHandoff)
- [AutoDateAndTimeZone](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutoDateAndTimeZone)
- [OncCertificateProvider](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#OncCertificateProvider)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#OncCertificateProvider.SCHEMA_REPRESENTATION)
- [ContentProviderEndpoint](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ContentProviderEndpoint)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ContentProviderEndpoint.SCHEMA_REPRESENTATION)
- [CrossProfilePolicies](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfilePolicies)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfilePolicies.SCHEMA_REPRESENTATION)
- [ShowWorkContactsInPersonalProfile](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ShowWorkContactsInPersonalProfile)
- [CrossProfileCopyPaste](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfileCopyPaste)
- [CrossProfileDataSharing](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfileDataSharing)
- [WorkProfileWidgetsDefault](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WorkProfileWidgetsDefault)
- [CrossProfileAppFunctions](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfileAppFunctions)
- [PreferentialNetworkService](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkService)
- [UsageLog](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UsageLog)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UsageLog.SCHEMA_REPRESENTATION)
- [LogType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LogType)
- [CameraAccess](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CameraAccess)
- [MicrophoneAccess](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MicrophoneAccess)
- [DeviceConnectivityManagement](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceConnectivityManagement)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceConnectivityManagement.SCHEMA_REPRESENTATION)
- [UsbDataAccess](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UsbDataAccess)
- [ConfigureWifi](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ConfigureWifi)
- [WifiDirectSettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiDirectSettings)
- [TetheringSettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TetheringSettings)
- [WifiSsidPolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicy)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicy.SCHEMA_REPRESENTATION)
- [WifiSsidPolicyType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicyType)
- [WifiSsid](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsid)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsid.SCHEMA_REPRESENTATION)
- [WifiRoamingPolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiRoamingPolicy)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiRoamingPolicy.SCHEMA_REPRESENTATION)
- [WifiRoamingSetting](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiRoamingSetting)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiRoamingSetting.SCHEMA_REPRESENTATION)
- [WifiRoamingMode](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiRoamingMode)
- [BluetoothSharing](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BluetoothSharing_1)
- [PreferentialNetworkServiceSettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceSettings)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceSettings.SCHEMA_REPRESENTATION)
- [PreferentialNetworkServiceConfig](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceConfig)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceConfig.SCHEMA_REPRESENTATION)
- [FallbackToDefaultConnection](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#FallbackToDefaultConnection)
- [NonMatchingNetworks](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NonMatchingNetworks)
- [ApnPolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnPolicy)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnPolicy.SCHEMA_REPRESENTATION)
- [OverrideApns](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#OverrideApns)
- [ApnSetting](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnSetting)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnSetting.SCHEMA_REPRESENTATION)
- [ApnType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnType)
- [AlwaysOnSetting](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AlwaysOnSetting)
- [AuthType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AuthType)
- [MvnoType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MvnoType)
- [NetworkType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NetworkType)
- [Protocol](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Protocol)
- [PrivateDnsSettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsSettings)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsSettings.SCHEMA_REPRESENTATION)
- [PrivateDnsMode](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsMode)
- [DeviceRadioState](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceRadioState)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceRadioState.SCHEMA_REPRESENTATION)
- [WifiState](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiState)
- [AirplaneModeState](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AirplaneModeState)
- [UltraWidebandState](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UltraWidebandState)
- [CellularTwoGState](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CellularTwoGState)
- [MinimumWifiSecurityLevel](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MinimumWifiSecurityLevel)
- [UserInitiatedAddEsimSettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserInitiatedAddEsimSettings)
- [Nfc](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Nfc)
- [CredentialProviderPolicyDefault](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CredentialProviderPolicyDefault)
- [PrintingPolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrintingPolicy)
- [DisplaySettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DisplaySettings)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DisplaySettings.SCHEMA_REPRESENTATION)
- [ScreenBrightnessSettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessSettings)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessSettings.SCHEMA_REPRESENTATION)
- [ScreenBrightnessMode](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessMode)
- [ScreenTimeoutSettings](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenTimeoutSettings)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenTimeoutSettings.SCHEMA_REPRESENTATION)
- [ScreenTimeoutMode](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenTimeoutMode)
- [AssistContentPolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AssistContentPolicy)
- [WorkAccountSetupConfig](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WorkAccountSetupConfig)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WorkAccountSetupConfig.SCHEMA_REPRESENTATION)
- [AuthenticationType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AuthenticationType)
- [WipeDataFlag](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WipeDataFlag)
- [EnterpriseDisplayNameVisibility](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#EnterpriseDisplayNameVisibility)
- [AppFunctions](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AppFunctions)
- [UnifiedUpdatePolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UnifiedUpdatePolicy)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UnifiedUpdatePolicy.SCHEMA_REPRESENTATION)
- [Rule](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Rule)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Rule.SCHEMA_REPRESENTATION)
- [Target](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Target)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Target.SCHEMA_REPRESENTATION)
- [TargetType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType)
- [SingleApp](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SingleApp)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SingleApp.SCHEMA_REPRESENTATION)
- [Stage](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Stage)
- [Predicate](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Predicate)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Predicate.SCHEMA_REPRESENTATION)
- [DayOfWeek](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DayOfWeek)
- [TimeOfDay](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TimeOfDay)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TimeOfDay.SCHEMA_REPRESENTATION)
- [Outcome](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Outcome)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Outcome.SCHEMA_REPRESENTATION)
- [OutcomeType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#OutcomeType)
- [DefaultApplicationSetting](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DefaultApplicationSetting)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DefaultApplicationSetting.SCHEMA_REPRESENTATION)
- [DefaultApplication](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DefaultApplication)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DefaultApplication.SCHEMA_REPRESENTATION)
- [AutofillPolicy](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutofillPolicy)
- [DeviceWidePolicies](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceWidePolicies)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceWidePolicies.SCHEMA_REPRESENTATION)
- [DeviceWideRadioState](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceWideRadioState)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceWideRadioState.SCHEMA_REPRESENTATION)
- [CrossDevicePolicies](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossDevicePolicies)
  - [JSON representation](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossDevicePolicies.SCHEMA_REPRESENTATION)
- [NearbyNotificationStreaming](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NearbyNotificationStreaming)
- [NearbyAppStreaming](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NearbyAppStreaming)
- [BackupService](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BackupService)
- [Methods](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#METHODS_SUMMARY)

## Resource: Policy

A policy resource represents a group of settings that govern the behavior of a managed device and the apps installed on it.

| JSON representation |
|---|
| ``` { "name": string, "version": string, "applications": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy`) } ], "maximumTimeToLock": string, "screenCaptureDisabled": boolean, "cameraDisabled": boolean, "keyguardDisabledFeatures": [ enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#KeyguardDisabledFeature`) ], "defaultPermissionPolicy": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PermissionPolicy`), "persistentPreferredActivities": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersistentPreferredActivity`) } ], "openNetworkConfiguration": { object }, "systemUpdate": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemUpdate`) }, "accountTypesWithManagementDisabled": [ string ], "addUserDisabled": boolean, "adjustVolumeDisabled": boolean, "factoryResetDisabled": boolean, "installAppsDisabled": boolean, "mountPhysicalMediaDisabled": boolean, "modifyAccountsDisabled": boolean, "safeBootDisabled": boolean, "uninstallAppsDisabled": boolean, "statusBarDisabled": boolean, "keyguardDisabled": boolean, "minimumApiLevel": integer, "statusReportingSettings": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#StatusReportingSettings`) }, "bluetoothContactSharingDisabled": boolean, "shortSupportMessage": { object (`https://developers.google.com/android/management/reference/rest/v1/UserFacingMessage`) }, "longSupportMessage": { object (`https://developers.google.com/android/management/reference/rest/v1/UserFacingMessage`) }, "passwordRequirements": { object (`https://developers.google.com/android/management/reference/rest/v1/PasswordRequirements`) }, "wifiConfigsLockdownEnabled": boolean, "bluetoothConfigDisabled": boolean, "cellBroadcastsConfigDisabled": boolean, "credentialsConfigDisabled": boolean, "mobileNetworksConfigDisabled": boolean, "tetheringConfigDisabled": boolean, "vpnConfigDisabled": boolean, "wifiConfigDisabled": boolean, "createWindowsDisabled": boolean, "networkResetDisabled": boolean, "outgoingBeamDisabled": boolean, "outgoingCallsDisabled": boolean, "removeUserDisabled": boolean, "shareLocationDisabled": boolean, "smsDisabled": boolean, "unmuteMicrophoneDisabled": boolean, "usbFileTransferDisabled": boolean, "ensureVerifyAppsEnabled": boolean, "permittedInputMethods": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PackageNameList`) }, "stayOnPluggedModes": [ enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BatteryPluggedMode`) ], "recommendedGlobalProxy": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ProxyInfo`) }, "setUserIconDisabled": boolean, "setWallpaperDisabled": boolean, "choosePrivateKeyRules": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ChoosePrivateKeyRule`) } ], "alwaysOnVpnPackage": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AlwaysOnVpnPackage`) }, "frpAdminEmails": [ string ], "deviceOwnerLockScreenInfo": { object (`https://developers.google.com/android/management/reference/rest/v1/UserFacingMessage`) }, "dataRoamingDisabled": boolean, "locationMode": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LocationMode`), "networkEscapeHatchEnabled": boolean, "bluetoothDisabled": boolean, "complianceRules": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ComplianceRule`) } ], "blockApplicationsEnabled": boolean, "installUnknownSourcesAllowed": boolean, "debuggingFeaturesAllowed": boolean, "funDisabled": boolean, "autoTimeRequired": boolean, "permittedAccessibilityServices": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PackageNameList`) }, "appAutoUpdatePolicy": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AppAutoUpdatePolicy`), "kioskCustomLauncherEnabled": boolean, "androidDevicePolicyTracks": [ enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AppTrack`) ], "skipFirstUseHintsEnabled": boolean, "privateKeySelectionEnabled": boolean, "encryptionPolicy": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#EncryptionPolicy`), "usbMassStorageEnabled": boolean, "permissionGrants": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PermissionGrant`) } ], "playStoreMode": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PlayStoreMode`), "setupActions": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SetupAction`) } ], "passwordPolicies": [ { object (`https://developers.google.com/android/management/reference/rest/v1/PasswordRequirements`) } ], "policyEnforcementRules": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PolicyEnforcementRule`) } ], "kioskCustomization": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#KioskCustomization`) }, "advancedSecurityOverrides": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AdvancedSecurityOverrides`) }, "personalUsagePolicies": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalUsagePolicies`) }, "autoDateAndTimeZone": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutoDateAndTimeZone`), "oncCertificateProviders": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#OncCertificateProvider`) } ], "crossProfilePolicies": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfilePolicies`) }, "preferentialNetworkService": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkService`), "usageLog": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UsageLog`) }, "cameraAccess": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CameraAccess`), "microphoneAccess": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MicrophoneAccess`), "deviceConnectivityManagement": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceConnectivityManagement`) }, "deviceRadioState": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceRadioState`) }, "credentialProviderPolicyDefault": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CredentialProviderPolicyDefault`), "printingPolicy": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrintingPolicy`), "displaySettings": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DisplaySettings`) }, "assistContentPolicy": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AssistContentPolicy`), "workAccountSetupConfig": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WorkAccountSetupConfig`) }, "wipeDataFlags": [ enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WipeDataFlag`) ], "enterpriseDisplayNameVisibility": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#EnterpriseDisplayNameVisibility`), "appFunctions": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AppFunctions`), "unifiedUpdatePolicy": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UnifiedUpdatePolicy`) }, "defaultApplicationSettings": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DefaultApplicationSetting`) } ], "autofillPolicy": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutofillPolicy`), "deviceWidePolicies": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceWidePolicies`) }, "crossDevicePolicies": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossDevicePolicies`) }, "backupService": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BackupService`) } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of the policy in the form `enterprises/{enterpriseId}/policies/{policyId}`. |
| `version` | `string (https://developers.google.com/discovery/v1/type-format format)` The version of the policy. This is a read-only field. The version is incremented each time the policy is updated. |
| `applications[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy`)`` Policy applied to apps. This can have at most 3,000 elements. |
| `maximumTimeToLock` | `string (https://developers.google.com/discovery/v1/type-format format)` Maximum time in milliseconds for user activity until the device locks. A value of 0 means there is no restriction. |
| `screenCaptureDisabled` | `boolean` Whether screen capture is disabled. This also blocks [Circle to Search](https://support.google.com/android/answer/14508957). |
| `cameraDisabled (deprecated)` | `boolean` > [!WARNING] > Use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.camera_access` instead. If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.camera_access` is set to any value other than `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CameraAccess.ENUM_VALUES.CAMERA_ACCESS_UNSPECIFIED`, this has no effect. Otherwise this field controls whether cameras are disabled: If true, all cameras are disabled, otherwise they are available. For fully managed devices this field applies for all apps on the device. For work profiles, this field applies only to apps in the work profile, and the camera access of apps outside the work profile is unaffected. |
| `keyguardDisabledFeatures[]` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#KeyguardDisabledFeature`)`` Disabled keyguard customizations, such as widgets. |
| `defaultPermissionPolicy` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PermissionPolicy`)`` The default permission policy for runtime permission requests. |
| `persistentPreferredActivities[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersistentPreferredActivity`)`` Default intent handler activities. **Warning:** Do not configure this and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.default_application_settings` for the same intent domain, such as web browsing. Setting both for the same intent domain can lead to unpredictable behavior. |
| `openNetworkConfiguration` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Network configuration for the device. See [configure networks](https://developers.google.com/android/management/configure-networks) for more information. |
| `systemUpdate` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemUpdate`)`` The system update policy, which controls how OS updates are applied. If the update type is `WINDOWED`, the update window will automatically apply to Play app updates as well. **Note:** [Google Play system updates](https://source.android.com/docs/core/ota/modular-system) (also called Mainline updates) are automatically downloaded and require a device reboot to be installed. Refer to the mainline section in [Manage system updates](https://developer.android.com/work/dpc/system-updates#mainline) for further details. If this policy is set, it takes precedence over `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.unified_update_policy` for OEM OS updates. For more information, see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.unified_update_policy`. |
| `accountTypesWithManagementDisabled[]` | `string` Account types that can't be managed by the user. |
| `addUserDisabled` | `boolean` Whether adding new users and profiles is disabled. For devices where `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.management_mode` is `DEVICE_OWNER` this field is ignored and the user is never allowed to add or remove users. |
| `adjustVolumeDisabled` | `boolean` Whether adjusting the master volume is disabled. Also mutes the device. The setting has effect only on fully managed devices. |
| `factoryResetDisabled` | `boolean` Whether factory resetting from settings is disabled. |
| `installAppsDisabled` | `boolean` Whether user installation of apps is disabled. |
| `mountPhysicalMediaDisabled` | `boolean` Whether the user mounting physical external media is disabled. |
| `modifyAccountsDisabled` | `boolean` Whether adding or removing accounts is disabled. |
| `safeBootDisabled (deprecated)` | `boolean` > [!WARNING] > `safeBootDisabled` is deprecated. Please use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AdvancedSecurityOverrides.FIELDS.developer_settings` instead. Whether rebooting the device into safe boot is disabled. |
| `uninstallAppsDisabled` | `boolean` Whether user uninstallation of applications is disabled. This prevents apps from being uninstalled, even those removed using `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.applications` |
| `statusBarDisabled (deprecated)` | `boolean` > [!WARNING] > This item is deprecated! Whether the status bar is disabled. This disables notifications, quick settings, and other screen overlays that allow escape from full-screen mode. DEPRECATED. To disable the status bar on a kiosk device, use [InstallType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#installtype) `KIOSK` or `kioskCustomLauncherEnabled`. |
| `keyguardDisabled` | `boolean` If true, this disables the [Lock Screen](https://source.android.com/docs/core/display/multi_display/lock-screen) for primary and/or secondary displays. This policy is supported only in dedicated device management mode. |
| `minimumApiLevel` | `integer` The minimum allowed Android API level. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.OS_NOT_PERMITTED` is reported if the Android API level of the device is lower than this value. |
| `statusReportingSettings` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#StatusReportingSettings`)`` Status reporting settings |
| `bluetoothContactSharingDisabled` | `boolean` Whether bluetooth contact sharing is disabled. |
| `shortSupportMessage` | ``object (`https://developers.google.com/android/management/reference/rest/v1/UserFacingMessage`)`` A message displayed to the user in the settings screen wherever functionality has been disabled by the admin. If the message is longer than 200 characters it may be truncated. |
| `longSupportMessage` | ``object (`https://developers.google.com/android/management/reference/rest/v1/UserFacingMessage`)`` A message displayed to the user in the device administators settings screen. |
| `passwordRequirements (deprecated)` | ``object (`https://developers.google.com/android/management/reference/rest/v1/PasswordRequirements`)`` > [!WARNING] > This item is deprecated! Password requirements. The field `passwordRequirements.require_password_unlock` must not be set. DEPRECATED - Use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.password_policies`. **Note:** Complexity-based values of `https://developers.google.com/android/management/reference/rest/v1/PasswordRequirements#PasswordQuality`, that is, `COMPLEXITY_LOW`, `COMPLEXITY_MEDIUM`, and `COMPLEXITY_HIGH`, cannot be used here. `https://developers.google.com/android/management/reference/rest/v1/PasswordRequirements#UnifiedLockSettings` cannot be used here. |
| `wifiConfigsLockdownEnabled (deprecated)` | `boolean` > [!WARNING] > Please use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceConnectivityManagement.FIELDS.configure_wifi` instead. This is deprecated. |
| `bluetoothConfigDisabled` | `boolean` Whether configuring bluetooth is disabled. |
| `cellBroadcastsConfigDisabled` | `boolean` Whether configuring cell broadcast is disabled. |
| `credentialsConfigDisabled` | `boolean` Whether configuring user credentials is disabled. |
| `mobileNetworksConfigDisabled` | `boolean` Whether configuring mobile networks is disabled. |
| `tetheringConfigDisabled (deprecated)` | `boolean` > [!WARNING] > Please use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceConnectivityManagement.FIELDS.tethering_settings` instead. Whether configuring tethering and portable hotspots is disabled. If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceConnectivityManagement.FIELDS.tethering_settings` is set to anything other than `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TetheringSettings.ENUM_VALUES.TETHERING_SETTINGS_UNSPECIFIED`, this setting is ignored. |
| `vpnConfigDisabled` | `boolean` Whether configuring VPN is disabled. |
| `wifiConfigDisabled (deprecated)` | `boolean` > [!WARNING] > Please use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceConnectivityManagement.FIELDS.configure_wifi` instead. Whether configuring Wi-Fi networks is disabled. Supported on fully managed devices and work profiles on company-owned devices. For fully managed devices, setting this to true removes all configured networks and retains only the networks configured using `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.open_network_configuration`. For work profiles on company-owned devices, existing configured networks are not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceConnectivityManagement.FIELDS.configure_wifi` is set to anything other than `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ConfigureWifi.ENUM_VALUES.CONFIGURE_WIFI_UNSPECIFIED`, this setting is ignored. **Note:** If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.network_escape_hatch_enabled`). |
| `createWindowsDisabled` | `boolean` Whether creating windows besides app windows is disabled. |
| `networkResetDisabled` | `boolean` Whether resetting network settings is disabled. This applies only on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for other management modes. |
| `outgoingBeamDisabled` | `boolean` Whether using NFC to beam data from apps is disabled. |
| `outgoingCallsDisabled` | `boolean` Whether outgoing calls are disabled. |
| `removeUserDisabled` | `boolean` Whether removing other users is disabled. |
| `shareLocationDisabled` | `boolean` Whether location sharing is disabled. |
| `smsDisabled` | `boolean` Whether sending and receiving SMS messages is disabled. |
| `unmuteMicrophoneDisabled (deprecated)` | `boolean` > [!WARNING] > Use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.microphone_access` instead. If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.microphone_access` is set to any value other than `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MicrophoneAccess.ENUM_VALUES.MICROPHONE_ACCESS_UNSPECIFIED`, this has no effect. Otherwise this field controls whether microphones are disabled: If true, all microphones are disabled, otherwise they are available. This is available only on fully managed devices. |
| `usbFileTransferDisabled (deprecated)` | `boolean` > [!WARNING] > `usbFileTransferDisabled` is deprecated. Please use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceConnectivityManagement.FIELDS.usb_data_access` instead. Whether transferring files over USB is disabled. This is supported only on company-owned devices. |
| `ensureVerifyAppsEnabled (deprecated)` | `boolean` > [!WARNING] > `ensureVerifyAppsEnabled` is deprecated. Please use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AdvancedSecurityOverrides.FIELDS.google_play_protect_verify_apps` instead. Whether app verification is force-enabled. |
| `permittedInputMethods` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PackageNameList`)`` If present, only the input methods provided by packages in this list are permitted. If this field is present, but the list is empty, then only system input methods are permitted. |
| `stayOnPluggedModes[]` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BatteryPluggedMode`)`` The battery plugged in modes for which the device stays on. When using this setting, it is recommended to clear `maximumTimeToLock` so that the device doesn't lock itself while it stays on. |
| `recommendedGlobalProxy` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ProxyInfo`)`` The network-independent global HTTP proxy. Typically proxies should be configured per-network in `openNetworkConfiguration`. However for unusual configurations like general internal filtering a global HTTP proxy may be useful. If the proxy is not accessible, network access may break. The global proxy is only a recommendation and some apps may ignore it. |
| `setUserIconDisabled` | `boolean` Whether changing the user icon is disabled. This applies only on devices running Android 7 and above. |
| `setWallpaperDisabled` | `boolean` Whether changing the wallpaper is disabled. |
| `choosePrivateKeyRules[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ChoosePrivateKeyRule`)`` Rules for determining apps' access to private keys. See `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ChoosePrivateKeyRule` for details. This must be empty if any application has `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DelegatedScope.ENUM_VALUES.CERT_SELECTION` delegation scope. |
| `alwaysOnVpnPackage` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AlwaysOnVpnPackage`)`` Configuration for an always-on VPN connection. Use with `vpnConfigDisabled` to prevent modification of this setting. |
| `frpAdminEmails[]` | `string` Email addresses of device administrators for factory reset protection. When the device is factory reset, it will require one of these admins to log in with the Google account email and password to unlock the device. If no admins are specified, the device won't provide factory reset protection. |
| `deviceOwnerLockScreenInfo` | ``object (`https://developers.google.com/android/management/reference/rest/v1/UserFacingMessage`)`` Optional. The device owner information to be shown on the lock screen. |
| `dataRoamingDisabled` | `boolean` Whether roaming data services are disabled. |
| `locationMode` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LocationMode`)`` The degree of location detection enabled. |
| `networkEscapeHatchEnabled` | `boolean` Whether the network escape hatch is enabled. If a network connection can't be made at boot time, the escape hatch prompts the user to temporarily connect to a network in order to refresh the device policy. After applying policy, the temporary network will be forgotten and the device will continue booting. This prevents being unable to connect to a network if there is no suitable network in the last policy and the device boots into an app in lock task mode, or the user is otherwise unable to reach device settings. **Note:** Setting `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.wifi_config_disabled` to true will override this setting under specific circumstances. Please see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.wifi_config_disabled` for further details. Setting `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceConnectivityManagement.FIELDS.configure_wifi` to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ConfigureWifi.ENUM_VALUES.DISALLOW_CONFIGURING_WIFI` will override this setting under specific circumstances. Please see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ConfigureWifi.ENUM_VALUES.DISALLOW_CONFIGURING_WIFI` for further details. |
| `bluetoothDisabled` | `boolean` Whether bluetooth is disabled. Prefer this setting over `bluetoothConfigDisabled` because `bluetoothConfigDisabled` can be bypassed by the user. |
| `complianceRules[] (deprecated)` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ComplianceRule`)`` > [!WARNING] > This item is deprecated! Rules declaring which mitigating actions to take when a device is not compliant with its policy. When the conditions for multiple rules are satisfied, all of the mitigating actions for the rules are taken. There is a maximum limit of 100 rules. Use policy enforcement rules instead. |
| `blockApplicationsEnabled (deprecated)` | `boolean` > [!WARNING] > `blockApplicationsEnabled` is deprecated. Please use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.play_store_mode` instead. This field has no effect. |
| `installUnknownSourcesAllowed (deprecated)` | `boolean` > [!WARNING] > `installUnknownSourcesAllowed` is deprecated. This field has no effect - please use `advancedSecurityOverrides.untrustedAppsPolicy` instead. This field has no effect. |
| `debuggingFeaturesAllowed (deprecated)` | `boolean` > [!WARNING] > `debuggingFeaturesAllowed` is deprecated. Please use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AdvancedSecurityOverrides.FIELDS.developer_settings` instead. Whether the user is allowed to enable debugging features. |
| `funDisabled` | `boolean` Whether the user is allowed to have fun. Controls whether the Easter egg game in Settings is disabled. |
| `autoTimeRequired (deprecated)` | `boolean` > [!WARNING] > Use [`autoDateAndTimeZone`](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#autodateandtimezone) instead. Whether auto time is required, which prevents the user from manually setting the date and time. If [`autoDateAndTimeZone`](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#autodateandtimezone) is set, this field is ignored. |
| `permittedAccessibilityServices` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PackageNameList`)`` Specifies permitted accessibility services. If the field is not set, any accessibility service can be used. If the field is set, only the accessibility services in this list and the system's built-in accessibility service can be used. In particular, if the field is set to empty, only the system's built-in accessibility servicess can be used. This can be set on fully managed devices and on work profiles. When applied to a work profile, this affects both the personal profile and the work profile. |
| `appAutoUpdatePolicy` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AppAutoUpdatePolicy`)`` Recommended alternative: `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.auto_update_mode` which is set per app, provides greater flexibility around update frequency. When `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.auto_update_mode` is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutoUpdateMode.ENUM_VALUES.AUTO_UPDATE_POSTPONED` or `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutoUpdateMode.ENUM_VALUES.AUTO_UPDATE_HIGH_PRIORITY`, this field has no effect. The app auto update policy, which controls when automatic app updates can be applied. |
| `kioskCustomLauncherEnabled` | `boolean` Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the `applications` setting. Apps appear on a single page in alphabetical order. Use [kioskCustomization](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#kioskcustomization) to further configure the kiosk device behavior. |
| `androidDevicePolicyTracks[] (deprecated)` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AppTrack`)`` > [!WARNING] > This setting is not supported. This setting is not supported. Any value is ignored. |
| `skipFirstUseHintsEnabled` | `boolean` Flag to skip hints on the first use. Enterprise admin can enable the system recommendation for apps to skip their user tutorial and other introductory hints on first start-up. |
| `privateKeySelectionEnabled` | `boolean` Allows showing UI on a device for a user to choose a private key alias if there are no matching rules in ChoosePrivateKeyRules. For devices below Android P, setting this may leave enterprise keys vulnerable. This value will have no effect if any application has `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DelegatedScope.ENUM_VALUES.CERT_SELECTION` delegation scope. |
| `encryptionPolicy` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#EncryptionPolicy`)`` Whether encryption is enabled |
| `usbMassStorageEnabled (deprecated)` | `boolean` > [!WARNING] > This item is deprecated! Whether USB storage is enabled. Deprecated. |
| `permissionGrants[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PermissionGrant`)`` Explicit permission or group grants or denials for all apps. These values override the `defaultPermissionPolicy`. |
| `playStoreMode` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PlayStoreMode`)`` This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy. |
| `setupActions[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SetupAction`)`` Action to take during the setup process. At most one action may be specified. |
| `passwordPolicies[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/PasswordRequirements`)`` Optional. Password requirement policies. Different policies can be set for work profile or fully managed devices by setting the `passwordScope` field in the policy. |
| `policyEnforcementRules[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PolicyEnforcementRule`)`` Rules that define the behavior when a particular policy can not be applied on device |
| `kioskCustomization` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#KioskCustomization`)`` Optional. Settings controlling the behavior of a device in kiosk mode. To enable kiosk mode, set `kioskCustomLauncherEnabled` to `true` or specify an app in the policy with the `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType.ENUM_VALUES.KIOSK` role. |
| `advancedSecurityOverrides` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AdvancedSecurityOverrides`)`` Optional. Advanced security settings. In most cases, setting these is not needed. |
| `personalUsagePolicies` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalUsagePolicies`)`` Policies managing personal usage on a company-owned device. |
| `autoDateAndTimeZone` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutoDateAndTimeZone`)`` Whether auto date, time, and time zone are enabled on a company-owned device. If this is set, then [`autoTimeRequired`](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#autoTimeRequired) is ignored. |
| `oncCertificateProviders[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#OncCertificateProvider`)`` This feature is not generally available. |
| `crossProfilePolicies` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfilePolicies`)`` Optional. Cross-profile policies applied on the device. |
| `preferentialNetworkService` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkService`)`` Controls whether preferential network service is enabled on the work profile or on fully managed devices. For example, an organization may have an agreement with a carrier that all of the work data from its employees' devices will be sent via a network service dedicated for enterprise use. An example of a supported preferential network service is the enterprise slice on 5G networks. This policy has no effect if `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceSettings` or `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.preferential_network_id` is set on devices running Android 13 or above. |
| `usageLog` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UsageLog`)`` Optional. Configuration of device activity logging. |
| `cameraAccess` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CameraAccess`)`` Controls the use of the camera and whether the user has access to the camera access toggle. |
| `microphoneAccess` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MicrophoneAccess`)`` Controls the use of the microphone and whether the user has access to the microphone access toggle. This applies only on fully managed devices. |
| `deviceConnectivityManagement` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceConnectivityManagement`)`` Optional. Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more. |
| `deviceRadioState` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceRadioState`)`` Optional. Covers controls for radio state such as Wi-Fi, bluetooth, and more. |
| `credentialProviderPolicyDefault` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CredentialProviderPolicyDefault`)`` Optional. Controls which apps are allowed to act as credential providers on Android 14 and above. These apps store credentials, see [this](https://developer.android.com/training/sign-in/passkeys) and [this](https://developer.android.com/reference/androidx/credentials/CredentialManager) for details. See also `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.credential_provider_policy`. |
| `printingPolicy` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrintingPolicy`)`` Optional. Controls whether printing is allowed. This is supported on devices running Android 9 and above. . |
| `displaySettings` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DisplaySettings`)`` Optional. Controls for the display settings. |
| `assistContentPolicy` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AssistContentPolicy`)`` Optional. Controls whether [AssistContent](https://developer.android.com/reference/android/app/assist/AssistContent) is allowed to be sent to a privileged app such as an assistant app. AssistContent includes screenshots and information about an app, such as package name. This is supported on Android 15 and above. |
| `workAccountSetupConfig` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WorkAccountSetupConfig`)`` Optional. Controls the work account setup configuration, such as details of whether a Google authenticated account is required. |
| `wipeDataFlags[]` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WipeDataFlag`)`` Optional. Wipe flags to indicate what data is wiped when a device or profile wipe is triggered due to any reason (for example, non-compliance). This does not apply to the `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices/delete#google.android.devicemanagement.v1.DeviceManagementService.DeleteDevice` method. . This list must not have duplicates. |
| `enterpriseDisplayNameVisibility` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#EnterpriseDisplayNameVisibility`)`` Optional. Controls whether the `https://developers.google.com/android/management/reference/rest/v1/enterprises#Enterprise.FIELDS.enterprise_display_name` is visible on the device (e.g. lock screen message on company-owned devices). |
| `appFunctions` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AppFunctions`)`` Optional. Controls whether apps on the device for fully managed devices or in the work profile for devices with work profiles are allowed to expose app functions. |
| `unifiedUpdatePolicy` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UnifiedUpdatePolicy`)`` Optional. The Unified Update Control policy, for controlling updates of software components on the device. Supported only on company-owned devices. The targets `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.OS_UPDATE_WITH_API_LEVEL_CHANGE` and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.OS_UPDATE_WITHOUT_API_LEVEL_CHANGE` are supported only on devices where the OEM has integrated with Unified Update Controls, and are ignored otherwise. If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.system_update` is set, then that policy takes precedence and the targets `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.OS_UPDATE_WITH_API_LEVEL_CHANGE` and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.OS_UPDATE_WITHOUT_API_LEVEL_CHANGE` are ignored here. |
| `defaultApplicationSettings[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DefaultApplicationSetting`)`` Optional. The default application setting for supported types. If the default application is successfully set for at least one app type on a profile, users are prevented from changing *any* default applications on that profile. Only one `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DefaultApplicationSetting` is allowed for each `https://developers.google.com/android/management/reference/rest/v1/DefaultApplicationType`. **Warning:** Do not configure this and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.persistent_preferred_activities` for the same intent domain, such as web browsing. Setting both for the same intent domain can lead to unpredictable behavior. See [Default application settings](https://developers.google.com/android/management/default-application-settings) guide for more details. |
| `autofillPolicy` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutofillPolicy`)`` Optional. The policy for the autofill service. |
| `deviceWidePolicies` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceWidePolicies`)`` Optional. Policies controlling the device on company-owned devices. |
| `crossDevicePolicies` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossDevicePolicies`)`` Optional. Policies controlling cross-device communication. |
| `backupService` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BackupService`)`` Optional. Controls whether the backup service is disabled. Supported only on fully managed devices running Android 8 and above. |

## ApplicationPolicy

Policy for an individual app. Note: Application availability on a given device cannot be changed using this policy if `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.install_apps_disabled` is enabled. The maximum number of applications that you can specify per policy is 3,000.

| JSON representation |
|---|
| ``` { "packageName": string, "installType": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType`), "lockTaskAllowed": boolean, "defaultPermissionPolicy": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PermissionPolicy`), "permissionGrants": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PermissionGrant`) } ], "managedConfiguration": { object }, "disabled": boolean, "minimumVersionCode": integer, "delegatedScopes": [ enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DelegatedScope`) ], "managedConfigurationTemplate": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ManagedConfigurationTemplate`) }, "accessibleTrackIds": [ string ], "connectedWorkAndPersonalApp": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ConnectedWorkAndPersonalApp`), "autoUpdateMode": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutoUpdateMode`), "extensionConfig": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ExtensionConfig`) }, "alwaysOnVpnLockdownExemption": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AlwaysOnVpnLockdownExemption`), "workProfileWidgets": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WorkProfileWidgets`), "credentialProviderPolicy": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CredentialProviderPolicy`), "customAppConfig": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CustomAppConfig`) }, "installConstraint": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallConstraint`) } ], "installPriority": integer, "userControlSettings": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserControlSettings`), "preferentialNetworkId": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkId`), "signingKeyCerts": [ { object (`https://developers.google.com/android/management/reference/rest/v1/ApplicationSigningKeyCert`) } ], "roles": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Role`) } ] } ``` |

Fields `packageName` `string`

The package name of the app. For example, `com.google.android.youtube` for the YouTube app.
`installType` ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType`)``

The type of installation to perform.
`lockTaskAllowed
(deprecated)` `boolean`

> [!WARNING]
> This item is deprecated!

Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use [InstallType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#installtype) `KIOSK` or `kioskCustomLauncherEnabled` to configure a dedicated device.
`defaultPermissionPolicy` ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PermissionPolicy`)``

The default policy for all permissions requested by the app. If specified, this overrides the policy-level `defaultPermissionPolicy` which applies to all apps. It does not override the `permissionGrants` which applies to all apps.
`permissionGrants[]` ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PermissionGrant`)``

Explicit permission grants or denials for the app. These values override the `defaultPermissionPolicy` and `permissionGrants` which apply to all apps.
`managedConfiguration` ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)``

Managed configuration applied to the app. The format for the configuration is dictated by the [`ManagedProperty`](https://developers.google.com/android/management/reference/rest/v1/enterprises.applications#ManagedProperty) values supported by the app. Each field name in the managed configuration must match the `key` field of the `ManagedProperty`. The field value must be compatible with the `type` of the `ManagedProperty`:
*type**JSON value* `BOOL``true` or `false` `STRING`string `INTEGER`number `CHOICE`string `MULTISELECT`array of strings `HIDDEN`string `BUNDLE_ARRAY`array of objects Note: string values cannot be longer than 65535 characters.

<br />

`disabled` `boolean`

Whether the app is disabled. When disabled, the app data is still preserved.
`minimumVersionCode` `integer`

The minimum version of the app that runs on the device. If set, the device attempts to update the app to at least this version code. If the app is not up-to-date, the device will contain a `NonComplianceDetail` with `nonComplianceReason` set to `APP_NOT_UPDATED`. The app must already be published to Google Play with a version code greater than or equal to this value. At most 20 apps may specify a minimum version code per policy.
`delegatedScopes[]` ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DelegatedScope`)``

The scopes delegated to the app from Android Device Policy. These provide additional privileges for the applications they are applied to.
`managedConfigurationTemplate` ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ManagedConfigurationTemplate`)``

The managed configurations template for the app, saved from the [managed configurations iframe](https://developers.google.com/android/management/managed-configurations-iframe). This field is ignored if managedConfiguration is set.
`accessibleTrackIds[]` `string`

List of the app's track IDs that a device belonging to the enterprise can access. If the list contains multiple track IDs, devices receive the latest version among all accessible tracks. If the list contains no track IDs, devices only have access to the app's production track. More details about each track are available in [AppTrackInfo](https://developers.google.com/android/management/reference/rest/v1/enterprises.applications#apptrackinfo).
`connectedWorkAndPersonalApp` ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ConnectedWorkAndPersonalApp`)``

Controls whether the app can communicate with itself across a device's work and personal profiles, subject to user consent.
`autoUpdateMode` ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutoUpdateMode`)``

Controls the auto-update mode for the app.
`extensionConfig
(deprecated)` ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ExtensionConfig`)``

> [!WARNING]
> `extensionConfig` is deprecated - use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType.ENUM_VALUES.COMPANION_APP` role instead.

Configuration to enable this app as an extension app, with the capability of interacting with Android Device Policy offline.

This field can be set for at most one app. If there is any app with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType.ENUM_VALUES.COMPANION_APP` role, this field cannot be set.

The signing key certificate fingerprint of the app on the device must match one of the entries in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.signing_key_certs` or `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ExtensionConfig.FIELDS.signing_key_fingerprints_sha256` (deprecated) or the signing key certificate fingerprints obtained from Play Store for the app to be able to communicate with Android Device Policy. If the app is not on Play Store and if `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.signing_key_certs` and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ExtensionConfig.FIELDS.signing_key_fingerprints_sha256` (deprecated) are not set, a `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.INVALID_VALUE` is reported.
`alwaysOnVpnLockdownExemption` ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AlwaysOnVpnLockdownExemption`)``

Specifies whether the app is allowed networking when the VPN is not connected and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AlwaysOnVpnPackage.FIELDS.lockdown_enabled` is enabled. If set to `VPN_LOCKDOWN_ENFORCED`, the app is not allowed networking, and if set to `VPN_LOCKDOWN_EXEMPTION`, the app is allowed networking. Only supported on devices running Android 10 and above. If this is not supported by the device, the device will contain a `NonComplianceDetail` with `nonComplianceReason` set to `API_LEVEL` and a fieldPath. If this is not applicable to the app, the device will contain a `NonComplianceDetail` with `nonComplianceReason` set to `UNSUPPORTED` and a fieldPath. The fieldPath is set to `applications[i].alwaysOnVpnLockdownExemption`, where `i` is the index of the package in the `applications` policy.
`workProfileWidgets` ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WorkProfileWidgets`)``

Specifies whether the app installed in the work profile is allowed to add widgets to the home screen.
`credentialProviderPolicy` ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CredentialProviderPolicy`)``

Optional. Whether the app is allowed to act as a credential provider on Android 14 and above.
`customAppConfig` ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CustomAppConfig`)``

Optional. Configuration for this custom app.

`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType` must be set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.CUSTOM` for this to be set.
`installConstraint[]` ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallConstraint`)``

Optional. The constraints for installing the app. You can specify a maximum of one `InstallConstraint`. Multiple constraints are rejected.
`installPriority` `integer`

Optional. Amongst apps with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.install_type` set to:

- `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.FORCE_INSTALLED`
- `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.PREINSTALLED`

this controls the relative priority of installation. A value of 0 (default) means this app has no priority over other apps. For values between 1 and 10,000, a lower value means a higher priority. Values outside of the range 0 to 10,000 inclusive are rejected.
`userControlSettings` ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserControlSettings`)``

Optional. Specifies whether user control is permitted for the app. User control includes user actions like force-stopping and clearing app data. Certain types of apps have special treatment, see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserControlSettings.ENUM_VALUES.USER_CONTROL_SETTINGS_UNSPECIFIED` and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserControlSettings.ENUM_VALUES.USER_CONTROL_ALLOWED` for more details.
`preferentialNetworkId` ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkId`)``

Optional. ID of the preferential network the application uses. There must be a configuration for the specified network ID in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceSettings.FIELDS.preferential_network_service_configs`. If set to `PREFERENTIAL_NETWORK_ID_UNSPECIFIED`, the application will use the default network ID specified in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceSettings.FIELDS.default_preferential_network_id`. See the documentation of `defaultPreferentialNetworkId` for the list of apps excluded from this defaulting. This applies on both work profiles and fully managed devices on Android 13 and above.
`signingKeyCerts[]` ``object (`https://developers.google.com/android/management/reference/rest/v1/ApplicationSigningKeyCert`)``

Optional. Signing key certificates of the app.

This field is required in the following cases:

- The app has `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.install_type` set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.CUSTOM` (i.e. a custom app).
- The app has `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.roles` set to a nonempty list and the app does not exist on the Play Store.
- The app has `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.extension_config` set (i.e. an extension app) but `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ExtensionConfig.FIELDS.signing_key_fingerprints_sha256` (deprecated) is not set and the app does not exist on the Play Store.

If this field is not set for a custom app, the policy is rejected. If it is not set when required for a non-custom app, a `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.INVALID_VALUE` is reported.

For other cases, this field is optional and the signing key certificates obtained from Play Store are used.

See following policy settings to see how this field is used:

- `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.choose_private_key_rules`
- `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.CUSTOM`
- `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.extension_config`
- `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.roles`
`roles[]` ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Role`)``

Optional. Roles the app has.

Apps having certain roles can be exempted from power and background execution restrictions, suspension and hibernation on Android 14 and above. The user control can also be disallowed for apps with certain roles on Android 11 and above. Refer to the documentation of each `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType` for more details.

The app is notified about the roles that are set for it if the app has a notification receiver service with `<meta-data
android:name="com.google.android.managementapi.notification.NotificationReceiverService.SERVICE_APP_ROLES"
android:value="" />`. The app is notified whenever its roles are updated or after the app is installed when it has nonempty list of roles. The app can use this notification to bootstrap itself after the installation. See [Integrate with the AMAPI SDK](https://developers.google.com/android/management/sdk-integration) and [Manage app roles](https://developers.google.com/android/management/app-roles) guides for more details on the requirements for the service.

For the exemptions to be applied and the app to be notified about the roles, the signing key certificate fingerprint of the app on the device must match one of the signing key certificate fingerprints obtained from Play Store or one of the entries in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.signing_key_certs`. Otherwise, a `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.APP_SIGNING_CERT_MISMATCH` is reported.

There must not be duplicate roles with the same `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Role.FIELDS.role_type`. Multiple apps cannot hold a role with the same `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Role.FIELDS.role_type`. A role with type `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType.ENUM_VALUES.ROLE_TYPE_UNSPECIFIED` is not allowed.

## InstallType

The type of installation to perform for an app. If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.setup_actions` references an app, they must have `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalApplicationPolicy.FIELDS.install_type` set as `REQUIRED_FOR_SETUP` or the setup will fail.

| Enums ||
|---|---|
| `INSTALL_TYPE_UNSPECIFIED` | Unspecified. Defaults to AVAILABLE. |
| `PREINSTALLED` | The app is automatically installed and can be removed by the user. |
| `FORCE_INSTALLED` | The app is automatically installed regardless of a set maintenance window and can't be removed by the user. |
| `BLOCKED` | The app is blocked and can't be installed. If the app was installed under a previous policy, it will be uninstalled. This also blocks its instant app functionality. |
| `AVAILABLE` | The app is available to install. |
| `REQUIRED_FOR_SETUP` | The app is automatically installed and can't be removed by the user and will prevent setup from completion until installation is complete. |
| `KIOSK` | The app is automatically installed in kiosk mode: it's set as the preferred home intent and whitelisted for lock task mode. Device setup won't complete until the app is installed. After installation, users won't be able to remove the app. You can only set this `installType` for one app per policy. When this is present in the policy, status bar will be automatically disabled. On Android 11 and above, when an app has this install type, the user control is disallowed for all apps. The IT admin can set `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.user_control_settings` to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserControlSettings.ENUM_VALUES.USER_CONTROL_ALLOWED` to allow user control for specific apps. If there is any app with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType.ENUM_VALUES.KIOSK` role, then this install type cannot be set for any app. > [!WARNING] > `KIOSK` install type is deprecated - use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.REQUIRED_FOR_SETUP` or `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.CUSTOM` depending on the use case and use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType.ENUM_VALUES.KIOSK` role instead. |
| `CUSTOM` | The app can only be installed and updated via [AMAPI SDK command](https://developers.google.com/android/management/extensibility-sdk-integration). **Note:** - This only affects fully managed devices. - Play related fields `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.minimum_version_code`, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.accessible_track_ids`, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.auto_update_mode`, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.install_constraint` and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.install_priority` cannot be set for the app. - The app isn't available in the Play Store. - The app installed on the device has `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#ApplicationReport.FIELDS.application_source` set to `CUSTOM`. - When the current `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.install_type` is `CUSTOM`, the signing key certificate fingerprint of the existing custom app on the device must match one of the entries in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.signing_key_certs` . Otherwise, a `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.APP_SIGNING_CERT_MISMATCH` is reported. - Changing the `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.install_type` from `CUSTOM` to another value must match the playstore version of the application signing key certificate fingerprint. Otherwise a `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.APP_SIGNING_CERT_MISMATCH` is reported. - Changing the `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.install_type` to `CUSTOM` uninstalls the existing app if its signing key certificate fingerprint of the installed app doesn't match the one from the `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.signing_key_certs` . - Removing the app from `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.applications` doesn't uninstall the existing app if it conforms to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.play_store_mode`. - See also `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.custom_app_config`. - This is different from the [Google Play Custom App Publishing](https://developers.google.com/android/work/play/custom-app-api/get-started) feature. |

## PermissionPolicy

The policy for granting permission requests to apps.

| Enums ||
|---|---|
| `PERMISSION_POLICY_UNSPECIFIED` | Policy not specified. If no policy is specified for a permission at any level, then the `PROMPT` behavior is used by default. |
| `PROMPT` | Prompt the user to grant a permission. |
| `GRANT` | Automatically grant a permission. On Android 12 and above, [`READ_SMS`](https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: - [`ACCESS_FINE_LOCATION`](https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) - [`ACCESS_BACKGROUND_LOCATION`](https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) - [`ACCESS_COARSE_LOCATION`](https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) - [`CAMERA`](https://developer.android.com/reference/android/Manifest.permission#CAMERA) - [`RECORD_AUDIO`](https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) - [`ACTIVITY_RECOGNITION`](https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) - [`BODY_SENSORS`](https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS) |
| `DENY` | Automatically deny a permission. |

## PermissionGrant

Configuration for an Android permission and its grant state.

| JSON representation |
|---|
| ``` { "permission": string, "policy": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PermissionPolicy`) } ``` |

| Fields ||
|---|---|
| `permission` | `string` The Android permission or group, e.g. `android.permission.READ_CALENDAR` or `android.permission_group.CALENDAR`. |
| `policy` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PermissionPolicy`)`` The policy for granting the permission. |

## DelegatedScope

Delegation Scopes that another package can acquire from Android Device Policy. These provide additional privileges for the applications they are applied to.

| Enums ||
|---|---|
| `DELEGATED_SCOPE_UNSPECIFIED` | No delegation scope specified. |
| `CERT_INSTALL` | Grants access to certificate installation and management. This scope can be delegated to multiple applications. |
| `MANAGED_CONFIGURATIONS` | Grants access to managed configurations management. This scope can be delegated to multiple applications. |
| `BLOCK_UNINSTALL` | Grants access to blocking uninstallation. This scope can be delegated to multiple applications. |
| `PERMISSION_GRANT` | Grants access to permission policy and permission grant state. This scope can be delegated to multiple applications. |
| `PACKAGE_ACCESS` | Grants access to package access state. This scope can be delegated to multiple applications. |
| `ENABLE_SYSTEM_APP` | Grants access for enabling system apps. This scope can be delegated to multiple applications. |
| `NETWORK_ACTIVITY_LOGS` | Grants access to network activity logs. Allows the delegated application to call [`setNetworkLoggingEnabled`](https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setNetworkLoggingEnabled%28android.content.ComponentName,%20boolean%29), [`isNetworkLoggingEnabled`](https://developer.android.com/reference/android/app/admin/DevicePolicyManager#isNetworkLoggingEnabled%28android.content.ComponentName%29) and [`retrieveNetworkLogs`](https://developer.android.com/reference/android/app/admin/DevicePolicyManager#retrieveNetworkLogs%28android.content.ComponentName,%20long%29) methods. This scope can be delegated to at most one application. Supported for fully managed devices on Android 10 and above. Supported for a work profile on Android 12 and above. When delegation is supported and set, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LogType.ENUM_VALUES.NETWORK_ACTIVITY_LOGS` is ignored. |
| `SECURITY_LOGS` | Grants access to security logs. Allows the delegated application to call [`setSecurityLoggingEnabled`](https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setSecurityLoggingEnabled%28android.content.ComponentName,%20boolean%29), [`isSecurityLoggingEnabled`](https://developer.android.com/reference/android/app/admin/DevicePolicyManager#isSecurityLoggingEnabled%28android.content.ComponentName%29), [`retrieveSecurityLogs`](https://developer.android.com/reference/android/app/admin/DevicePolicyManager#retrieveSecurityLogs%28android.content.ComponentName%29) and [`retrievePreRebootSecurityLogs`](https://developer.android.com/reference/android/app/admin/DevicePolicyManager#retrievePreRebootSecurityLogs%28android.content.ComponentName%29) methods. This scope can be delegated to at most one application. Supported for fully managed devices and company-owned devices with a work profile on Android 12 and above. When delegation is supported and set, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LogType.ENUM_VALUES.SECURITY_LOGS` is ignored. |
| `CERT_SELECTION` | Grants access to selection of KeyChain certificates on behalf of requesting apps. Once granted, the delegated application will start receiving [`DelegatedAdminReceiver#onChoosePrivateKeyAlias`](https://developer.android.com/reference/android/app/admin/DelegatedAdminReceiver#onChoosePrivateKeyAlias%28android.content.Context,%20android.content.Intent,%20int,%20android.net.Uri,%20java.lang.String%29). Allows the delegated application to call [`grantKeyPairToApp`](https://developer.android.com/reference/android/app/admin/DevicePolicyManager#grantKeyPairToApp%28android.content.ComponentName,%20java.lang.String,%20java.lang.String%29) and [`revokeKeyPairFromApp`](https://developer.android.com/reference/android/app/admin/DevicePolicyManager#revokeKeyPairFromApp%28android.content.ComponentName,%20java.lang.String,%20java.lang.String%29) methods. This scope can be delegated to at most one application. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.choose_private_key_rules` must be empty and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.private_key_selection_enabled` has no effect if certificate selection is delegated to an application. |

## ManagedConfigurationTemplate

The managed configurations template for the app, saved from the [managed configurations iframe](https://developers.google.com/android/management/managed-configurations-iframe).

| JSON representation |
|---|
| ``` { "templateId": string, "configurationVariables": { string: string, ... } } ``` |

| Fields ||
|---|---|
| `templateId` | `string` The ID of the managed configurations template. This value must be a numeric string containing exactly one or more digits (for example, `"123456"`). |
| `configurationVariables` | `map (key: string, value: string)` Optional, a map containing \<key, value\> configuration variables defined for the configuration. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

## ConnectedWorkAndPersonalApp

Controls whether the app can communicate with itself cross-profile, subject to user consent.

| Enums ||
|---|---|
| `CONNECTED_WORK_AND_PERSONAL_APP_UNSPECIFIED` | Unspecified. Defaults to CONNECTED_WORK_AND_PERSONAL_APPS_DISALLOWED. |
| `CONNECTED_WORK_AND_PERSONAL_APP_DISALLOWED` | Default. Prevents the app from communicating cross-profile. |
| `CONNECTED_WORK_AND_PERSONAL_APP_ALLOWED` | Allows the app to communicate across profiles after receiving user consent. |

## AutoUpdateMode

Controls the auto-update mode for the app. If a device user makes changes to the device settings manually, these choices are ignored by `AutoUpdateMode` as it takes precedence.

| Enums ||
|---|---|
| `AUTO_UPDATE_MODE_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutoUpdateMode.ENUM_VALUES.AUTO_UPDATE_DEFAULT`. |
| `AUTO_UPDATE_DEFAULT` | The default update mode. The app is automatically updated with low priority to minimize the impact on the user. The app is updated when all of the following constraints are met: - The device is not actively used. - The device is connected to an unmetered network. - The device is charging. - The app to be updated is not running in the foreground. The device is notified about a new update within 24 hours after it is published by the developer, after which the app is updated the next time the constraints above are met. |
| `AUTO_UPDATE_POSTPONED` | The app is not automatically updated for a maximum of 90 days after the app becomes out of date. 90 days after the app becomes out of date, the latest available version is installed automatically with low priority (see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutoUpdateMode.ENUM_VALUES.AUTO_UPDATE_DEFAULT`). After the app is updated it is not automatically updated again until 90 days after it becomes out of date again. The user can still manually update the app from the Play Store at any time. |
| `AUTO_UPDATE_HIGH_PRIORITY` | The app is updated as soon as possible. No constraints are applied. The device is notified as soon as possible about a new update after it becomes available. **NOTE:** Updates to apps with larger deployments across Android's ecosystem can take up to 24h. |

## ExtensionConfig

Configuration to enable an app as an extension app, with the capability of interacting with Android Device Policy offline. For Android versions 11 and above, extension apps are exempt from battery restrictions so will not be placed into the [restricted App Standby Bucket](https://developer.android.com/topic/performance/appstandby#restricted-bucket). Extensions apps are also protected against users clearing their data or force-closing the application, although admins can continue to use the `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices/issueCommand#CommandType.ENUM_VALUES.CLEAR_APP_DATA` on extension apps if needed for Android 11 and above.

| JSON representation |
|---|
| ``` { "signingKeyFingerprintsSha256": [ string ], "notificationReceiver": string } ``` |

| Fields ||
|---|---|
| `signingKeyFingerprintsSha256[] (deprecated)` | `string` > [!WARNING] > `signingKeyFingerprintsSha256` is deprecated - use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.signing_key_certs` instead. If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.signing_key_certs` is set, this field must be empty or must contain the same signing key certificate fingerprints. Otherwise, the policy is rejected. Hex-encoded SHA-256 hashes of the signing key certificates of the extension app. Only hexadecimal string representations of 64 characters are valid. The signing key certificate fingerprints are always obtained from the Play Store and this field is used to provide additional signing key certificate fingerprints. However, if the application is not available on the Play Store, this field needs to be set. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.INVALID_VALUE` is reported if this field is not set when the application is not available on the Play Store. The signing key certificate fingerprint of the extension app on the device must match one of the signing key certificate fingerprints obtained from the Play Store or the ones provided in this field for the app to be able to communicate with Android Device Policy. In production use cases, it is recommended to leave this empty. |
| `notificationReceiver (deprecated)` | `string` > [!WARNING] > `notificationReceiver` is deprecated - use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType.ENUM_VALUES.COMPANION_APP` role instead. Fully qualified class name of the receiver service class for Android Device Policy to notify the extension app of any local command status updates. The service must be exported in the extension app's `AndroidManifest.xml` and extend [`NotificationReceiverService`](https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/notification/NotificationReceiverService) (see [Integrate with the AMAPI SDK](https://developers.google.com/android/management/sdk-integration) guide for more details). |

## AlwaysOnVpnLockdownExemption

Controls whether an app is exempt from the `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AlwaysOnVpnPackage.FIELDS.lockdown_enabled` setting.

| Enums ||
|---|---|
| `ALWAYS_ON_VPN_LOCKDOWN_EXEMPTION_UNSPECIFIED` | Unspecified. Defaults to `VPN_LOCKDOWN_ENFORCED`. |
| `VPN_LOCKDOWN_ENFORCED` | The app respects the always-on VPN lockdown setting. |
| `VPN_LOCKDOWN_EXEMPTION` | The app is exempt from the always-on VPN lockdown setting. |

## WorkProfileWidgets

Controls if a work profile application is allowed to add widgets to the home screen.

| Enums ||
|---|---|
| `WORK_PROFILE_WIDGETS_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfilePolicies.FIELDS.work_profile_widgets_default` |
| `WORK_PROFILE_WIDGETS_ALLOWED` | Work profile widgets are allowed. This means the application will be able to add widgets to the home screen. |
| `WORK_PROFILE_WIDGETS_DISALLOWED` | Work profile widgets are disallowed. This means the application will not be able to add widgets to the home screen. |

## CredentialProviderPolicy

Whether the app is allowed to act as a credential provider on Android 14 and above.

| Enums ||
|---|---|
| `CREDENTIAL_PROVIDER_POLICY_UNSPECIFIED` | Unspecified. The behaviour is governed by `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.credential_provider_policy_default`. |
| `CREDENTIAL_PROVIDER_ALLOWED` | App is allowed to act as a credential provider. |
| `CREDENTIAL_PROVIDER_DISALLOWED` | App is not allowed to act as a credential provider. |

## CustomAppConfig

Configuration for a custom app.

| JSON representation |
|---|
| ``` { "userUninstallSettings": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserUninstallSettings`) } ``` |

| Fields ||
|---|---|
| `userUninstallSettings` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserUninstallSettings`)`` Optional. User uninstall settings of the custom app. |

## UserUninstallSettings

Specifies if a user is allowed to uninstall the custom app.

| Enums ||
|---|---|
| `USER_UNINSTALL_SETTINGS_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserUninstallSettings.ENUM_VALUES.DISALLOW_UNINSTALL_BY_USER`. |
| `DISALLOW_UNINSTALL_BY_USER` | User is not allowed to uninstall the custom app. |
| `ALLOW_UNINSTALL_BY_USER` | User is allowed to uninstall the custom app. |

## InstallConstraint

Amongst apps with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.install_type` set to:

- `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.FORCE_INSTALLED`
- `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.PREINSTALLED`

this defines a set of restrictions for the app installation. At least one of the fields must be set. When multiple fields are set, then all the constraints need to be satisfied for the app to be installed.

| JSON representation |
|---|
| ``` { "networkTypeConstraint": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NetworkTypeConstraint`), "chargingConstraint": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ChargingConstraint`), "deviceIdleConstraint": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceIdleConstraint`) } ``` |

| Fields ||
|---|---|
| `networkTypeConstraint` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NetworkTypeConstraint`)`` Optional. Network type constraint. |
| `chargingConstraint` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ChargingConstraint`)`` Optional. Charging constraint. |
| `deviceIdleConstraint` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceIdleConstraint`)`` Optional. Device idle constraint. |

## NetworkTypeConstraint

Network type constraint.

| Enums ||
|---|---|
| `NETWORK_TYPE_CONSTRAINT_UNSPECIFIED` | Unspecified. Default to `INSTALL_ON_ANY_NETWORK`. |
| `INSTALL_ON_ANY_NETWORK` | Any active networks (Wi-Fi, cellular, etc.). |
| `INSTALL_ONLY_ON_UNMETERED_NETWORK` | Any unmetered network (e.g. Wi-FI). |

## ChargingConstraint

Charging constraint.

| Enums ||
|---|---|
| `CHARGING_CONSTRAINT_UNSPECIFIED` | Unspecified. Default to `CHARGING_NOT_REQUIRED`. |
| `CHARGING_NOT_REQUIRED` | Device doesn't have to be charging. |
| `INSTALL_ONLY_WHEN_CHARGING` | Device has to be charging. |

## DeviceIdleConstraint

Device idle state constraint.

| Enums ||
|---|---|
| `DEVICE_IDLE_CONSTRAINT_UNSPECIFIED` | Unspecified. Default to `DEVICE_IDLE_NOT_REQUIRED`. |
| `DEVICE_IDLE_NOT_REQUIRED` | Device doesn't have to be idle, app can be installed while the user is interacting with the device. |
| `INSTALL_ONLY_WHEN_DEVICE_IDLE` | Device has to be idle. |

## UserControlSettings

Specifies whether user control is permitted for a given app. User control includes user actions like force-stopping and clearing app data.

| Enums ||
|---|---|
| `USER_CONTROL_SETTINGS_UNSPECIFIED` | Uses the default behaviour of the app to determine if user control is allowed or disallowed. User control is allowed by default for most apps but disallowed for following types of apps: - extension apps (see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.extension_config` for more details) - kiosk apps (see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.KIOSK` install type for more details) - apps with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.roles` set to a nonempty list - other critical system apps |
| `USER_CONTROL_ALLOWED` | User control is allowed for the app. Kiosk apps can use this to allow user control. For extension apps (see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.extension_config` for more details), user control is disallowed even if this value is set. For apps with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.roles` set to a nonempty list (except `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.roles` containing only `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType.ENUM_VALUES.KIOSK` role), this value cannot be set. For kiosk apps (see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.KIOSK` install type and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType.ENUM_VALUES.KIOSK` role type for more details), this value can be used to allow user control. |
| `USER_CONTROL_DISALLOWED` | User control is disallowed for the app. This is supported on Android 11 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 11. |

## PreferentialNetworkId

Preferential network identifier.

| Enums ||
|---|---|
| `PREFERENTIAL_NETWORK_ID_UNSPECIFIED` | Whether this value is valid and what it means depends on where it is used, and this is documented on the relevant fields. |
| `NO_PREFERENTIAL_NETWORK` | Application does not use any preferential network. |
| `PREFERENTIAL_NETWORK_ID_ONE` | Preferential network identifier 1. |
| `PREFERENTIAL_NETWORK_ID_TWO` | Preferential network identifier 2. |
| `PREFERENTIAL_NETWORK_ID_THREE` | Preferential network identifier 3. |
| `PREFERENTIAL_NETWORK_ID_FOUR` | Preferential network identifier 4. |
| `PREFERENTIAL_NETWORK_ID_FIVE` | Preferential network identifier 5. |

## Role

Role an app can have.

| JSON representation |
|---|
| ``` { "roleType": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType`), "extraCapabilities": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ExtraCapabilities`) } } ``` |

| Fields ||
|---|---|
| `roleType` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType`)`` Required. The type of the role an app can have. |
| `extraCapabilities` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ExtraCapabilities`)`` Optional. Extra capabilities configured specifically for this role. Not all role types support or utilize extra capabilities. |

## RoleType

The type of the role an app can hold.

| Enums ||
|---|---|
| `ROLE_TYPE_UNSPECIFIED` | The role type is unspecified. This value must not be used. |
| `COMPANION_APP` | The role type for companion apps. This role enables the app as a companion app with the capability of interacting with Android Device Policy offline. This is the recommended way to configure an app as a companion app. For legacy way, see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.extension_config`. On Android 14 and above, the app with this role is exempted from power and background execution restrictions, suspension and hibernation. On Android 11 and above, the user control is disallowed for the app with this role. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.user_control_settings` cannot be set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserControlSettings.ENUM_VALUES.USER_CONTROL_ALLOWED` for the app with this role. Android Device Policy notifies the companion app of any local command status updates if the app has a service with `<meta-data android:name="com.google.android.managementapi.notification.NotificationReceiverService.SERVICE_COMMAND_STATUS" android:value="" />`. See [Integrate with the AMAPI SDK](https://developers.google.com/android/management/sdk-integration) guide for more details on the requirements for the service. |
| `KIOSK` | The role type for kiosk apps. An app can have this role only if it has `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.install_type` set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.REQUIRED_FOR_SETUP` or `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.CUSTOM`. Before adding this role to an app with `CUSTOM` install type, the app must already be installed on the device. The app having this role type is set as the preferred home intent and allowlisted for lock task mode. When there is an app with this role type, status bar will be automatically disabled. This is preferable to setting `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.install_type` to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.KIOSK`. On Android 11 and above, when an app has this role, the user control is disallowed for all apps. The IT admin can set `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.user_control_settings` to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserControlSettings.ENUM_VALUES.USER_CONTROL_ALLOWED` to allow user control for specific apps. |
| `MOBILE_THREAT_DEFENSE_ENDPOINT_DETECTION_RESPONSE` | The role type for Mobile Threat Defense (MTD) / Endpoint Detection \& Response (EDR) apps. On Android 14 and above, the app with this role is exempted from power and background execution restrictions, suspension and hibernation. On Android 11 and above, the user control is disallowed and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.user_control_settings` cannot be set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserControlSettings.ENUM_VALUES.USER_CONTROL_ALLOWED` for the app with this role. |
| `SYSTEM_HEALTH_MONITORING` | The role type for system health monitoring apps. On Android 14 and above, the app with this role is exempted from power and background execution restrictions, suspension and hibernation. On Android 11 and above, the user control is disallowed and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.user_control_settings` cannot be set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserControlSettings.ENUM_VALUES.USER_CONTROL_ALLOWED` for the app with this role. |

## ExtraCapabilities

Extra capabilities for a role.

| JSON representation |
|---|
| ``` { "localDeviceWipeCommand": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LocalDeviceWipeCommand`) } ``` |

| Fields ||
|---|---|
| `localDeviceWipeCommand` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LocalDeviceWipeCommand`)`` Optional. Controls whether the companion app can perform [local device wipe](https://developers.google.com/android/management/sdk-local-commands) using [AMAPI SDK](https://developers.google.com/android/management/sdk-integration). |

## LocalDeviceWipeCommand

Controls whether the app can perform [local device wipe](https://developers.google.com/android/management/sdk-local-commands) using [AMAPI SDK](https://developers.google.com/android/management/sdk-integration).

| Enums ||
|---|---|
| `LOCAL_DEVICE_WIPE_COMMAND_UNSPECIFIED` | Unspecified. Defaults to `LOCAL_DEVICE_WIPE_COMMAND_DISALLOWED`. |
| `LOCAL_DEVICE_WIPE_COMMAND_DISALLOWED` | The app is not allowed to perform local device wipe. |
| `LOCAL_DEVICE_WIPE_COMMAND_ALLOWED` | The app is allowed to perform local device wipe. Only the `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType.ENUM_VALUES.COMPANION_APP` role type can use this field. |

## KeyguardDisabledFeature

Keyguard (lock screen) features that can be disabled..

| Enums ||
|---|---|
| `KEYGUARD_DISABLED_FEATURE_UNSPECIFIED` | This value is ignored. |
| `CAMERA` | Disable the camera on secure keyguard screens (e.g. PIN). |
| `NOTIFICATIONS` | Disable showing all notifications on secure keyguard screens. |
| `UNREDACTED_NOTIFICATIONS` | Disable unredacted notifications on secure keyguard screens. |
| `TRUST_AGENTS` | Ignore trust agent state on secure keyguard screens. |
| `DISABLE_FINGERPRINT` | Disable fingerprint sensor on secure keyguard screens. |
| `DISABLE_REMOTE_INPUT` | On devices running Android 6 and below, disables text entry into notifications on secure keyguard screens. Has no effect on Android 7 and above. |
| `FACE` | Disable face authentication on secure keyguard screens. |
| `IRIS` | Disable iris authentication on secure keyguard screens. |
| `BIOMETRICS` | Disable all biometric authentication on secure keyguard screens. |
| `SHORTCUTS` | Disable all shortcuts on secure keyguard screen on Android 14 and above. |
| `ALL_FEATURES` | Disable all current and future keyguard customizations. |

## PersistentPreferredActivity

A default activity for handling intents that match a particular intent filter. **Note:** To set up a kiosk, use [InstallType](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#installtype) to `KIOSK` rather than use persistent preferred activities.

| JSON representation |
|---|
| ``` { "receiverActivity": string, "actions": [ string ], "categories": [ string ] } ``` |

| Fields ||
|---|---|
| `receiverActivity` | `string` The activity that should be the default intent handler. This should be an Android component name, e.g. `com.android.enterprise.app/.MainActivity`. Alternatively, the value may be the package name of an app, which causes Android Device Policy to choose an appropriate activity from the app to handle the intent. |
| `actions[]` | `string` The intent actions to match in the filter. If any actions are included in the filter, then an intent's action must be one of those values for it to match. If no actions are included, the intent action is ignored. |
| `categories[]` | `string` The intent categories to match in the filter. An intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words, adding a category to the filter has no impact on matching unless that category is specified in the intent. |

## SystemUpdate

Configuration for managing system updates

**Note:** [Google Play system updates](https://source.android.com/docs/core/ota/modular-system) (also called Mainline updates) are automatically downloaded but require a device reboot to be installed. Refer to the mainline section in [Manage system updates](https://developer.android.com/work/dpc/system-updates#mainline) for further details.

| JSON representation |
|---|
| ``` { "type": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemUpdateType`), "startMinutes": integer, "endMinutes": integer, "freezePeriods": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#FreezePeriod`) } ] } ``` |

| Fields ||
|---|---|
| `type` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemUpdateType`)`` The type of system update to configure. |
| `startMinutes` | `integer` If the type is `WINDOWED`, the start of the maintenance window, measured as the number of minutes after midnight in the device's local time. This value must be between 0 and 1439, inclusive. |
| `endMinutes` | `integer` If the type is `WINDOWED`, the end of the maintenance window, measured as the number of minutes after midnight in device's local time. This value must be between 0 and 1439, inclusive. If this value is less than `startMinutes`, then the maintenance window spans midnight. If the maintenance window specified is smaller than 30 minutes, the actual window is extended to 30 minutes beyond the start time. |
| `freezePeriods[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#FreezePeriod`)`` An annually repeating time period in which over-the-air (OTA) system updates are postponed to freeze the OS version running on a device. To prevent freezing the device indefinitely, each freeze period must be separated by at least 60 days. |

## SystemUpdateType

The type of system update configuration.

| Enums ||
|---|---|
| `SYSTEM_UPDATE_TYPE_UNSPECIFIED` | Follow the default update behavior for the device, which typically requires the user to accept system updates. |
| `AUTOMATIC` | Install automatically as soon as an update is available. |
| `WINDOWED` | Install automatically within a daily maintenance window. This also configures Play apps to be updated within the window. This is strongly recommended for kiosk devices because this is the only way apps persistently pinned to the foreground can be updated by Play. If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.auto_update_mode` is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutoUpdateMode.ENUM_VALUES.AUTO_UPDATE_HIGH_PRIORITY` for an app, then the maintenance window is ignored for that app and it is updated as soon as possible even outside of the maintenance window. |
| `POSTPONE` | Postpone automatic install up to a maximum of 30 days. This policy does not affect security updates (e.g. monthly security patches). |

## FreezePeriod

A system freeze period. When a device's clock is within the freeze period, all incoming system updates (including security patches) are blocked and won't be installed.

When the device is outside any set freeze periods, the normal policy behavior (automatic, windowed, or postponed) applies.

Leap years are ignored in freeze period calculations, in particular:

- If Feb. 29th is set as the start or end date of a freeze period, the freeze period will start or end on Feb. 28th instead.
- When a device's system clock reads Feb. 29th, it's treated as Feb. 28th.
- When calculating the number of days in a freeze period or the time between two freeze periods, Feb. 29th is ignored and not counted as a day.

Note: For Freeze Periods to take effect, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemUpdateType` cannot be specified as `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemUpdateType.ENUM_VALUES.SYSTEM_UPDATE_TYPE_UNSPECIFIED`, because freeze periods require a defined policy to be specified.

| JSON representation |
|---|
| ``` { "startDate": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Date`) }, "endDate": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Date`) } } ``` |

| Fields ||
|---|---|
| `startDate` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Date`)`` The start date (inclusive) of the freeze period. Note: `day` and `month` must be set. `year` should not be set as it is not used. For example, `{"month": 1,"date": 30}`. |
| `endDate` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Date`)`` The end date (inclusive) of the freeze period. Must be no later than 90 days from the start date. If the end date is earlier than the start date, the freeze period is considered wrapping year-end. Note: `day` and `month` must be set. `year` should not be set as it is not used. For example, `{"month": 1,"date": 30}`. |

## Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following:

- A full date, with non-zero year, month, and day values.
- A month and day, with a zero year (for example, an anniversary).
- A year on its own, with a zero month and a zero day.
- A year and month, with a zero day (for example, a credit card expiration date).

Related types:

- `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TimeOfDay`
- `google.type.DateTime`
- `https://protobuf.dev/reference/protobuf/google.protobuf#timestamp`

| JSON representation |
|---|
| ``` { "year": integer, "month": integer, "day": integer } ``` |

| Fields ||
|---|---|
| `year` | `integer` Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. |
| `month` | `integer` Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. |
| `day` | `integer` Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. |

## StatusReportingSettings

Settings controlling the behavior of status reports.

| JSON representation |
|---|
| ``` { "applicationReportsEnabled": boolean, "deviceSettingsEnabled": boolean, "softwareInfoEnabled": boolean, "memoryInfoEnabled": boolean, "networkInfoEnabled": boolean, "displayInfoEnabled": boolean, "powerManagementEventsEnabled": boolean, "hardwareStatusEnabled": boolean, "systemPropertiesEnabled": boolean, "applicationReportingSettings": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationReportingSettings`) }, "commonCriteriaModeEnabled": boolean, "defaultApplicationInfoReportingEnabled": boolean } ``` |

| Fields ||
|---|---|
| `applicationReportsEnabled` | `boolean` Whether [app reports](https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#applicationreport) are enabled. |
| `deviceSettingsEnabled` | `boolean` Whether [device settings](https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#devicesettings) reporting is enabled. |
| `softwareInfoEnabled` | `boolean` Whether [software info](https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#softwareinfo) reporting is enabled. |
| `memoryInfoEnabled` | `boolean` Whether [memory event](https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#memoryevent) reporting is enabled. |
| `networkInfoEnabled` | `boolean` Whether [network info](https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#networkinfo) reporting is enabled. |
| `displayInfoEnabled` | `boolean` Whether [displays](https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#display) reporting is enabled. Report data is not available for personally owned devices with work profiles. |
| `powerManagementEventsEnabled` | `boolean` Whether [power management event](https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#powermanagementevent) reporting is enabled. Report data is not available for personally owned devices with work profiles. |
| `hardwareStatusEnabled` | `boolean` Whether [hardware status](https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#hardwarestatus) reporting is enabled. Report data is not available for personally owned devices with work profiles. |
| `systemPropertiesEnabled` | `boolean` Whether system properties reporting is enabled. |
| `applicationReportingSettings` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationReportingSettings`)`` Application reporting settings. Only applicable if applicationReportsEnabled is true. |
| `commonCriteriaModeEnabled` | `boolean` Whether `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.common_criteria_mode_info` reporting is enabled. This is supported only on company-owned devices. |
| `defaultApplicationInfoReportingEnabled` | `boolean` Optional. Whether `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.default_application_info` reporting is enabled. |

## ApplicationReportingSettings

Settings controlling the behavior of application reports.

| JSON representation |
|---|
| ``` { "includeRemovedApps": boolean } ``` |

| Fields ||
|---|---|
| `includeRemovedApps` | `boolean` Whether removed apps are included in application reports. |

## PackageNameList

A list of package names.

| JSON representation |
|---|
| ``` { "packageNames": [ string ] } ``` |

| Fields ||
|---|---|
| `packageNames[]` | `string` A list of package names. |

## BatteryPluggedMode

Modes for plugging in the battery.

| Enums ||
|---|---|
| `BATTERY_PLUGGED_MODE_UNSPECIFIED` | This value is ignored. |
| `AC` | Power source is an AC charger. |
| `USB` | Power source is a USB port. |
| `WIRELESS` | Power source is wireless. |

## ProxyInfo

Configuration info for an HTTP proxy. For a direct proxy, set the `host`, `port`, and `excludedHosts` fields. For a PAC script proxy, set the `pacUri` field.

| JSON representation |
|---|
| ``` { "host": string, "port": integer, "excludedHosts": [ string ], "pacUri": string } ``` |

| Fields ||
|---|---|
| `host` | `string` The host of the direct proxy. |
| `port` | `integer` The port of the direct proxy. |
| `excludedHosts[]` | `string` For a direct proxy, the hosts for which the proxy is bypassed. The host names may contain wildcards such as \*.example.com. |
| `pacUri` | `string` The URI of the PAC script used to configure the proxy. |

## ChoosePrivateKeyRule

Controls apps' access to private keys. The rule determines which private key, if any, Android Device Policy grants to the specified app. Access is granted either when the app calls [`KeyChain.choosePrivateKeyAlias`](https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) (or any overloads) to request a private key alias for a given URL, or for rules that are not URL-specific (that is, if `urlPattern` is not set, or set to the empty string or `.*`) on Android 11 and above, directly so that the app can call [`KeyChain.getPrivateKey`](https://developer.android.com/reference/android/security/KeyChain#getPrivateKey%28android.content.Context,%20java.lang.String%29), without first having to call `KeyChain.choosePrivateKeyAlias`.

When an app calls `KeyChain.choosePrivateKeyAlias` if more than one `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.choose_private_key_rules` matches, the last matching rule defines which key alias to return.

| JSON representation |
|---|
| ``` { "urlPattern": string, "packageNames": [ string ], "privateKeyAlias": string } ``` |

| Fields ||
|---|---|
| `urlPattern` | `string` The URL pattern to match against the URL of the request. If not set or empty, it matches all URLs. This uses the regular expression syntax of `java.util.regex.Pattern`. |
| `packageNames[]` | `string` The package names to which this rule applies. The signing key certificate fingerprint of the app is verified against the signing key certificate fingerprints provided by Play Store and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.signing_key_certs` . If no package names are specified, then the alias is provided to all apps that call [`KeyChain.choosePrivateKeyAlias`](https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) or any overloads (but not without calling `KeyChain.choosePrivateKeyAlias`, even on Android 11 and above). Any app with the same Android UID as a package specified here will have access when they call `KeyChain.choosePrivateKeyAlias`. |
| `privateKeyAlias` | `string` The alias of the private key to be used. |

## AlwaysOnVpnPackage

Configuration for an always-on VPN connection.

| JSON representation |
|---|
| ``` { "packageName": string, "lockdownEnabled": boolean } ``` |

| Fields ||
|---|---|
| `packageName` | `string` The package name of the VPN app. |
| `lockdownEnabled` | `boolean` Disallows networking when the VPN is not connected. |

## LocationMode

The degree of location detection enabled on work profile and fully managed devices.

| Enums ||
|---|---|
| `LOCATION_MODE_UNSPECIFIED` | Defaults to `LOCATION_USER_CHOICE`. |
| `HIGH_ACCURACY` | On Android 8 and below, all location detection methods are enabled, including GPS, networks, and other sensors. On Android 9 and above, this is equivalent to `LOCATION_ENFORCED`. > [!WARNING] > Use `LOCATION_ENFORCED` instead. |
| `SENSORS_ONLY` | On Android 8 and below, only GPS and other sensors are enabled. On Android 9 and above, this is equivalent to `LOCATION_ENFORCED`. > [!WARNING] > Use `LOCATION_ENFORCED` instead. |
| `BATTERY_SAVING` | On Android 8 and below, only the network location provider is enabled. On Android 9 and above, this is equivalent to `LOCATION_ENFORCED`. > [!WARNING] > Use `LOCATION_ENFORCED` instead. |
| `OFF` | On Android 8 and below, location setting and accuracy are disabled. On Android 9 and above, this is equivalent to `LOCATION_DISABLED`. > [!WARNING] > Use `LOCATION_DISABLED` instead. |
| `LOCATION_USER_CHOICE` | Location setting is not restricted on the device. No specific behavior is set or enforced. |
| `LOCATION_ENFORCED` | Enable location setting on the device. > [!NOTE] > **Important:** On Android 11 and above, work profiles on company-owned devices cannot directly enforce enabling of location services. When `LOCATION_ENFORCED` is set, then a `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.USER_ACTION` is reported. Compliance can only be restored once the user manually turns on location services through the device's Settings application. |
| `LOCATION_DISABLED` | Disable location setting on the device. > [!NOTE] > **Important:** On Android 11 and above, work profiles on company-owned devices cannot directly enforce disabling of location services. When `LOCATION_DISABLED` is set, then a `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.USER_ACTION` is reported. Compliance can only be restored once the user manually turns off location services through the device's Settings application. |

## ComplianceRule

> [!WARNING]
> This item is deprecated!

A rule declaring which mitigating actions to take when a device is not compliant with its policy. For every rule, there is always an implicit mitigating action to set `policyCompliant` to false for the [`Device`](https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device) resource, and display a message on the device indicating that the device is not compliant with its policy. Other mitigating actions may optionally be taken as well, depending on the field values in the rule.

| JSON representation |
|---|
| ``` { "disableApps": boolean, "packageNamesToDisable": [ string ], // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "nonComplianceDetailCondition": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NonComplianceDetailCondition`) }, "apiLevelCondition": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApiLevelCondition`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `disableApps` | `boolean` If set to true, the rule includes a mitigating action to disable apps so that the device is effectively disabled, but app data is preserved. If the device is running an app in locked task mode, the app will be closed and a UI showing the reason for non-compliance will be displayed. |
| `packageNamesToDisable[]` | `string` If set, the rule includes a mitigating action to disable apps specified in the list, but app data is preserved. |
| The condition, which when satisfied, triggers the mitigating actions defined in the rule. Exactly one of the conditions must be set. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `nonComplianceDetailCondition` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NonComplianceDetailCondition`)`` A condition which is satisfied if there exists *any* matching [`NonComplianceDetail`](https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#NonComplianceDetail) for the device. |
| `apiLevelCondition` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApiLevelCondition`)`` A condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. |
| End of mutually exclusive fields. ||

## NonComplianceDetailCondition

> [!WARNING]
> This item is deprecated!

A compliance rule condition which is satisfied if there exists *any* matching [`NonComplianceDetail`](https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#NonComplianceDetail) for the device. A `NonComplianceDetail` matches a `NonComplianceDetailCondition` if *all* the fields which are set within the `NonComplianceDetailCondition` match the corresponding `NonComplianceDetail` fields.

| JSON representation |
|---|
| ``` { "settingName": string, "nonComplianceReason": enum (`https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason`), "packageName": string } ``` |

| Fields ||
|---|---|
| `settingName` | `string` The name of the policy setting. This is the JSON field name of a top-level [`Policy`](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy) field. If not set, then this condition matches any setting name. |
| `nonComplianceReason` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason`)`` The reason the device is not in compliance with the setting. If not set, then this condition matches any reason. |
| `packageName` | `string` The package name of the app that's out of compliance. If not set, then this condition matches any package name. |

## ApiLevelCondition

> [!WARNING]
> This item is deprecated!

A compliance rule condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. There can only be one rule with this type of condition per policy.

| JSON representation |
|---|
| ``` { "minApiLevel": integer } ``` |

| Fields ||
|---|---|
| `minApiLevel` | `integer` The minimum desired Android Framework API level. If the device doesn't meet the minimum requirement, this condition is satisfied. Must be greater than zero. |

## AppAutoUpdatePolicy

Recommended alternative: `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.auto_update_mode` which is set per app, provides greater flexibility around update frequency.

When `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.auto_update_mode` is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutoUpdateMode.ENUM_VALUES.AUTO_UPDATE_POSTPONED` or `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AutoUpdateMode.ENUM_VALUES.AUTO_UPDATE_HIGH_PRIORITY`, this field has no effect.

The app auto-update policy, which controls when automatic app updates can be applied.

> [!NOTE]
> **Important:** Changes to app update policies don't affect updates that are in progress. Any policy changes will apply to subsequent app updates.

<br />

| Enums ||
|---|---|
| `APP_AUTO_UPDATE_POLICY_UNSPECIFIED` | The auto-update policy is not set. Equivalent to `CHOICE_TO_THE_USER`. |
| `CHOICE_TO_THE_USER` | The user can control auto-updates. |
| `NEVER` | Apps are never auto-updated. |
| `WIFI_ONLY` | Apps are auto-updated over Wi-Fi only. |
| `ALWAYS` | Apps are auto-updated at any time. Data charges may apply. |

## AppTrack

A Google Play app release track.

| Enums ||
|---|---|
| `APP_TRACK_UNSPECIFIED` | This value is ignored. |
| `PRODUCTION` | The production track, which provides the latest stable release. |
| `BETA` | The beta track, which provides the latest beta release. |

## EncryptionPolicy

Type of encryption

| Enums ||
|---|---|
| `ENCRYPTION_POLICY_UNSPECIFIED` | This value is ignored, i.e. no encryption required |
| `ENABLED_WITHOUT_PASSWORD` | Encryption required but no password required to boot |
| `ENABLED_WITH_PASSWORD` | Encryption required with password required to boot |

## PlayStoreMode

Possible values for Play Store mode policy.

| Enums ||
|---|---|
| `PLAY_STORE_MODE_UNSPECIFIED` | Unspecified. Defaults to WHITELIST. |
| `WHITELIST` | Only apps that are in the policy are available and any app not in the policy will be automatically uninstalled from the device. |
| `BLACKLIST` | All apps are available and any app that should not be on the device should be explicitly marked as 'BLOCKED' in the `applications` policy. |

## SetupAction

An action executed during setup.

| JSON representation |
|---|
| ``` { "title": { object (`https://developers.google.com/android/management/reference/rest/v1/UserFacingMessage`) }, "description": { object (`https://developers.google.com/android/management/reference/rest/v1/UserFacingMessage`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "launchApp": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LaunchAppAction`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `title` | ``object (`https://developers.google.com/android/management/reference/rest/v1/UserFacingMessage`)`` Title of this action. |
| `description` | ``object (`https://developers.google.com/android/management/reference/rest/v1/UserFacingMessage`)`` Description of this action. |
| The action to execute during setup. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `launchApp` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LaunchAppAction`)`` An action to launch an app. The app will be launched with an intent containing an extra with key `com.google.android.apps.work.clouddpc.EXTRA_LAUNCHED_AS_SETUP_ACTION` set to the boolean value `true` to indicate that this is a setup action flow. If `SetupAction` references an app, the corresponding `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalApplicationPolicy.FIELDS.install_type` in the application policy must be set as `REQUIRED_FOR_SETUP` or said setup will fail. |
| End of mutually exclusive fields. ||

## LaunchAppAction

An action to launch an app.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "packageName": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| Description of launch action to be executed The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `packageName` | `string` Package name of app to be launched |
| End of mutually exclusive fields. ||

## PolicyEnforcementRule

A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in `settingName`. In the case of multiple matching or multiple triggered enforcement rules, a merge will occur with the most severe action being taken. However, all triggered rules are still kept track of: this includes initial trigger time and all associated non-compliance details. In the situation where the most severe enforcement rule is satisfied, the next most appropriate action is applied.

| JSON representation |
|---|
| ``` { "blockAction": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BlockAction`) }, "wipeAction": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WipeAction`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "settingName": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `blockAction` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BlockAction`)`` An action to block access to apps and data on a company owned device or in a work profile. This action also triggers a user-facing notification with information (where possible) on how to correct the compliance issue. Note: `wipeAction` must also be specified. |
| `wipeAction` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WipeAction`)`` An action to reset a company owned device or delete a work profile. Note: `blockAction` must also be specified. |
| Condition which will trigger this rule. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `settingName` | `string` The top-level policy to enforce. For example, `applications` or `passwordPolicies`. |
| End of mutually exclusive fields. ||

## BlockAction

An action to block access to apps and data on a fully managed device or in a work profile. This action also triggers a device or work profile to displays a user-facing notification with information (where possible) on how to correct the compliance issue. Note: `wipeAction` must also be specified.

| JSON representation |
|---|
| ``` { "blockAfterDays": integer, "blockScope": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BlockScope`) } ``` |

| Fields ||
|---|---|
| `blockAfterDays` | `integer` Number of days the policy is non-compliant before the device or work profile is blocked. To block access immediately, set to 0. `blockAfterDays` must be less than `wipeAfterDays`. |
| `blockScope` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BlockScope`)`` Specifies the scope of this `BlockAction`. Only applicable to devices that are company-owned. |

## BlockScope

Specifies the scope of `BlockAction`. Only applicable to devices that are company-owned.

| Enums ||
|---|---|
| `BLOCK_SCOPE_UNSPECIFIED` | Unspecified. Defaults to `BLOCK_SCOPE_WORK_PROFILE`. |
| `BLOCK_SCOPE_WORK_PROFILE` | Block action is only applied to apps in the work profile. Apps in the personal profile are unaffected. |
| `BLOCK_SCOPE_DEVICE` | Block action is applied to the entire device, including apps in the personal profile. |

## WipeAction

An action to reset a company owned device or delete a work profile. Note: `blockAction` must also be specified.

| JSON representation |
|---|
| ``` { "wipeAfterDays": integer, "preserveFrp": boolean } ``` |

| Fields ||
|---|---|
| `wipeAfterDays` | `integer` Number of days the policy is non-compliant before the device or work profile is wiped. `wipeAfterDays` must be greater than `blockAfterDays`. |
| `preserveFrp` | `boolean` Whether the factory-reset protection data is preserved on the device. This setting applies to fully managed devices and work profiles on company-owned devices. |

## KioskCustomization

Settings controlling the behavior of a device in kiosk mode. To enable kiosk mode, set `kioskCustomLauncherEnabled` to `true` or specify an app in the policy with the `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#RoleType.ENUM_VALUES.KIOSK` role.

| JSON representation |
|---|
| ``` { "powerButtonActions": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PowerButtonActions`), "systemErrorWarnings": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemErrorWarnings`), "systemNavigation": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemNavigation`), "statusBar": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#StatusBar`), "deviceSettings": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceSettings`) } ``` |

| Fields ||
|---|---|
| `powerButtonActions` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PowerButtonActions`)`` Optional. Sets the behavior of a device in kiosk mode when a user presses and holds (long-presses) the Power button. |
| `systemErrorWarnings` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemErrorWarnings`)`` Optional. Specifies whether system error dialogs for crashed or unresponsive apps are blocked in kiosk mode. When blocked, the system will force-stop the app as if the user chooses the "close app" option on the UI. |
| `systemNavigation` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemNavigation`)`` Optional. Specifies which navigation features are enabled (e.g. Home, Overview buttons) in kiosk mode. |
| `statusBar` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#StatusBar`)`` Optional. Specifies whether system info and notifications are disabled in kiosk mode. |
| `deviceSettings` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceSettings`)`` Optional. Specifies whether the Settings app is allowed in kiosk mode. |

## PowerButtonActions

Sets the behavior of a device in kiosk mode when a user presses and holds (long-presses) the Power button.

| Enums ||
|---|---|
| `POWER_BUTTON_ACTIONS_UNSPECIFIED` | Unspecified, defaults to `POWER_BUTTON_AVAILABLE`. |
| `POWER_BUTTON_AVAILABLE` | The power menu (e.g. Power off, Restart) is shown when a user long-presses the Power button of a device in kiosk mode. |
| `POWER_BUTTON_BLOCKED` | The power menu (e.g. Power off, Restart) is not shown when a user long-presses the Power button of a device in kiosk mode. Note: this may prevent users from turning off the device. |

## SystemErrorWarnings

Specifies whether system error dialogs for crashed or unresponsive apps are blocked in kiosk mode.

| Enums ||
|---|---|
| `SYSTEM_ERROR_WARNINGS_UNSPECIFIED` | Unspecified, defaults to `ERROR_AND_WARNINGS_MUTED`. |
| `ERROR_AND_WARNINGS_ENABLED` | All system error dialogs such as crash and app not responding (ANR) are displayed. |
| `ERROR_AND_WARNINGS_MUTED` | All system error dialogs, such as crash and app not responding (ANR) are blocked. When blocked, the system force-stops the app as if the user closes the app from the UI. |

## SystemNavigation

Specifies which navigation features are enabled (e.g. Home, Overview buttons) in kiosk mode.

| Enums ||
|---|---|
| `SYSTEM_NAVIGATION_UNSPECIFIED` | Unspecified, defaults to `NAVIGATION_DISABLED`. |
| `NAVIGATION_ENABLED` | Home and overview buttons are enabled. |
| `NAVIGATION_DISABLED` | The home and Overview buttons are not accessible. |
| `HOME_BUTTON_ONLY` | Only the home button is enabled. |

## StatusBar

Specifies whether system info and notifications are disabled in kiosk mode.

| Enums ||
|---|---|
| `STATUS_BAR_UNSPECIFIED` | Unspecified, defaults to `INFO_AND_NOTIFICATIONS_DISABLED`. |
| `NOTIFICATIONS_AND_SYSTEM_INFO_ENABLED` | System info and notifications are shown on the status bar in kiosk mode. **Note:** For this policy to take effect, the device's home button must be enabled using [`kioskCustomization.systemNavigation`](https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SystemNavigation). |
| `NOTIFICATIONS_AND_SYSTEM_INFO_DISABLED` | System info and notifications are disabled in kiosk mode. |
| `SYSTEM_INFO_ONLY` | Only system info is shown on the status bar. |

## DeviceSettings

Specifies whether a user can access the device's Settings app while in kiosk mode.

| Enums ||
|---|---|
| `DEVICE_SETTINGS_UNSPECIFIED` | Unspecified, defaults to `SETTINGS_ACCESS_ALLOWED`. |
| `SETTINGS_ACCESS_ALLOWED` | Access to the Settings app is allowed in kiosk mode. |
| `SETTINGS_ACCESS_BLOCKED` | Access to the Settings app is not allowed in kiosk mode. |

## AdvancedSecurityOverrides

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

| JSON representation |
|---|
| ``` { "untrustedAppsPolicy": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UntrustedAppsPolicy`), "googlePlayProtectVerifyApps": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#GooglePlayProtectVerifyApps`), "developerSettings": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeveloperSettings`), "commonCriteriaMode": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CommonCriteriaMode`), "personalAppsThatCanReadWorkNotifications": [ string ], "mtePolicy": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MtePolicy`), "contentProtectionPolicy": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ContentProtectionPolicy`) } ``` |

| Fields ||
|---|---|
| `untrustedAppsPolicy` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UntrustedAppsPolicy`)`` Optional. The policy for untrusted apps (apps from unknown sources) enforced on the device. Replaces `installUnknownSourcesAllowed (deprecated).` |
| `googlePlayProtectVerifyApps` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#GooglePlayProtectVerifyApps`)`` Optional. Whether [Google Play Protect verification](https://support.google.com/accounts/answer/2812853) is enforced. Replaces `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.ensure_verify_apps_enabled` (deprecated). |
| `developerSettings` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeveloperSettings`)`` Optional. Controls access to developer settings: developer options and safe boot. Replaces `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.safe_boot_disabled` (deprecated) and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.debugging_features_allowed` (deprecated). On personally-owned devices with a work profile, setting this policy will not disable safe boot. In this case, a `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported. |
| `commonCriteriaMode` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CommonCriteriaMode`)`` Optional. Controls Common Criteria Mode---security standards defined in the [Common Criteria for Information Technology Security Evaluation](https://www.commoncriteriaportal.org/) (CC). Enabling Common Criteria Mode increases certain security components on a device, see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CommonCriteriaMode` for details. Warning: Common Criteria Mode enforces a strict security model typically only required for IT products used in national security systems and other highly sensitive organizations. Standard device use may be affected. Only enabled if required. If Common Criteria Mode is turned off after being enabled previously, all user-configured Wi-Fi networks may be lost and any enterprise-configured Wi-Fi networks that require user input may need to be reconfigured. |
| `personalAppsThatCanReadWorkNotifications[]` | `string` Optional. Personal apps that can read work profile notifications using a [NotificationListenerService](https://developer.android.com/reference/android/service/notification/NotificationListenerService). By default, no personal apps (aside from system apps) can read work notifications. Each value in the list must be a package name. |
| `mtePolicy` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MtePolicy`)`` Optional. Controls [Memory Tagging Extension (MTE)](https://source.android.com/docs/security/test/memory-safety/arm-mte) on the device. The device needs to be rebooted to apply changes to the MTE policy. On Android 15 and above, a `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.PENDING` is reported if the policy change is pending a device reboot. |
| `contentProtectionPolicy` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ContentProtectionPolicy`)`` Optional. Controls whether content protection, which scans for deceptive apps, is enabled. This is supported on Android 15 and above. |

## UntrustedAppsPolicy

The policy for untrusted apps (apps from unknown sources) enforced on the device. Replaces `installUnknownSourcesAllowed (deprecated).`

| Enums ||
|---|---|
| `UNTRUSTED_APPS_POLICY_UNSPECIFIED` | Unspecified. Defaults to DISALLOW_INSTALL. |
| `DISALLOW_INSTALL` | Default. Disallow untrusted app installs on entire device. |
| `ALLOW_INSTALL_IN_PERSONAL_PROFILE_ONLY` | For devices with work profiles, allow untrusted app installs in the device's personal profile only. |
| `ALLOW_INSTALL_DEVICE_WIDE` | Allow untrusted app installs on entire device. |

## GooglePlayProtectVerifyApps

Whether [Google Play Protect verification](https://support.google.com/accounts/answer/2812853) is enforced. Replaces `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.ensure_verify_apps_enabled` (deprecated).

| Enums ||
|---|---|
| `GOOGLE_PLAY_PROTECT_VERIFY_APPS_UNSPECIFIED` | Unspecified. Defaults to VERIFY_APPS_ENFORCED. |
| `VERIFY_APPS_ENFORCED` | Default. Force-enables app verification. |
| `VERIFY_APPS_USER_CHOICE` | Allows the user to choose whether to enable app verification. |

## DeveloperSettings

Controls access to developer settings: developer options and safe boot. Replaces `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.safe_boot_disabled` (deprecated) and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.debugging_features_allowed` (deprecated).

| Enums ||
|---|---|
| `DEVELOPER_SETTINGS_UNSPECIFIED` | Unspecified. Defaults to DEVELOPER_SETTINGS_DISABLED. |
| `DEVELOPER_SETTINGS_DISABLED` | Default. Disables all developer settings and prevents the user from accessing them. |
| `DEVELOPER_SETTINGS_ALLOWED` | Allows all developer settings. The user can access and optionally configure the settings. |

## CommonCriteriaMode

Controls Common Criteria Mode---security standards defined in the [Common Criteria for Information Technology Security Evaluation](https://www.commoncriteriaportal.org/) (CC). Enabling Common Criteria Mode increases certain security components on a device, including:

1. AES-GCM encryption of Bluetooth Long Term Keys
2. Wi-Fi configuration stores
3. Additional network certificates validation requiring the use of TLSv1.2 to connect to [AM API destination hosts](https://support.google.com/work/android/answer/10513641)
4. Cryptographic policy integrity check. It is recommended to set `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#StatusReportingSettings.FIELDS.common_criteria_mode_enabled` to true to obtain the status of policy integrity check. If the policy signature verification fails, then the policy is not applied on the device and `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#CommonCriteriaModeInfo.FIELDS.policy_signature_verification_status` is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#PolicySignatureVerificationStatus.ENUM_VALUES.POLICY_SIGNATURE_VERIFICATION_FAILED`.

Common Criteria Mode is only supported on company-owned devices running Android 11 or above.

Warning: Common Criteria Mode enforces a strict security model typically only required for IT products used in national security systems and other highly sensitive organizations. Standard device use may be affected. Only enabled if required. If Common Criteria Mode is turned off after being enabled previously, all user-configured Wi-Fi networks may be lost and any enterprise-configured Wi-Fi networks that require user input may need to be reconfigured.

| Enums ||
|---|---|
| `COMMON_CRITERIA_MODE_UNSPECIFIED` | Unspecified. Defaults to COMMON_CRITERIA_MODE_DISABLED. |
| `COMMON_CRITERIA_MODE_DISABLED` | Default. Disables Common Criteria Mode. |
| `COMMON_CRITERIA_MODE_ENABLED` | Enables Common Criteria Mode. |

## MtePolicy

Controls [Memory Tagging Extension (MTE)](https://source.android.com/docs/security/test/memory-safety/arm-mte) on the device.

| Enums ||
|---|---|
| `MTE_POLICY_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MtePolicy.ENUM_VALUES.MTE_USER_CHOICE`. |
| `MTE_USER_CHOICE` | The user can choose to enable or disable MTE on the device if the device supports this. |
| `MTE_ENFORCED` | MTE is enabled on the device and the user is not allowed to change this setting. This can be set on fully managed devices and work profiles on company-owned devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for other management modes. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.DEVICE_INCOMPATIBLE` is reported if the device does not support MTE. Supported on Android 14 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 14. |
| `MTE_DISABLED` | MTE is disabled on the device and the user is not allowed to change this setting. This applies only on fully managed devices. In other cases, a `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.DEVICE_INCOMPATIBLE` is reported if the device does not support MTE. Supported on Android 14 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 14. |

## ContentProtectionPolicy

Controls whether content protection, which scans for deceptive apps, is enabled. This is supported on Android 15 and above.

| Enums ||
|---|---|
| `CONTENT_PROTECTION_POLICY_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ContentProtectionPolicy.ENUM_VALUES.CONTENT_PROTECTION_DISABLED`. |
| `CONTENT_PROTECTION_DISABLED` | Content protection is disabled and the user cannot change this. |
| `CONTENT_PROTECTION_ENFORCED` | Content protection is enabled and the user cannot change this. Supported on Android 15 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 15. |
| `CONTENT_PROTECTION_USER_CHOICE` | Content protection is not controlled by the policy. The user is allowed to choose the behavior of content protection. Supported on Android 15 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 15. |

## PersonalUsagePolicies

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

| JSON representation |
|---|
| ``` { "cameraDisabled": boolean, "screenCaptureDisabled": boolean, "accountTypesWithManagementDisabled": [ string ], "maxDaysWithWorkOff": integer, "personalPlayStoreMode": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PlayStoreMode_1`), "personalApplications": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalApplicationPolicy`) } ], "privateSpacePolicy": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateSpacePolicy`), "bluetoothSharing": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BluetoothSharing`), "crossDevicePolicies": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalCrossDevicePolicies`) } } ``` |

| Fields ||
|---|---|
| `cameraDisabled` | `boolean` If true, the camera is disabled on the personal profile. |
| `screenCaptureDisabled` | `boolean` If `true`, screen capture is disabled for all users. This also blocks [Circle to Search](https://support.google.com/android/answer/14508957). |
| `accountTypesWithManagementDisabled[]` | `string` Account types that can't be managed by the user. |
| `maxDaysWithWorkOff` | `integer` Controls how long the work profile can stay off. The minimum duration must be at least 3 days. Other details are as follows: - If the duration is set to 0, the feature is turned off. - If the duration is set to a value smaller than the minimum duration, the feature returns an error. **Note:** If you want to avoid personal profiles being [suspended](https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setPersonalAppsSuspended(android.content.ComponentName,%20boolean)) during long periods of off-time, you can temporarily set a large value for this parameter. <br /> |
| `personalPlayStoreMode` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PlayStoreMode_1`)`` Used together with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalUsagePolicies.FIELDS.personal_applications` to control how apps in the personal profile are allowed or blocked. |
| `personalApplications[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalApplicationPolicy`)`` Policy applied to applications in the personal profile. |
| `privateSpacePolicy` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateSpacePolicy`)`` Optional. Controls whether a private space is allowed on the device. |
| `bluetoothSharing` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BluetoothSharing`)`` Optional. Whether bluetooth sharing is allowed. |
| `crossDevicePolicies` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalCrossDevicePolicies`)`` Optional. Policies controlling cross-device communication in the personal profile. |

## PlayStoreMode

Used together with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalUsagePolicies.FIELDS.personal_applications` to control how apps in the personal profile are allowed or blocked.

| Enums ||
|---|---|
| `PLAY_STORE_MODE_UNSPECIFIED` | Unspecified. Defaults to `BLOCKLIST`. |
| `BLACKLIST` | All Play Store apps are available for installation in the personal profile, except those whose `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalApplicationPolicy.FIELDS.install_type` is `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType_1.ENUM_VALUES.BLOCKED` in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalUsagePolicies.FIELDS.personal_applications`. > [!WARNING] > `BLACKLIST` is deprecated - use `BLOCKLIST` instead. |
| `BLOCKLIST` | All Play Store apps are available for installation in the personal profile, except those whose `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalApplicationPolicy.FIELDS.install_type` is `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType_1.ENUM_VALUES.BLOCKED` in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalUsagePolicies.FIELDS.personal_applications`. |
| `ALLOWLIST` | Only apps explicitly specified in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalUsagePolicies.FIELDS.personal_applications` with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PersonalApplicationPolicy.FIELDS.install_type` set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType_1.ENUM_VALUES.AVAILABLE` are allowed to be installed in the personal profile. |

## PersonalApplicationPolicy

Policies for apps in the personal profile of a company-owned device with a work profile.

| JSON representation |
|---|
| ``` { "packageName": string, "installType": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType_1`) } ``` |

| Fields ||
|---|---|
| `packageName` | `string` The package name of the application. |
| `installType` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType_1`)`` The type of installation to perform. |

## InstallType

Types of installation behaviors a personal profile application can have.

| Enums ||
|---|---|
| `INSTALL_TYPE_UNSPECIFIED` | Unspecified. Defaults to `AVAILABLE`. |
| `BLOCKED` | The app is blocked and can't be installed in the personal profile. If the app was previously installed in the device, it will be uninstalled. |
| `AVAILABLE` | The app is available to install in the personal profile. |

## PrivateSpacePolicy

Controls whether a [private space](https://source.android.com/docs/security/features/private-space) is allowed on the device.

| Enums ||
|---|---|
| `PRIVATE_SPACE_POLICY_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateSpacePolicy.ENUM_VALUES.PRIVATE_SPACE_ALLOWED`. |
| `PRIVATE_SPACE_ALLOWED` | Users can create a private space profile. |
| `PRIVATE_SPACE_DISALLOWED` | Users cannot create a private space profile. Supported only for company-owned devices with a work profile. Caution: Any existing private space will be removed. |

## BluetoothSharing

Whether bluetooth sharing is allowed in the personal profile of a company-owned device with a work profile.

| Enums ||
|---|---|
| `BLUETOOTH_SHARING_UNSPECIFIED` | Unspecified. Defaults to `BLUETOOTH_SHARING_ALLOWED`. |
| `BLUETOOTH_SHARING_ALLOWED` | Bluetooth sharing is allowed on personal profile. Supported on Android 8 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `MANAGEMENT_MODE` is reported if this is set for a personal device. |
| `BLUETOOTH_SHARING_DISALLOWED` | Bluetooth sharing is disallowed on personal profile. Supported on Android 8 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `API_LEVEL` is reported if the Android version is less than 8. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `MANAGEMENT_MODE` is reported if this is set for a personal device. |

## PersonalCrossDevicePolicies

Policies controlling cross-device communication in the personal profile.

| JSON representation |
|---|
| ``` { "taskContinuityHandoff": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TaskContinuityHandoff`) } ``` |

| Fields ||
|---|---|
| `taskContinuityHandoff` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TaskContinuityHandoff`)`` Optional. Controls the [task continuity handoff](https://developer.android.com/partners/android-17/features#handoff) feature for the personal profile on company-owned devices with a work profile. To disable Handoff device-wide on a company-owned device, both `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossDevicePolicies.FIELDS.task_continuity_handoff` and this policy should be set to `TASK_CONTINUITY_HANDOFF_DISALLOWED`. Requires Android 17 QPR1 or higher. |

## TaskContinuityHandoff

Controls the policy setting for the task continuity handoff feature, including both sending and receiving task data between devices.

| Enums ||
|---|---|
| `TASK_CONTINUITY_HANDOFF_UNSPECIFIED` | Defaults to `TASK_CONTINUITY_HANDOFF_ALLOWED`. |
| `TASK_CONTINUITY_HANDOFF_ALLOWED` | Allows the user to enable or disable the task continuity handoff feature in settings. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is lower than Android 17 QPR1. |
| `TASK_CONTINUITY_HANDOFF_DISALLOWED` | The task continuity handoff feature is disallowed. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is lower than Android 17 QPR1. |

## AutoDateAndTimeZone

Whether auto date, time, and time zone is enabled on a company-owned device.

| Enums ||
|---|---|
| `AUTO_DATE_AND_TIME_ZONE_UNSPECIFIED` | Unspecified. Defaults to `AUTO_DATE_AND_TIME_ZONE_USER_CHOICE`. |
| `AUTO_DATE_AND_TIME_ZONE_USER_CHOICE` | Auto date, time, and time zone are left to user's choice. |
| `AUTO_DATE_AND_TIME_ZONE_ENFORCED` | Enforce auto date, time, and time zone on the device. |

## OncCertificateProvider

This feature is not generally available.

| JSON representation |
|---|
| ``` { "certificateReferences": [ string ], // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "contentProviderEndpoint": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ContentProviderEndpoint`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `certificateReferences[]` | `string` This feature is not generally available. |
| This feature is not generally available. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `contentProviderEndpoint` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ContentProviderEndpoint`)`` This feature is not generally available. |
| End of mutually exclusive fields. ||

## ContentProviderEndpoint

This feature is not generally available.

| JSON representation |
|---|
| ``` { "uri": string, "packageName": string, "signingCertsSha256": [ string ] } ``` |

| Fields ||
|---|---|
| `uri` | `string` This feature is not generally available. |
| `packageName` | `string` This feature is not generally available. |
| `signingCertsSha256[]` | `string` Required. This feature is not generally available. |

## CrossProfilePolicies

Controls the data from the work profile that can be accessed from the personal profile and vice versa. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported if the device does not have a work profile.

| JSON representation |
|---|
| ``` { "showWorkContactsInPersonalProfile": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ShowWorkContactsInPersonalProfile`), "crossProfileCopyPaste": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfileCopyPaste`), "crossProfileDataSharing": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfileDataSharing`), "workProfileWidgetsDefault": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WorkProfileWidgetsDefault`), "crossProfileAppFunctions": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfileAppFunctions`), "exemptionsToShowWorkContactsInPersonalProfile": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PackageNameList`) } } ``` |

| Fields ||
|---|---|
| `showWorkContactsInPersonalProfile` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ShowWorkContactsInPersonalProfile`)`` Optional. Whether personal apps can access contacts stored in the work profile. See also `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfilePolicies.FIELDS.exemptions_to_show_work_contacts_in_personal_profile`. |
| `crossProfileCopyPaste` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfileCopyPaste`)`` Optional. Whether text copied from one profile (personal or work) can be pasted in the other profile. |
| `crossProfileDataSharing` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfileDataSharing`)`` Optional. Whether data from one profile (personal or work) can be shared with apps in the other profile. Specifically controls simple data sharing via intents. Management of other cross-profile communication channels, such as contact search, copy/paste, or connected work \& personal apps, are configured separately. |
| `workProfileWidgetsDefault` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WorkProfileWidgetsDefault`)`` Optional. Specifies the default behaviour for work profile widgets. If the policy does not specify `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.work_profile_widgets` for a specific application, it will behave according to the value specified here. |
| `crossProfileAppFunctions` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfileAppFunctions`)`` Optional. Controls whether personal profile apps can invoke app functions exposed by apps in the work profile. |
| `exemptionsToShowWorkContactsInPersonalProfile` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PackageNameList`)`` Optional. List of apps which are excluded from the `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ShowWorkContactsInPersonalProfile` setting. For this to be set, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ShowWorkContactsInPersonalProfile` must be set to one of the following values: - `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ShowWorkContactsInPersonalProfile.ENUM_VALUES.SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED`. In this case, these exemptions act as a blocklist. - `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ShowWorkContactsInPersonalProfile.ENUM_VALUES.SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED`. In this case, these exemptions act as an allowlist. - `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ShowWorkContactsInPersonalProfile.ENUM_VALUES.SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM`. In this case, these exemptions act as an allowlist, in addition to the already allowlisted system apps. Supported on Android 14 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 14. |

## ShowWorkContactsInPersonalProfile

Whether personal apps can access work profile contacts including contact searches and incoming calls

**Note**: Once a work contact is accessed by any personal app, it cannot be guaranteed to stay with the same app, as the contact could be shared or transferred to any other app, depending on the allowed app's behaviour.

| Enums ||
|---|---|
| `SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ShowWorkContactsInPersonalProfile.ENUM_VALUES.SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED`. When this is set, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfilePolicies.FIELDS.exemptions_to_show_work_contacts_in_personal_profile` must not be set. |
| `SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED` | Prevents personal apps from accessing work profile contacts and looking up work contacts. When this is set, personal apps specified in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfilePolicies.FIELDS.exemptions_to_show_work_contacts_in_personal_profile` are allowlisted and can access work profile contacts directly. Supported on Android 7.0 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 7.0. |
| `SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED` | Default. Allows apps in the personal profile to access work profile contacts including contact searches and incoming calls. When this is set, personal apps specified in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfilePolicies.FIELDS.exemptions_to_show_work_contacts_in_personal_profile` are blocklisted and can not access work profile contacts directly. Supported on Android 7.0 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 7.0. |
| `SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM` | Prevents most personal apps from accessing work profile contacts including contact searches and incoming calls, except for the OEM default Dialer, Messages, and Contacts apps. Neither user-configured Dialer, Messages, and Contacts apps, nor any other system or play installed apps, will be able to query work contacts directly. When this is set, personal apps specified in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfilePolicies.FIELDS.exemptions_to_show_work_contacts_in_personal_profile` are allowlisted and can access work profile contacts. Supported on Android 14 and above. If this is set on a device with Android version less than 14, the behaviour falls back to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ShowWorkContactsInPersonalProfile.ENUM_VALUES.SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED` and a `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported. |

## CrossProfileCopyPaste

Whether text copied from one profile (personal or work) can be pasted in the other profile.

| Enums ||
|---|---|
| `CROSS_PROFILE_COPY_PASTE_UNSPECIFIED` | Unspecified. Defaults to COPY_FROM_WORK_TO_PERSONAL_DISALLOWED |
| `COPY_FROM_WORK_TO_PERSONAL_DISALLOWED` | Default. Prevents users from pasting into the personal profile text copied from the work profile. Text copied from the personal profile can be pasted into the work profile, and text copied from the work profile can be pasted into the work profile. |
| `CROSS_PROFILE_COPY_PASTE_ALLOWED` | Text copied in either profile can be pasted in the other profile. |

## CrossProfileDataSharing

Whether data from one profile (personal or work) can be shared with apps in the other profile. Specifically controls simple data sharing via intents. This includes actions like opening a web browser, opening a map, sharing content, opening a document, etc. Management of other cross-profile communication channels, such as contact search, copy/paste, or connected work \& personal apps, are configured separately.

| Enums ||
|---|---|
| `CROSS_PROFILE_DATA_SHARING_UNSPECIFIED` | Unspecified. Defaults to DATA_SHARING_FROM_WORK_TO_PERSONAL_DISALLOWED. |
| `CROSS_PROFILE_DATA_SHARING_DISALLOWED` | Prevents data from being shared from both the personal profile to the work profile and the work profile to the personal profile. |
| `DATA_SHARING_FROM_WORK_TO_PERSONAL_DISALLOWED` | Default. Prevents users from sharing data from the work profile to apps in the personal profile. Personal data can be shared with work apps. |
| `CROSS_PROFILE_DATA_SHARING_ALLOWED` | Data from either profile can be shared with the other profile. |

## WorkProfileWidgetsDefault

Controls if work profile applications are allowed to add widgets to the home screen, where no app-specific policy is defined. Otherwise, the app-specific policy will have priority over this.

| Enums ||
|---|---|
| `WORK_PROFILE_WIDGETS_DEFAULT_UNSPECIFIED` | Unspecified. Defaults to WORK_PROFILE_WIDGETS_DEFAULT_DISALLOWED. |
| `WORK_PROFILE_WIDGETS_DEFAULT_ALLOWED` | Work profile widgets are allowed by default. This means that if the policy does not specify `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.work_profile_widgets` as `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WorkProfileWidgets.ENUM_VALUES.WORK_PROFILE_WIDGETS_DISALLOWED` for the application, it will be able to add widgets to the home screen. |
| `WORK_PROFILE_WIDGETS_DEFAULT_DISALLOWED` | Work profile widgets are disallowed by default. This means that if the policy does not specify `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.work_profile_widgets` as `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WorkProfileWidgets.ENUM_VALUES.WORK_PROFILE_WIDGETS_ALLOWED` for the application, it will be unable to add widgets to the home screen. |

## CrossProfileAppFunctions

Controls whether personal profile apps are allowed to invoke app functions exposed by apps in the work profile.

| Enums ||
|---|---|
| `CROSS_PROFILE_APP_FUNCTIONS_UNSPECIFIED` | Unspecified. If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.app_functions` is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AppFunctions.ENUM_VALUES.APP_FUNCTIONS_ALLOWED`, defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfileAppFunctions.ENUM_VALUES.CROSS_PROFILE_APP_FUNCTIONS_ALLOWED`. If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.app_functions` is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AppFunctions.ENUM_VALUES.APP_FUNCTIONS_DISALLOWED`, defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfileAppFunctions.ENUM_VALUES.CROSS_PROFILE_APP_FUNCTIONS_DISALLOWED`. |
| `CROSS_PROFILE_APP_FUNCTIONS_DISALLOWED` | Personal profile apps are not allowed to invoke app functions exposed by apps in the work profile. |
| `CROSS_PROFILE_APP_FUNCTIONS_ALLOWED` | Personal profile apps can invoke app functions exposed by apps in the work profile. If this is set, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.app_functions` must not be set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AppFunctions.ENUM_VALUES.APP_FUNCTIONS_DISALLOWED`, otherwise the policy will be rejected. |

## PreferentialNetworkService

Controls whether preferential network service is enabled on the work profile or on fully managed devices. See `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.preferential_network_service` for details.

| Enums ||
|---|---|
| `PREFERENTIAL_NETWORK_SERVICE_UNSPECIFIED` | Unspecified. Defaults to `PREFERENTIAL_NETWORK_SERVICES_DISABLED`. |
| `PREFERENTIAL_NETWORK_SERVICE_DISABLED` | Preferential network service is disabled on the work profile. |
| `PREFERENTIAL_NETWORK_SERVICE_ENABLED` | Preferential network service is enabled on the work profile. This setting is only supported on work profiles on devices running Android 12 or above. Starting with Android 13, fully managed devices are also supported. |

## UsageLog

Controls types of device activity logs collected from the device and reported via [Pub/Sub notification](https://developers.google.com/android/management/notifications).

| JSON representation |
|---|
| ``` { "enabledLogTypes": [ enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LogType`) ], "uploadOnCellularAllowed": [ enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LogType`) ] } ``` |

| Fields ||
|---|---|
| `enabledLogTypes[]` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LogType`)`` Optional. Specifies which log types are enabled. Note that users will receive on-device messaging when usage logging is enabled. |
| `uploadOnCellularAllowed[]` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#LogType`)`` Optional. Specifies which of the enabled log types can be uploaded over mobile data. By default logs are queued for upload when the device connects to WiFi. |

## LogType

The types of device activity logs that are reported from the device.

| Enums ||
|---|---|
| `LOG_TYPE_UNSPECIFIED` | This value is not used. |
| `SECURITY_LOGS` | Enable logging of on-device security events, such as when the device password is incorrectly entered or removable storage is mounted. See `https://developers.google.com/android/management/reference/rest/v1/BatchUsageLogEvents#UsageLogEvent` for a complete description of the logged security events. Supported for fully managed devices on Android 7 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only security events from the work profile are logged. Can be overridden by the application delegated scope `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DelegatedScope.ENUM_VALUES.SECURITY_LOGS` |
| `NETWORK_ACTIVITY_LOGS` | Enable logging of on-device network events, such as DNS lookups and TCP connections. See `https://developers.google.com/android/management/reference/rest/v1/BatchUsageLogEvents#UsageLogEvent` for a complete description of the logged network events. Supported for fully managed devices on Android 8 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only network events from the work profile are logged. Can be overridden by the application delegated scope `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DelegatedScope.ENUM_VALUES.NETWORK_ACTIVITY_LOGS` |

## CameraAccess

Controls the use of the camera and whether the user has access to the camera access toggle. The camera access toggle exists on Android 12 and above. As a general principle, the possibility of disabling the camera applies device-wide on fully managed devices and only within the work profile on devices with a work profile. The possibility of disabling the camera access toggle applies only on fully managed devices, in which case it applies device-wide. For specifics, see the enum values.

| Enums ||
|---|---|
| `CAMERA_ACCESS_UNSPECIFIED` | If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.camera_disabled` is true, this is equivalent to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CameraAccess.ENUM_VALUES.CAMERA_ACCESS_DISABLED`. Otherwise, this is equivalent to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CameraAccess.ENUM_VALUES.CAMERA_ACCESS_USER_CHOICE`. |
| `CAMERA_ACCESS_USER_CHOICE` | The field `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.camera_disabled` is ignored. This is the default device behaviour: all cameras on the device are available. On Android 12 and above, the user can use the camera access toggle. |
| `CAMERA_ACCESS_DISABLED` | The field `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.camera_disabled` is ignored. All cameras on the device are disabled (for fully managed devices, this applies device-wide and for work profiles this applies only to the work profile). There are no explicit restrictions placed on the camera access toggle on Android 12 and above: on fully managed devices, the camera access toggle has no effect as all cameras are disabled. On devices with a work profile, this toggle has no effect on apps in the work profile, but it affects apps outside the work profile. |
| `CAMERA_ACCESS_ENFORCED` | The field `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.camera_disabled` is ignored. All cameras on the device are available. On fully managed devices running Android 12 and above, the user is unable to use the camera access toggle. On devices which are not fully managed or which run Android 11 or below, this is equivalent to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CameraAccess.ENUM_VALUES.CAMERA_ACCESS_USER_CHOICE`. |

## MicrophoneAccess

On fully managed devices, controls the use of the microphone and whether the user has access to the microphone access toggle. This setting has no effect on devices which are not fully managed. The microphone access toggle exists on Android 12 and above.

| Enums ||
|---|---|
| `MICROPHONE_ACCESS_UNSPECIFIED` | If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.unmute_microphone_disabled` is true, this is equivalent to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MicrophoneAccess.ENUM_VALUES.MICROPHONE_ACCESS_DISABLED`. Otherwise, this is equivalent to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MicrophoneAccess.ENUM_VALUES.MICROPHONE_ACCESS_USER_CHOICE`. |
| `MICROPHONE_ACCESS_USER_CHOICE` | The field `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.unmute_microphone_disabled` is ignored. This is the default device behaviour: the microphone on the device is available. On Android 12 and above, the user can use the microphone access toggle. |
| `MICROPHONE_ACCESS_DISABLED` | The field `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.unmute_microphone_disabled` is ignored. The microphone on the device is disabled (for fully managed devices, this applies device-wide). The microphone access toggle has no effect as the microphone is disabled. |
| `MICROPHONE_ACCESS_ENFORCED` | The field `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.unmute_microphone_disabled` is ignored. The microphone on the device is available. On devices running Android 12 and above, the user is unable to use the microphone access toggle. On devices which run Android 11 or below, this is equivalent to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MicrophoneAccess.ENUM_VALUES.MICROPHONE_ACCESS_USER_CHOICE`. |

## DeviceConnectivityManagement

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

| JSON representation |
|---|
| ``` { "usbDataAccess": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UsbDataAccess`), "configureWifi": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ConfigureWifi`), "wifiDirectSettings": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiDirectSettings`), "tetheringSettings": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TetheringSettings`), "wifiSsidPolicy": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicy`) }, "wifiRoamingPolicy": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiRoamingPolicy`) }, "bluetoothSharing": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BluetoothSharing_1`), "preferentialNetworkServiceSettings": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceSettings`) }, "apnPolicy": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnPolicy`) }, "privateDnsSettings": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsSettings`) } } ``` |

| Fields ||
|---|---|
| `usbDataAccess` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UsbDataAccess`)`` Optional. Controls what files and/or data can be transferred via USB. Supported only on company-owned devices. |
| `configureWifi` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ConfigureWifi`)`` Optional. Controls Wi-Fi configuring privileges. Based on the option set, user will have either full or limited or no control in configuring Wi-Fi networks. |
| `wifiDirectSettings` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiDirectSettings`)`` Optional. Controls configuring and using Wi-Fi direct settings. Supported on company-owned devices running Android 13 and above. |
| `tetheringSettings` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TetheringSettings`)`` Optional. Controls tethering settings. Based on the value set, the user is partially or fully disallowed from using different forms of tethering. |
| `wifiSsidPolicy` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicy`)`` Optional. Restrictions on which Wi-Fi SSIDs the device can connect to. Note that this does not affect which networks can be configured on the device. Supported on Android 13 (API level 33) and higher on fully managed devices and work profiles on company-owned devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported on other management modes. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 13 (API level 33). |
| `wifiRoamingPolicy` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiRoamingPolicy`)`` Optional. Wi-Fi roaming policy. |
| `bluetoothSharing` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#BluetoothSharing_1`)`` Optional. Controls whether Bluetooth sharing is allowed. |
| `preferentialNetworkServiceSettings` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceSettings`)`` Optional. Preferential network service configuration. Setting this field will override `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.preferential_network_service`. This can be set on both work profiles and fully managed devices on Android 13 and above. See [5G network slicing](https://developers.google.com/android/management/5g-network-slicing) guide for more details. |
| `apnPolicy` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnPolicy`)`` Optional. Access Point Name (APN) policy. Configuration for Access Point Names (APNs) which may override any other APNs on the device. See `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#OverrideApns.ENUM_VALUES.OVERRIDE_APNS_ENABLED` and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnPolicy.FIELDS.override_apns` for details. |
| `privateDnsSettings` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsSettings`)`` Optional. The global private DNS settings. |

## UsbDataAccess

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

| Enums ||
|---|---|
| `USB_DATA_ACCESS_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UsbDataAccess.ENUM_VALUES.DISALLOW_USB_FILE_TRANSFER`. |
| `ALLOW_USB_DATA_TRANSFER` | All types of USB data transfers are allowed. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.usb_file_transfer_disabled` is ignored. |
| `DISALLOW_USB_FILE_TRANSFER` | Transferring files over USB is disallowed. Other types of USB data connections, such as mouse and keyboard connection, are allowed. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.usb_file_transfer_disabled` is ignored. |
| `DISALLOW_USB_DATA_TRANSFER` | When set, all types of USB data transfers are prohibited. Supported for devices running Android 12 or above with USB HAL 1.3 or above. If the setting is not supported, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UsbDataAccess.ENUM_VALUES.DISALLOW_USB_FILE_TRANSFER` will be set. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 12. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.DEVICE_INCOMPATIBLE` is reported if the device does not have USB HAL 1.3 or above. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.usb_file_transfer_disabled` is ignored. |

## ConfigureWifi

Controls Wi-Fi configuring privileges. Based on the option set, the user will have either full or limited or no control in configuring Wi-Fi networks.

| Enums ||
|---|---|
| `CONFIGURE_WIFI_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ConfigureWifi.ENUM_VALUES.ALLOW_CONFIGURING_WIFI` unless `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.wifi_config_disabled` is set to true. If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.wifi_config_disabled` is set to true, this is equivalent to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ConfigureWifi.ENUM_VALUES.DISALLOW_CONFIGURING_WIFI`. |
| `ALLOW_CONFIGURING_WIFI` | The user is allowed to configure Wi-Fi. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.wifi_config_disabled` is ignored. |
| `DISALLOW_ADD_WIFI_CONFIG` | Adding new Wi-Fi configurations is disallowed. The user is only able to switch between already configured networks. Supported on Android 13 and above, on fully managed devices and work profiles on company-owned devices. If the setting is not supported, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ConfigureWifi.ENUM_VALUES.ALLOW_CONFIGURING_WIFI` is set. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 13. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.wifi_config_disabled` is ignored. |
| `DISALLOW_CONFIGURING_WIFI` | Disallows configuring Wi-Fi networks. The setting `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.wifi_config_disabled` is ignored when this value is set. Supported on fully managed devices and work profile on company-owned devices, on all supported API levels. For fully managed devices, setting this removes all configured networks and retains only the networks configured using `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.open_network_configuration` policy. For work profiles on company-owned devices, existing configured networks are not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. **Note:** If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.network_escape_hatch_enabled`). |

## WifiDirectSettings

Controls Wi-Fi direct settings. Supported on company-owned devices running Android 13 and above.

| Enums ||
|---|---|
| `WIFI_DIRECT_SETTINGS_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiDirectSettings.ENUM_VALUES.ALLOW_WIFI_DIRECT` |
| `ALLOW_WIFI_DIRECT` | The user is allowed to use Wi-Fi direct. |
| `DISALLOW_WIFI_DIRECT` | The user is not allowed to use Wi-Fi direct. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 13. |

## TetheringSettings

Controls the extent to which the user is allowed to use different forms of tethering like Wi-Fi tethering, bluetooth tethering, etc.

| Enums ||
|---|---|
| `TETHERING_SETTINGS_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TetheringSettings.ENUM_VALUES.ALLOW_ALL_TETHERING` unless `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.tethering_config_disabled` is set to true. If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.tethering_config_disabled` is set to true, this is equivalent to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TetheringSettings.ENUM_VALUES.DISALLOW_ALL_TETHERING`. |
| `ALLOW_ALL_TETHERING` | Allows configuration and use of all forms of tethering. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.tethering_config_disabled` is ignored. |
| `DISALLOW_WIFI_TETHERING` | Disallows the user from using Wi-Fi tethering. Supported on company owned devices running Android 13 and above. If the setting is not supported, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TetheringSettings.ENUM_VALUES.ALLOW_ALL_TETHERING` will be set. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 13. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.tethering_config_disabled` is ignored. |
| `DISALLOW_ALL_TETHERING` | Disallows all forms of tethering. Supported on fully managed devices and work profile on company-owned devices, on all supported android versions. The setting `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.tethering_config_disabled` is ignored. |

## WifiSsidPolicy

Restrictions on which Wi-Fi SSIDs the device can connect to. Note that this does not affect which networks can be configured on the device. Supported on Android 13 (API level 33) and higher on fully managed devices and work profiles on company-owned devices.

| JSON representation |
|---|
| ``` { "wifiSsidPolicyType": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicyType`), "wifiSsids": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsid`) } ] } ``` |

| Fields ||
|---|---|
| `wifiSsidPolicyType` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicyType`)`` Optional. Type of the Wi-Fi SSID policy to be applied. |
| `wifiSsids[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsid`)`` Optional. List of Wi-Fi SSIDs that should be applied in the policy. This field must be non-empty when `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicy.FIELDS.wifi_ssid_policy_type` is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicyType.ENUM_VALUES.WIFI_SSID_ALLOWLIST`. |

## WifiSsidPolicyType

The types of Wi-Fi SSID policy that can be applied on the device.

| Enums ||
|---|---|
| `WIFI_SSID_POLICY_TYPE_UNSPECIFIED` | Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicyType.ENUM_VALUES.WIFI_SSID_DENYLIST`. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicy.FIELDS.wifi_ssids` must not be set. There are no restrictions on which SSID the device can connect to. |
| `WIFI_SSID_DENYLIST` | The device cannot connect to any Wi-Fi network whose SSID is in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicy.FIELDS.wifi_ssids`, but can connect to other networks. |
| `WIFI_SSID_ALLOWLIST` | The device can make Wi-Fi connections only to the SSIDs in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicy.FIELDS.wifi_ssids`. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiSsidPolicy.FIELDS.wifi_ssids` must not be empty. The device will not be able to connect to any other Wi-Fi network. |

## WifiSsid

Represents a Wi-Fi SSID.

| JSON representation |
|---|
| ``` { "wifiSsid": string } ``` |

| Fields ||
|---|---|
| `wifiSsid` | `string` Required. Wi-Fi SSID represented as a string. |

## WifiRoamingPolicy

Wi-Fi roaming policy.

| JSON representation |
|---|
| ``` { "wifiRoamingSettings": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiRoamingSetting`) } ] } ``` |

| Fields ||
|---|---|
| `wifiRoamingSettings[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiRoamingSetting`)`` Optional. Wi-Fi roaming settings. SSIDs provided in this list must be unique, the policy will be rejected otherwise. |

## WifiRoamingSetting

Wi-Fi roaming setting.

| JSON representation |
|---|
| ``` { "wifiSsid": string, "wifiRoamingMode": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiRoamingMode`) } ``` |

| Fields ||
|---|---|
| `wifiSsid` | `string` Required. SSID of the Wi-Fi network. |
| `wifiRoamingMode` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiRoamingMode`)`` Required. Wi-Fi roaming mode for the specified SSID. |

## WifiRoamingMode

Wi-Fi roaming mode.

| Enums ||
|---|---|
| `WIFI_ROAMING_MODE_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiRoamingMode.ENUM_VALUES.WIFI_ROAMING_DEFAULT`. |
| `WIFI_ROAMING_DISABLED` | Wi-Fi roaming is disabled. Supported on Android 15 and above on fully managed devices and work profiles on company-owned devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for other management modes. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 15. |
| `WIFI_ROAMING_DEFAULT` | Default Wi-Fi roaming mode of the device. |
| `WIFI_ROAMING_AGGRESSIVE` | Aggressive roaming mode which allows quicker Wi-Fi roaming. Supported on Android 15 and above on fully managed devices and work profiles on company-owned devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for other management modes. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 15. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.DEVICE_INCOMPATIBLE` is reported if the device does not support aggressive roaming mode. |

## BluetoothSharing

Controls whether Bluetooth sharing is allowed.

| Enums ||
|---|---|
| `BLUETOOTH_SHARING_UNSPECIFIED` | Unspecified. Defaults to `BLUETOOTH_SHARING_DISALLOWED` on work profiles and `BLUETOOTH_SHARING_ALLOWED` on fully managed devices. |
| `BLUETOOTH_SHARING_ALLOWED` | Bluetooth sharing is allowed. Supported on Android 8 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `API_LEVEL` is reported on work profiles if the Android version is less than 8. |
| `BLUETOOTH_SHARING_DISALLOWED` | Bluetooth sharing is disallowed. Supported on Android 8 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `API_LEVEL` is reported on fully managed devices if the Android version is less than 8. |

## PreferentialNetworkServiceSettings

Preferential network service settings.

| JSON representation |
|---|
| ``` { "preferentialNetworkServiceConfigs": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceConfig`) } ], "defaultPreferentialNetworkId": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkId`) } ``` |

| Fields ||
|---|---|
| `preferentialNetworkServiceConfigs[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceConfig`)`` Required. Preferential network service configurations which enables having multiple enterprise slices. There must not be multiple configurations with the same `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceConfig.FIELDS.preferential_network_id`. If a configuration is not referenced by any application by setting `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.preferential_network_id` or by setting `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceSettings.FIELDS.default_preferential_network_id`, it will be ignored. For devices on 4G networks, enterprise APN needs to be configured additionally to set up data call for preferential network service. These APNs can be added using `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceConnectivityManagement.FIELDS.apn_policy`. |
| `defaultPreferentialNetworkId` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkId`)`` Required. Default preferential network ID for the applications that are not in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.applications` or if `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.preferential_network_id` is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkId.ENUM_VALUES.PREFERENTIAL_NETWORK_ID_UNSPECIFIED`. There must be a configuration for the specified network ID in `preferentialNetworkServiceConfigs`, unless this is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkId.ENUM_VALUES.NO_PREFERENTIAL_NETWORK`. If set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkId.ENUM_VALUES.PREFERENTIAL_NETWORK_ID_UNSPECIFIED` or unset, this defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkId.ENUM_VALUES.NO_PREFERENTIAL_NETWORK`. Note: If the default preferential network is misconfigured, applications with no `ApplicationPolicy.preferentialNetworkId` set are not able to access the internet. This setting does not apply to the following critical apps: - `com.google.android.apps.work.clouddpc` - `com.google.android.gms` `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.preferential_network_id` can still be used to configure the preferential network for them. |

## PreferentialNetworkServiceConfig

Individual preferential network service configuration.

| JSON representation |
|---|
| ``` { "preferentialNetworkId": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkId`), "fallbackToDefaultConnection": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#FallbackToDefaultConnection`), "nonMatchingNetworks": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NonMatchingNetworks`) } ``` |

| Fields ||
|---|---|
| `preferentialNetworkId` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkId`)`` Required. Preferential network identifier. This must not be set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkId.ENUM_VALUES.NO_PREFERENTIAL_NETWORK` or `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkId.ENUM_VALUES.PREFERENTIAL_NETWORK_ID_UNSPECIFIED`, the policy will be rejected otherwise. |
| `fallbackToDefaultConnection` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#FallbackToDefaultConnection`)`` Optional. Whether fallback to the device-wide default network is allowed. If this is set to `FALLBACK_TO_DEFAULT_CONNECTION_ALLOWED`, then `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceConfig.FIELDS.non_matching_networks` must not be set to `NON_MATCHING_NETWORKS_DISALLOWED`, the policy will be rejected otherwise. Note: If this is set to `FALLBACK_TO_DEFAULT_CONNECTION_DISALLOWED`, applications are not able to access the internet if the 5G slice is not available. |
| `nonMatchingNetworks` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NonMatchingNetworks`)`` Optional. Whether apps this configuration applies to are blocked from using networks other than the preferential service. If this is set to `NON_MATCHING_NETWORKS_DISALLOWED`, then `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceConfig.FIELDS.fallback_to_default_connection` must be set to `FALLBACK_TO_DEFAULT_CONNECTION_DISALLOWED`. |

## FallbackToDefaultConnection

Whether fallback to the device-wide default network is allowed. Note that while this setting determines whether the apps subject to this configuration have a default network in the absence of a preferential service, apps can still explicitly decide to use another network than their default network by requesting them from the system. This setting does not determine whether the apps are blocked from using such other networks. See `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceConfig.FIELDS.non_matching_networks` for this setting.

| Enums ||
|---|---|
| `FALLBACK_TO_DEFAULT_CONNECTION_UNSPECIFIED` | Unspecified. Defaults to `FALLBACK_TO_DEFAULT_CONNECTION_ALLOWED`. |
| `FALLBACK_TO_DEFAULT_CONNECTION_ALLOWED` | Fallback to default connection is allowed. If this is set, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceConfig.FIELDS.non_matching_networks` must not be set to `NON_MATCHING_NETWORKS_DISALLOWED`, the policy will be rejected otherwise. |
| `FALLBACK_TO_DEFAULT_CONNECTION_DISALLOWED` | Fallback to default connection is not allowed. |

## NonMatchingNetworks

Whether apps this configuration applies to are allowed to use networks other than the preferential service. Apps can inspect the list of available networks on the device and choose to use multiple networks concurrently for performance, privacy or other reasons.

| Enums ||
|---|---|
| `NON_MATCHING_NETWORKS_UNSPECIFIED` | Unspecified. Defaults to `NON_MATCHING_NETWORKS_ALLOWED`. |
| `NON_MATCHING_NETWORKS_ALLOWED` | Apps this configuration applies to are allowed to use networks other than the preferential service. |
| `NON_MATCHING_NETWORKS_DISALLOWED` | Apps this configuration applies to are disallowed from using other networks than the preferential service. This can be set on Android 14 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 14. If this is set, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PreferentialNetworkServiceConfig.FIELDS.fallback_to_default_connection` must be set to `FALLBACK_TO_DEFAULT_CONNECTION_DISALLOWED`, the policy will be rejected otherwise. |

## ApnPolicy

Access Point Name (APN) policy. Configuration for Access Point Names (APNs) which may override any other APNs on the device. See `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#OverrideApns.ENUM_VALUES.OVERRIDE_APNS_ENABLED` and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnPolicy.FIELDS.override_apns` for details.

| JSON representation |
|---|
| ``` { "overrideApns": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#OverrideApns`), "apnSettings": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnSetting`) } ] } ``` |

| Fields ||
|---|---|
| `overrideApns` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#OverrideApns`)`` Optional. Whether override APNs are disabled or enabled. See [`DevicePolicyManager.setOverrideApnsEnabled`](https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setOverrideApnsEnabled) for more details. |
| `apnSettings[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnSetting`)`` Optional. APN settings for override APNs. There must not be any conflict between any of APN settings provided, otherwise the policy will be rejected. Two `ApnSetting`s are considered to conflict when all of the following fields match on both: `numericOperatorId`, `apn`, `proxyAddress`, `proxyPort`, `mmsProxyAddress`, `mmsProxyPort`, `mmsc`, `mvnoType`, `protocol`, `roamingProtocol`. If some of the APN settings result in non-compliance of `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.INVALID_VALUE` , they will be ignored. This can be set on fully managed devices on Android 10 and above. This can also be set on work profiles on Android 13 and above and only with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnSetting`'s with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnType.ENUM_VALUES.ENTERPRISE` APN type. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 10. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles on Android versions less than 13. |

## OverrideApns

Whether override APNs are disabled or enabled. See [`DevicePolicyManager.setOverrideApnsEnabled`](https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setOverrideApnsEnabled) for more details.

| Enums ||
|---|---|
| `OVERRIDE_APNS_UNSPECIFIED` | Unspecified. Defaults to `OVERRIDE_APNS_DISABLED`. |
| `OVERRIDE_APNS_DISABLED` | Override APNs disabled. Any configured `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnPolicy.FIELDS.apn_settings` are saved on the device, but are disabled and have no effect. Any other APNs on the device remain in use. |
| `OVERRIDE_APNS_ENABLED` | Override APNs enabled. Only override APNs are in use, any other APNs are ignored. This can only be set on fully managed devices on Android 10 and above. For work profiles override APNs are enabled via `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceConnectivityManagement.FIELDS.preferential_network_service_settings` and this value cannot be set. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 10. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |

## ApnSetting

An Access Point Name (APN) configuration for a carrier data connection. The APN provides configuration to connect a cellular network device to an IP data network. A carrier uses this setting to decide which IP address to assign, any security methods to apply, and how the device might be connected to private networks.

| JSON representation |
|---|
| ``` { "apnTypes": [ enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnType`) ], "apn": string, "displayName": string, "alwaysOnSetting": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AlwaysOnSetting`), "authType": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AuthType`), "carrierId": integer, "mmsProxyAddress": string, "mmsProxyPort": integer, "mmsc": string, "mtuV4": integer, "mtuV6": integer, "mvnoType": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MvnoType`), "networkTypes": [ enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NetworkType`) ], "username": string, "password": string, "numericOperatorId": string, "protocol": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Protocol`), "roamingProtocol": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Protocol`), "proxyAddress": string, "proxyPort": integer } ``` |

| Fields ||
|---|---|
| `apnTypes[]` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnType`)`` Required. Usage categories for the APN. Policy will be rejected if this field is empty or contains `APN_TYPE_UNSPECIFIED` or duplicates. Multiple APN types can be set on fully managed devices. `ENTERPRISE` is the only allowed APN type on work profiles. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for any other value on work profiles. APN types that are not supported on the device or management mode will be ignored. If this results in the empty list, the APN setting will be ignored, because `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnSetting.FIELDS.apn_types` is a required field. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.INVALID_VALUE` is reported if none of the APN types are supported on the device or management mode. |
| `apn` | `string` Required. Name of the APN. Policy will be rejected if this field is empty. |
| `displayName` | `string` Required. Human-readable name that describes the APN. Policy will be rejected if this field is empty. |
| `alwaysOnSetting` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AlwaysOnSetting`)`` Optional. Whether User Plane resources have to be activated during every transition from CM-IDLE mode to CM-CONNECTED state for this APN. See 3GPP TS 23.501 section 5.6.13. |
| `authType` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AuthType`)`` Optional. Authentication type of the APN. |
| `carrierId` | `integer` Optional. Carrier ID for the APN. A value of 0 (default) means not set and negative values are rejected. |
| `mmsProxyAddress` | `string` Optional. MMS (Multimedia Messaging Service) proxy address of the APN which can be an IP address or hostname (not a URL). |
| `mmsProxyPort` | `integer` Optional. MMS (Multimedia Messaging Service) proxy port of the APN. A value of 0 (default) means not set and negative values are rejected. |
| `mmsc` | `string` Optional. MMSC (Multimedia Messaging Service Center) URI of the APN. |
| `mtuV4` | `integer` Optional. The default MTU (Maximum Transmission Unit) size in bytes of the IPv4 routes brought up by this APN setting. A value of 0 (default) means not set and negative values are rejected. Supported on Android 13 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 13. |
| `mtuV6` | `integer` Optional. The MTU (Maximum Transmission Unit) size of the IPv6 mobile interface to which the APN connected. A value of 0 (default) means not set and negative values are rejected. Supported on Android 13 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 13. |
| `mvnoType` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MvnoType`)`` Optional. MVNO match type for the APN. |
| `networkTypes[]` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NetworkType`)`` Optional. Radio technologies (network types) the APN may use. Policy will be rejected if this field contains `NETWORK_TYPE_UNSPECIFIED` or duplicates. |
| `username` | `string` Optional. APN username of the APN. |
| `password` | `string` Optional. APN password of the APN. |
| `numericOperatorId` | `string` Optional. The numeric operator ID of the APN. Numeric operator ID is defined as MCC (Mobile Country Code) + MNC (Mobile Network Code). |
| `protocol` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Protocol`)`` Optional. The protocol to use to connect to this APN. |
| `roamingProtocol` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Protocol`)`` Optional. The protocol to use to connect to this APN while the device is roaming. |
| `proxyAddress` | `string` Optional. The proxy address of the APN. |
| `proxyPort` | `integer` Optional. The proxy port of the APN. A value of 0 (default) means not set and negative values are rejected. |

## ApnType

Usage category for the APN.

| Enums ||
|---|---|
| `APN_TYPE_UNSPECIFIED` | Unspecified. This value is not used. |
| `ENTERPRISE` | APN type for enterprise traffic. Supported on Android 13 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 13. |
| `BIP` | APN type for BIP (Bearer Independent Protocol). This can only be set on fully managed devices on Android 12 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 12. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `CBS` | APN type for CBS (Carrier Branded Services). This can only be set on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `DEFAULT` | APN type for default data traffic. This can only be set on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `DUN` | APN type for DUN (Dial-up networking) traffic. This can only be set on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `EMERGENCY` | APN type for Emergency PDN. This is not an IA apn, but is used for access to carrier services in an emergency call situation. This can only be set on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `FOTA` | APN type for accessing the carrier's FOTA (Firmware Over-the-Air) portal, used for over the air updates. This can only be set on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `HIPRI` | APN type for HiPri (high-priority) traffic. This can only be set on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `IA` | APN type for IA (Initial Attach) APN. This can only be set on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `IMS` | APN type for IMS (IP Multimedia Subsystem) traffic. This can only be set on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `MCX` | APN type for MCX (Mission Critical Service) where X can be PTT/Video/Data. This can only be set on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `MMS` | APN type for MMS (Multimedia Messaging Service) traffic. This can only be set on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `RCS` | APN type for RCS (Rich Communication Services). This can only be set on fully managed devices on Android 15 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 15. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `SUPL` | APN type for SUPL (Secure User Plane Location) assisted GPS. This can only be set on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `VSIM` | APN type for VSIM (Virtual SIM) service. This can only be set on fully managed devices on Android 12 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 12. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |
| `XCAP` | APN type for XCAP (XML Configuration Access Protocol) traffic. This can only be set on fully managed devices on Android 11 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 11. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for work profiles. |

## AlwaysOnSetting

Whether User Plane resources have to be activated during every transition from CM-IDLE mode to CM-CONNECTED state for this APN. See 3GPP TS 23.501 section 5.6.13.

| Enums ||
|---|---|
| `ALWAYS_ON_SETTING_UNSPECIFIED` | Unspecified. Defaults to `NOT_ALWAYS_ON`. |
| `NOT_ALWAYS_ON` | The PDU session brought up by this APN should not be always on. |
| `ALWAYS_ON` | The PDU session brought up by this APN should always be on. Supported on Android 15 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 15. |

## AuthType

Authentication type of the APN.

| Enums ||
|---|---|
| `AUTH_TYPE_UNSPECIFIED` | Unspecified. If `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApnSetting.FIELDS.username` is empty, defaults to `NONE`. Otherwise, defaults to `PAP_OR_CHAP`. |
| `NONE` | Authentication is not required. |
| `PAP` | Authentication type for PAP. |
| `CHAP` | Authentication type for CHAP. |
| `PAP_OR_CHAP` | Authentication type for PAP or CHAP. |

## MvnoType

MVNO match type for the APN.

| Enums ||
|---|---|
| `MVNO_TYPE_UNSPECIFIED` | The MVNO type is not specified. |
| `GID` | MVNO type for group identifier level 1. |
| `ICCID` | MVNO type for ICCID. |
| `IMSI` | MVNO type for IMSI. |
| `SPN` | MVNO type for SPN (service provider name). |

## NetworkType

Radio technology (network type) the APN may use.

| Enums ||
|---|---|
| `NETWORK_TYPE_UNSPECIFIED` | Unspecified. This value must not be used. |
| `EDGE` | Radio technology EDGE. |
| `GPRS` | Radio technology GPRS. |
| `GSM` | Radio technology GSM. |
| `HSDPA` | Radio technology HSDPA. |
| `HSPA` | Radio technology HSPA. |
| `HSPAP` | Radio technology HSPAP. |
| `HSUPA` | Radio technology HSUPA. |
| `IWLAN` | Radio technology IWLAN. |
| `LTE` | Radio technology LTE. |
| `NR` | Radio technology NR (New Radio) 5G. |
| `TD_SCDMA` | Radio technology TD_SCDMA. |
| `UMTS` | Radio technology UMTS. |

## Protocol

The protocol to use to connect to the APN.

| Enums ||
|---|---|
| `PROTOCOL_UNSPECIFIED` | The protocol is not specified. |
| `IP` | Internet protocol. |
| `IPV4V6` | Virtual PDP type introduced to handle dual IP stack UE capability. |
| `IPV6` | Internet protocol, version 6. |
| `NON_IP` | Transfer of Non-IP data to external packet data network. |
| `PPP` | Point to point protocol. |
| `UNSTRUCTURED` | Transfer of Unstructured data to the Data Network via N6. |

## PrivateDnsSettings

Controls the device's private DNS settings.

| JSON representation |
|---|
| ``` { "privateDnsMode": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsMode`), "privateDnsHost": string } ``` |

| Fields ||
|---|---|
| `privateDnsMode` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsMode`)`` Optional. The configuration mode for device's global private DNS settings. If this is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsMode.ENUM_VALUES.PRIVATE_DNS_SPECIFIED_HOST`, then `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsSettings.FIELDS.private_dns_host` must be set. |
| `privateDnsHost` | `string` Optional. The hostname of the DNS server. This must be set if and only if `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsSettings.FIELDS.private_dns_mode` is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsMode.ENUM_VALUES.PRIVATE_DNS_SPECIFIED_HOST`. Supported on Android 10 and above on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported on other management modes. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 10. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.PENDING` is reported if the device is not connected to a network. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `nonComplianceReason` `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.INVALID_VALUE` and `specificNonComplianceReason` `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#SpecificNonComplianceReason.ENUM_VALUES.PRIVATE_DNS_HOST_NOT_SERVING` is reported if the specified host is not a DNS server or not supported on Android. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.INVALID_VALUE` is reported if applying this setting fails for any other reason. |

## PrivateDnsMode

The different modes of private DNS.

| Enums ||
|---|---|
| `PRIVATE_DNS_MODE_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsMode.ENUM_VALUES.PRIVATE_DNS_USER_CHOICE`. |
| `PRIVATE_DNS_USER_CHOICE` | The user is allowed to configure private DNS. |
| `PRIVATE_DNS_AUTOMATIC` | Automatic private DNS mode. The device tries to use the network-provided DNS server over an encrypted connection before resorting to cleartext. The user is not allowed to modify this setting. Supported on Android 10 and above on fully managed devices and work profiles on company-owned devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported on other management modes. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 10. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.INVALID_VALUE` is reported if setting this fails for any other reason. **Note:** For work profiles on company-owned devices, setting this mode prevents the user from changing the setting, but the active private DNS setting is not modified. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported in this case. |
| `PRIVATE_DNS_SPECIFIED_HOST` | The device only uses the DNS server specified in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsSettings.FIELDS.private_dns_host`. The user is not allowed to modify this setting. If this is set, then `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrivateDnsSettings.FIELDS.private_dns_host` must be set. Supported on Android 10 and above on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported on other management modes. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 10. |

## DeviceRadioState

Controls for device radio settings.

| JSON representation |
|---|
| ``` { "wifiState": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiState`), "airplaneModeState": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AirplaneModeState`), "ultraWidebandState": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UltraWidebandState`), "cellularTwoGState": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CellularTwoGState`), "minimumWifiSecurityLevel": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MinimumWifiSecurityLevel`), "userInitiatedAddEsimSettings": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserInitiatedAddEsimSettings`), "nfc": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Nfc`) } ``` |

| Fields ||
|---|---|
| `wifiState` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiState`)`` Optional. Controls current state of Wi-Fi and if user can change its state. |
| `airplaneModeState` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AirplaneModeState`)`` Optional. Controls whether airplane mode can be toggled by the user or not. |
| `ultraWidebandState` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UltraWidebandState`)`` Optional. Controls the state of the ultra wideband setting and whether the user can toggle it on or off. |
| `cellularTwoGState` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CellularTwoGState`)`` Optional. Controls whether cellular 2G setting can be toggled by the user or not. |
| `minimumWifiSecurityLevel` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MinimumWifiSecurityLevel`)`` Optional. The minimum required security level of Wi-Fi networks that the device can connect to. |
| `userInitiatedAddEsimSettings` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UserInitiatedAddEsimSettings`)`` Optional. Controls whether the user is allowed to add eSIM profiles. |
| `nfc` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Nfc`)`` Optional. Controls whether NFC is disabled on the device and if the user can toggle NFC between enabled and disabled. This is for fully managed devices. To control NFC on work profiles on company-owned devices, use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceWideRadioState.FIELDS.nfc` instead. |

## WifiState

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

| Enums ||
|---|---|
| `WIFI_STATE_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WifiState.ENUM_VALUES.WIFI_STATE_USER_CHOICE` |
| `WIFI_STATE_USER_CHOICE` | User is allowed to enable/disable Wi-Fi. |
| `WIFI_ENABLED` | Wi-Fi is on and the user is not allowed to turn it off. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 13. |
| `WIFI_DISABLED` | Wi-Fi is off and the user is not allowed to turn it on. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 13. |

## AirplaneModeState

Controls the state of airplane mode and whether the user can toggle it on or off. Supported on Android 9 and above. Supported on fully managed devices and work profiles on company-owned devices.

| Enums ||
|---|---|
| `AIRPLANE_MODE_STATE_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AirplaneModeState.ENUM_VALUES.AIRPLANE_MODE_USER_CHOICE`. |
| `AIRPLANE_MODE_USER_CHOICE` | The user is allowed to toggle airplane mode on or off. |
| `AIRPLANE_MODE_DISABLED` | Airplane mode is disabled. The user is not allowed to toggle airplane mode on. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 9. |

## UltraWidebandState

Controls the state of the ultra wideband setting and whether the user can toggle it on or off. Supported on Android 14 and above. Supported on fully managed devices and work profiles on company-owned devices.

| Enums ||
|---|---|
| `ULTRA_WIDEBAND_STATE_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UltraWidebandState.ENUM_VALUES.ULTRA_WIDEBAND_USER_CHOICE`. |
| `ULTRA_WIDEBAND_USER_CHOICE` | The user is allowed to toggle ultra wideband on or off. |
| `ULTRA_WIDEBAND_DISABLED` | Ultra wideband is disabled. The user is not allowed to toggle ultra wideband on via settings. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 14. |

## CellularTwoGState

Controls the state of cellular 2G setting and whether the user can toggle it on or off. Supported on Android 14 and above. Supported on fully managed devices and work profiles on company-owned devices.

| Enums ||
|---|---|
| `CELLULAR_TWO_G_STATE_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CellularTwoGState.ENUM_VALUES.CELLULAR_TWO_G_USER_CHOICE`. |
| `CELLULAR_TWO_G_USER_CHOICE` | The user is allowed to toggle cellular 2G on or off. |
| `CELLULAR_TWO_G_DISABLED` | Cellular 2G is disabled. The user is not allowed to toggle cellular 2G on via settings. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 14. |

## MinimumWifiSecurityLevel

Defines the different minimum Wi-Fi security levels required to connect to Wi-Fi networks. Supported on Android 13 and above. Supported on fully managed devices and work profiles on company-owned devices.

| Enums ||
|---|---|
| `MINIMUM_WIFI_SECURITY_LEVEL_UNSPECIFIED` | Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MinimumWifiSecurityLevel.ENUM_VALUES.OPEN_NETWORK_SECURITY`, which means the device will be able to connect to all types of Wi-Fi networks. |
| `OPEN_NETWORK_SECURITY` | The device will be able to connect to all types of Wi-Fi networks. |
| `PERSONAL_NETWORK_SECURITY` | A personal network such as WEP, WPA2-PSK is the minimum required security. The device will not be able to connect to open wifi networks. This is stricter than `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MinimumWifiSecurityLevel.ENUM_VALUES.OPEN_NETWORK_SECURITY`. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 13. |
| `ENTERPRISE_NETWORK_SECURITY` | An enterprise EAP network is the minimum required security level. The device will not be able to connect to Wi-Fi network below this security level. This is stricter than `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MinimumWifiSecurityLevel.ENUM_VALUES.PERSONAL_NETWORK_SECURITY`. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 13. |
| `ENTERPRISE_BIT192_NETWORK_SECURITY` | A 192-bit enterprise network is the minimum required security level. The device will not be able to connect to Wi-Fi network below this security level. This is stricter than `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#MinimumWifiSecurityLevel.ENUM_VALUES.ENTERPRISE_NETWORK_SECURITY`. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 13. |

## UserInitiatedAddEsimSettings

Controls whether the user is allowed to add eSIM profiles.

| Enums ||
|---|---|
| `USER_INITIATED_ADD_ESIM_SETTINGS_UNSPECIFIED` | Unspecified. Defaults to `USER_INITIATED_ADD_ESIM_ALLOWED`. |
| `USER_INITIATED_ADD_ESIM_ALLOWED` | The user is allowed to add eSIM profiles. |
| `USER_INITIATED_ADD_ESIM_DISALLOWED` | Prevents the user from adding any new eSIM profiles. Note the following behaviors: \* Admin-provisioned eSIMs: This setting does not block adding or managing eSIMs programmatically using commands like `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices/issueCommand#CommandType.ENUM_VALUES.ADD_ESIM`. \* Existing eSIMs: Any eSIM profiles already present on the device before this restriction is applied, will remain and are not removed. To view existing eSIMs, refer to the data reported in `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#TelephonyInfo`. Supported on Android 15 and higher. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 15. Supported only on company-owned devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported for personally-owned devices. |

## Nfc

Controls whether NFC is disabled on the device and if the user can toggle NFC. Supported on fully managed devices and work profiles on company-owned devices.

| Enums ||
|---|---|
| `NFC_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Nfc.ENUM_VALUES.NFC_USER_CHOICE`. |
| `NFC_USER_CHOICE` | The user is allowed to toggle NFC between enabled and disabled. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 15. |
| `NFC_DISABLED` | NFC is disabled on the device. The user is not allowed to toggle NFC on. This is supported on fully managed devices and work profiles on company-owned devices. For other management modes, a `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 15. |

## CredentialProviderPolicyDefault

Controls which apps are allowed to act as credential providers on Android 14 and above. These apps store credentials, see [this](https://developer.android.com/training/sign-in/passkeys) and [this](https://developer.android.com/reference/androidx/credentials/CredentialManager) for details. See also `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.credential_provider_policy`.

| Enums ||
|---|---|
| `CREDENTIAL_PROVIDER_POLICY_DEFAULT_UNSPECIFIED` | Unspecified. Defaults to CREDENTIAL_PROVIDER_DEFAULT_DISALLOWED. |
| `CREDENTIAL_PROVIDER_DEFAULT_DISALLOWED` | Apps with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.credential_provider_policy` unspecified are not allowed to act as a credential provider. |
| `CREDENTIAL_PROVIDER_DEFAULT_DISALLOWED_EXCEPT_SYSTEM` | Apps with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.credential_provider_policy` unspecified are not allowed to act as a credential provider except for the OEM default credential providers. OEM default credential providers are always allowed to act as credential providers. |
| `CREDENTIAL_PROVIDER_DEFAULT_ALLOWED` | Apps with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.credential_provider_policy` unspecified are allowed to act as a credential provider. |

## PrintingPolicy

Controls whether printing is allowed. This is supported on devices running Android 9 and above.

| Enums ||
|---|---|
| `PRINTING_POLICY_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#PrintingPolicy.ENUM_VALUES.PRINTING_ALLOWED`. |
| `PRINTING_DISALLOWED` | Printing is disallowed. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 9. |
| `PRINTING_ALLOWED` | Printing is allowed. |

## DisplaySettings

Controls for the display settings.

| JSON representation |
|---|
| ``` { "screenBrightnessSettings": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessSettings`) }, "screenTimeoutSettings": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenTimeoutSettings`) } } ``` |

| Fields ||
|---|---|
| `screenBrightnessSettings` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessSettings`)`` Optional. Controls the screen brightness settings. |
| `screenTimeoutSettings` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenTimeoutSettings`)`` Optional. Controls the screen timeout settings. |

## ScreenBrightnessSettings

Controls for the screen brightness settings.

| JSON representation |
|---|
| ``` { "screenBrightnessMode": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessMode`), "screenBrightness": integer } ``` |

| Fields ||
|---|---|
| `screenBrightnessMode` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessMode`)`` Optional. Controls the screen brightness mode. |
| `screenBrightness` | `integer` Optional. The screen brightness between 1 and 255 where 1 is the lowest and 255 is the highest brightness. A value of 0 (default) means no screen brightness set. Any other value is rejected. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessSettings.FIELDS.screen_brightness_mode` must be either `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessMode.ENUM_VALUES.BRIGHTNESS_AUTOMATIC` or `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessMode.ENUM_VALUES.BRIGHTNESS_FIXED` to set this. Supported on Android 9 and above on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above. |

## ScreenBrightnessMode

Controls the screen brightness mode.

| Enums ||
|---|---|
| `SCREEN_BRIGHTNESS_MODE_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessMode.ENUM_VALUES.BRIGHTNESS_USER_CHOICE`. |
| `BRIGHTNESS_USER_CHOICE` | The user is allowed to configure the screen brightness. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessSettings.FIELDS.screen_brightness` must not be set. |
| `BRIGHTNESS_AUTOMATIC` | The screen brightness mode is automatic in which the brightness is automatically adjusted and the user is not allowed to configure the screen brightness. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessSettings.FIELDS.screen_brightness` can still be set and it is taken into account while the brightness is automatically adjusted. Supported on Android 9 and above on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above. |
| `BRIGHTNESS_FIXED` | The screen brightness mode is fixed in which the brightness is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessSettings.FIELDS.screen_brightness` and the user is not allowed to configure the screen brightness. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenBrightnessSettings.FIELDS.screen_brightness` must be set. Supported on Android 9 and above on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above. |

## ScreenTimeoutSettings

Controls the screen timeout settings.

| JSON representation |
|---|
| ``` { "screenTimeoutMode": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenTimeoutMode`), "screenTimeout": string } ``` |

| Fields ||
|---|---|
| `screenTimeoutMode` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenTimeoutMode`)`` Optional. Controls whether the user is allowed to configure the screen timeout. |
| `screenTimeout` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Optional. Controls the screen timeout duration. The screen timeout duration must be greater than 0, otherwise it is rejected. Additionally, it should not be greater than `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.maximum_time_to_lock`, otherwise the screen timeout is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.maximum_time_to_lock` and a `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.INVALID_VALUE` reason and `` `SCREEN_TIMEOUT_GREATER_THAN_MAXIMUM_TIME_TO_LOCK` `` specific reason is reported. If the screen timeout is less than a certain lower bound, it is set to the lower bound. The lower bound may vary across devices. If this is set, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenTimeoutSettings.FIELDS.screen_timeout_mode` must be `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenTimeoutMode.ENUM_VALUES.SCREEN_TIMEOUT_ENFORCED`. Supported on Android 9 and above on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## ScreenTimeoutMode

Controls whether the user is allowed to configure the screen timeout.

| Enums ||
|---|---|
| `SCREEN_TIMEOUT_MODE_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenTimeoutMode.ENUM_VALUES.SCREEN_TIMEOUT_USER_CHOICE`. |
| `SCREEN_TIMEOUT_USER_CHOICE` | The user is allowed to configure the screen timeout. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenTimeoutSettings.FIELDS.screen_timeout` must not be set. |
| `SCREEN_TIMEOUT_ENFORCED` | The screen timeout is set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenTimeoutSettings.FIELDS.screen_timeout` and the user is not allowed to configure the timeout. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ScreenTimeoutSettings.FIELDS.screen_timeout` must be set. Supported on Android 9 and above on fully managed devices. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above. |

## AssistContentPolicy

Controls whether [AssistContent](https://developer.android.com/reference/android/app/assist/AssistContent) is allowed to be sent to a privileged app such as an assistant app. AssistContent includes screenshots and information about an app, such as package name. This is supported on Android 15 and above.

| Enums ||
|---|---|
| `ASSIST_CONTENT_POLICY_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AssistContentPolicy.ENUM_VALUES.ASSIST_CONTENT_ALLOWED`. |
| `ASSIST_CONTENT_DISALLOWED` | Assist content is blocked from being sent to a privileged app. Supported on Android 15 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 15. |
| `ASSIST_CONTENT_ALLOWED` | Assist content is allowed to be sent to a privileged app. Supported on Android 15 and above. |

## WorkAccountSetupConfig

Controls the work account setup configuration, such as details of whether a Google authenticated account is required.

| JSON representation |
|---|
| ``` { "authenticationType": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AuthenticationType`), "requiredAccountEmail": string } ``` |

| Fields ||
|---|---|
| `authenticationType` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AuthenticationType`)`` Optional. The authentication type of the user on the device. |
| `requiredAccountEmail` | `string` Optional. The specific google work account email address to be added. This field is only relevant if `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#WorkAccountSetupConfig.FIELDS.authentication_type` is `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AuthenticationType.ENUM_VALUES.GOOGLE_AUTHENTICATED`. This must be an enterprise account and not a consumer account. Once set and a Google authenticated account is added to the device, changing this field will have no effect, and thus recommended to be set only once. The email address must be all lowercase. |

## AuthenticationType

The authentication type of the user on the device.

| Enums ||
|---|---|
| `AUTHENTICATION_TYPE_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AuthenticationType.ENUM_VALUES.AUTHENTICATION_TYPE_NOT_ENFORCED`. |
| `AUTHENTICATION_TYPE_NOT_ENFORCED` | Authentication status of user on device is not enforced. |
| `GOOGLE_AUTHENTICATED` | Requires device to be managed with a Google authenticated account. |

## WipeDataFlag

Wipe flags to indicate what data is wiped when a device or profile wipe is triggered due to any reason. (For example, when the device is non-compliant). This does not apply to the `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices/delete#google.android.devicemanagement.v1.DeviceManagementService.DeleteDevice` method.

| Enums ||
|---|---|
| `WIPE_DATA_FLAG_UNSPECIFIED` | This value must not be used. |
| `WIPE_ESIMS` | For company-owned devices, setting this in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.wipe_data_flags` will remove all eSIMs on the device when wipe is triggered due to any reason. On personally-owned devices, this will remove only managed eSIMs on the device (eSIMs which are added via the `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices/issueCommand#CommandType.ENUM_VALUES.ADD_ESIM` command). This is supported on devices running Android 15 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 15. For devices running on Android 16 or higher, managed eSIMs are always wiped when work profile is removed for personally-owned devices, whether this flag is provided or not. |

## EnterpriseDisplayNameVisibility

Controls whether the `https://developers.google.com/android/management/reference/rest/v1/enterprises#Enterprise.FIELDS.enterprise_display_name` is visible on the device (e.g. lock screen message on company-owned devices).

| Enums ||
|---|---|
| `ENTERPRISE_DISPLAY_NAME_VISIBILITY_UNSPECIFIED` | Unspecified. Defaults to `ENTERPRISE_DISPLAY_NAME_VISIBLE`. |
| `ENTERPRISE_DISPLAY_NAME_VISIBLE` | The enterprise display name is visible on the device. Supported on work profiles on Android 7 and above. Supported on fully managed devices on Android 8 and above. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 7. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` is reported on fully managed devices on Android 7. |
| `ENTERPRISE_DISPLAY_NAME_HIDDEN` | The enterprise display name is hidden on the device. |

## AppFunctions

Controls whether apps on the device for fully managed devices or in the work profile for devices with work profiles are allowed to expose app functions.

| Enums ||
|---|---|
| `APP_FUNCTIONS_UNSPECIFIED` | Unspecified. Defaults to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#AppFunctions.ENUM_VALUES.APP_FUNCTIONS_ALLOWED`. |
| `APP_FUNCTIONS_DISALLOWED` | Apps on the device for fully managed devices or in the work profile for devices with work profiles are not allowed to expose app functions. If this is set, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfilePolicies.FIELDS.cross_profile_app_functions` must not be set to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#CrossProfileAppFunctions.ENUM_VALUES.CROSS_PROFILE_APP_FUNCTIONS_ALLOWED`, otherwise the policy will be rejected. |
| `APP_FUNCTIONS_ALLOWED` | Apps on the device for fully managed devices or in the work profile for devices with work profiles are allowed to expose app functions. |

## UnifiedUpdatePolicy

The Unified Update Control policy, for controlling updates of software components on the device (see `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Target`). Supported only on company-owned devices.

| JSON representation |
|---|
| ``` { "rules": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Rule`) } ] } ``` |

| Fields ||
|---|---|
| `rules[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Rule`)`` Optional. When the policy is evaluated for a given target, all rules which refer to that target are evaluated in sequence. The first rule for which the predicate evaluates to true is considered, and its `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Rule.FIELDS.outcome` is used. If no rule matches, the default update behavior applies. In other words, this behaves like a chained if-else statement. However, if an update has been available for more than a certain amount of time, any outcome of `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#OutcomeType.ENUM_VALUES.BLOCK` is automatically changed to the default update behavior. At most 100 `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UnifiedUpdatePolicy.FIELDS.rules` are allowed. |

## Rule

A rule as a part of the Unified Update Control policy. See `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UnifiedUpdatePolicy.FIELDS.rules` for how this is used.

| JSON representation |
|---|
| ``` { "id": string, "targets": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Target`) } ], "stages": [ enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Stage`) ], "predicate": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Predicate`) }, "outcome": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Outcome`) } } ``` |

| Fields ||
|---|---|
| `id` | `string` Required. An EMM-defined identifier for this rule, of length at most 64 characters. This must not be empty. Within a `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UnifiedUpdatePolicy`, different `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UnifiedUpdatePolicy.FIELDS.rules` must have different `id`s. |
| `targets[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Target`)`` Required. Targets that this rule applies to. This can have multiple targets here for convenience, and that is equivalent to having multiple rules in sequence each having one target, in the same order in which targets are listed here. This list must not be empty and must not have duplicates. |
| `stages[]` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Stage`)`` Optional. The stages at which the rule is evaluated. If this list is empty, the rule is evaluated at all stages. Specifying stages is supported only for `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.OS_UPDATE_WITHOUT_API_LEVEL_CHANGE` and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.OS_UPDATE_WITH_API_LEVEL_CHANGE`. For `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.SINGLE_APP`, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.GOOGLE_SYSTEM_SERVICES`, and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.GOOGLE_PLAY_SYSTEM_UPDATE`, this field is ignored and the rule is evaluated at all stages. |
| `predicate` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Predicate`)`` Optional. The predicate of the rule, which can evaluate to true or false. See `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#UnifiedUpdatePolicy.FIELDS.rules` for how this is used. If not set, the predicate always evaluates to true. |
| `outcome` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Outcome`)`` Optional. Determines how to proceed with the update. |

## Target

A software component that can be updated.

| JSON representation |
|---|
| ``` { "targetType": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType`), // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "singleApp": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SingleApp`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `targetType` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType`)`` Required. The type of software component that can be updated. |
| Additional details to specify a target. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `singleApp` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#SingleApp`)`` Details of an app on Google System services. |
| End of mutually exclusive fields. ||

## TargetType

The type of software component that can be updated.

| Enums ||
|---|---|
| `TARGET_TYPE_UNSPECIFIED` | This must not be used. |
| `SINGLE_APP` | An app on Google System services. `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Target.FIELDS.single_app` must be set. This can be used only to control an app which is a part of `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.GOOGLE_SYSTEM_SERVICES`. |
| `GOOGLE_SYSTEM_SERVICES` | [Google system services](https://support.google.com/product-documentation/answer/14343500) updated from Google Play, such as WebView. |
| `GOOGLE_PLAY_SYSTEM_UPDATE` | Google Play System Updates. See <https://source.android.com/docs/core/ota/modular-system> . |
| `OS_UPDATE_WITHOUT_API_LEVEL_CHANGE` | An OS update issued by the OEM which does not change the API level of the device. |
| `OS_UPDATE_WITH_API_LEVEL_CHANGE` | An OS update issued by the OEM which changes the API level of the device. |

## SingleApp

Details of an app on Google System services.

| JSON representation |
|---|
| ``` { "packageName": string } ``` |

| Fields ||
|---|---|
| `packageName` | `string` Required. The package name of the app. This can only be an app which is a part of `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.GOOGLE_SYSTEM_SERVICES`. |

## Stage

A stage for an update at which a policy may be evaluated.

| Enums ||
|---|---|
| `STAGE_UNSPECIFIED` | This must not be used. |
| `STAGE_DOWNLOAD` | The policy is evaluated for the download of the update. |
| `STAGE_APPLY` | The policy is evaluated before taking an action which causes the update to be applied. This is best-effort, and the update may be applied regardless. For example, some updates such as apps and services installed by Google Play get automatically applied immediately after download. Some updates which need a reboot to apply may get applied as a result of a user-initiated reboot, regardless of policy. If an update needs a reboot to apply, policy is evaluated before the system triggers an automatic reboot for the purpose of applying the update. |

## Predicate

A predicate is something that can be evaluated on a device at any point of time, to return true or false. This is the conjunction (logical AND) of all the individual conditions defined here. An empty `Predicate` always evaluates to true.

| JSON representation |
|---|
| ``` { "daysOfWeek": [ enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DayOfWeek`) ], "timeOfDayLowerBound": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TimeOfDay`) }, "timeOfDayUpperBound": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TimeOfDay`) }, "dateLowerBound": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Date`) }, "dateUpperBound": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Date`) }, "updateAgeLowerBound": string, "updateAgeUpperBound": string } ``` |

| Fields ||
|---|---|
| `daysOfWeek[]` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DayOfWeek`)`` Optional. Evaluates to true if this list is empty or if the current day of the week in the device's local time is in this list. |
| `timeOfDayLowerBound` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TimeOfDay`)`` Optional. A lower bound on the current time of the day, evaluated as `hh:00:00` in the device time zone. Must specify only the hour (0-23). The policy will be rejected if `minutes`, `seconds`, or `nanos` are set. If not set, always evaluates to `true`. |
| `timeOfDayUpperBound` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TimeOfDay`)`` Optional. An upper bound on the current time of the day, evaluated as `hh:00:00` in the device time zone. Must specify only the hour (0-23). The policy will be rejected if `minutes`, `seconds`, or `nanos` are set. If not set, always evaluates to `true`. The window closes at the specified hour (for example, a lower bound of `14` and an upper bound of `15` covers `14:00` to `15:00`). When both bounds are set in the same rule, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Predicate.FIELDS.time_of_day_upper_bound` must be strictly greater than `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Predicate.FIELDS.time_of_day_lower_bound` for the window to match; if `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Predicate.FIELDS.time_of_day_upper_bound` is less than or equal to `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Predicate.FIELDS.time_of_day_lower_bound`, the predicate evaluates to `false`. Setting `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Predicate.FIELDS.time_of_day_upper_bound` to `0` (`00:00`) evaluates to `false` for the entire day. To extend a window to the end of the day (`24:00`), omit `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Predicate.FIELDS.time_of_day_upper_bound`. To define an overnight window spanning midnight, use two rules: an evening rule with only `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Predicate.FIELDS.time_of_day_lower_bound` set and a morning rule with only `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Predicate.FIELDS.time_of_day_upper_bound` set (targeting the following day if `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Predicate.FIELDS.days_of_week` is set). |
| `dateLowerBound` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Date`)`` Optional. A lower bound on the current date, in the device time zone. If not set, always evaluates to true. |
| `dateUpperBound` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Date`)`` Optional. An upper bound on the current date, in the device time zone. If not set, always evaluates to true. |
| `updateAgeLowerBound` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Optional. A lower bound on the amount of time for which the update (that is, the specific build or version) has been available to the device. This must be a multiple of 24 hours. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `updateAgeUpperBound` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Optional. An upper bound on the amount of time for which the update has been available. If not set or set to zero, always evaluates to true. This must be a multiple of 24 hours. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## DayOfWeek

Represents a day of the week.

| Enums ||
|---|---|
| `DAY_OF_WEEK_UNSPECIFIED` | The day of the week is unspecified. |
| `MONDAY` | Monday |
| `TUESDAY` | Tuesday |
| `WEDNESDAY` | Wednesday |
| `THURSDAY` | Thursday |
| `FRIDAY` | Friday |
| `SATURDAY` | Saturday |
| `SUNDAY` | Sunday |

## TimeOfDay

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Date` and `google.protobuf.Timestamp`.

| JSON representation |
|---|
| ``` { "hours": integer, "minutes": integer, "seconds": integer, "nanos": integer } ``` |

| Fields ||
|---|---|
| `hours` | `integer` Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. |
| `minutes` | `integer` Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59. |
| `seconds` | `integer` Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds. |
| `nanos` | `integer` Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999. |

## Outcome

Determines how to proceed with the update.

| JSON representation |
|---|
| ``` { "outcomeType": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#OutcomeType`) } ``` |

| Fields ||
|---|---|
| `outcomeType` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#OutcomeType`)`` Optional. Determines how to proceed with the update. |

## OutcomeType

Determines how to proceed with the update.

| Enums ||
|---|---|
| `OUTCOME_TYPE_UNSPECIFIED` | Do not use this value. |
| `FORCE` | The action for which the policy is being evaluated (depending on the `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Rule.FIELDS.stages`), such as downloading the update or rebooting the device, happens immediately. Positivity requirement: Any `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Rule` which uses this can't use any of the following: \* `` `METERED_NETWORK` `` \* `` `NOT_IDLE` `` \* `` `NOT_CHARGING` `` \* `` `BATTERY_LEVEL_LOW` `` |
| `USER_PROMPT` | Action should not be taken without the user's consent, but the user has a way of proceeding with the update and is prompted to do so. Supported only for `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.OS_UPDATE_WITHOUT_API_LEVEL_CHANGE` and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.OS_UPDATE_WITH_API_LEVEL_CHANGE`. For `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.SINGLE_APP`, `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.GOOGLE_SYSTEM_SERVICES`, and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TargetType.ENUM_VALUES.GOOGLE_PLAY_SYSTEM_UPDATE`, the default update behavior applies, as if no rule matched. |
| `BLOCK` | The update is not downloaded and not installed. For updates on Google Play, this only affects automatic updates, but does not prevent the user from manually updating. For OEM system updates, this prevents both manual and automatic updates. Positivity requirement: Any `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Rule` which uses this cannot use any of the following: \* `` `UNMETERED_NETWORK` `` \* `` `IDLE` `` \* `` `CHARGING` `` \* `` `BATTERY_LEVEL_NOT_LOW` `` |

## DefaultApplicationSetting

The default application setting for a `https://developers.google.com/android/management/reference/rest/v1/DefaultApplicationType`.

| JSON representation |
|---|
| ``` { "defaultApplicationType": enum (`https://developers.google.com/android/management/reference/rest/v1/DefaultApplicationType`), "defaultApplications": [ { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DefaultApplication`) } ], "defaultApplicationScopes": [ enum (`https://developers.google.com/android/management/reference/rest/v1/DefaultApplicationScope`) ] } ``` |

| Fields ||
|---|---|
| `defaultApplicationType` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/DefaultApplicationType`)`` Required. The app type to set the default application. |
| `defaultApplications[]` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DefaultApplication`)`` Required. The list of applications that can be set as the default app for a given type. This list must not be empty or contain duplicates. The first app in the list that is installed and qualified for the `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DefaultApplicationSetting.FIELDS.default_application_type` (e.g. SMS app for `https://developers.google.com/android/management/reference/rest/v1/DefaultApplicationType#ENUM_VALUES.DEFAULT_SMS`) is set as the default app. The signing key certificate fingerprint of the app on the device must also match one of the signing key certificate fingerprints obtained from Play Store or one of the entries in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.signing_key_certs` in order to be set as the default. If the `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DefaultApplicationSetting.FIELDS.default_application_scopes` contains `https://developers.google.com/android/management/reference/rest/v1/DefaultApplicationScope#ENUM_VALUES.SCOPE_FULLY_MANAGED` or `https://developers.google.com/android/management/reference/rest/v1/DefaultApplicationScope#ENUM_VALUES.SCOPE_WORK_PROFILE`, the app must have an entry in `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.applications` with `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.install_type` set to a value other than `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#InstallType.ENUM_VALUES.BLOCKED`. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.APP_NOT_INSTALLED` reason and `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#SpecificNonComplianceReason.ENUM_VALUES.DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE` specific reason is reported if *none* of the apps in the list are installed. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.INVALID_VALUE` reason and `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#SpecificNonComplianceReason.ENUM_VALUES.DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE` specific reason is reported if at least one app is installed but the policy fails to apply due to other reasons (e.g. the app is not of the right type). When applying to `https://developers.google.com/android/management/reference/rest/v1/DefaultApplicationScope#ENUM_VALUES.SCOPE_PERSONAL_PROFILE` on a company-owned device with a work profile, only pre-installed system apps can be set as the default. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.INVALID_VALUE` reason and `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#SpecificNonComplianceReason.ENUM_VALUES.DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE` specific reason is reported if the policy fails to apply to the personal profile. |
| `defaultApplicationScopes[]` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/DefaultApplicationScope`)`` Required. The scopes to which the policy should be applied. This list must not be empty or contain duplicates. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.MANAGEMENT_MODE` reason and `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#SpecificNonComplianceReason.ENUM_VALUES.DEFAULT_APPLICATION_SETTING_UNSUPPORTED_SCOPES` specific reason is reported if *none* of the specified scopes can be applied to the management mode (e.g. a fully managed device receives a policy with only `https://developers.google.com/android/management/reference/rest/v1/DefaultApplicationScope#ENUM_VALUES.SCOPE_PERSONAL_PROFILE` in the list). |

## DefaultApplication

Information about the application to be set as the default.

| JSON representation |
|---|
| ``` { "packageName": string } ``` |

| Fields ||
|---|---|
| `packageName` | `string` Required. The package name that should be set as the default application. The policy is rejected if the package name is invalid. |

## AutofillPolicy

The policy for the autofill service.

Allows administrators to manage the system's Autofill service (introduced in Android 8), which is responsible for automatically filling forms in apps and websites that use the traditional Android Autofill Framework.

This policy complements `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.credential_provider_policy_default` and `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.credential_provider_policy` in restricting credential storage and retrieval. While `AutofillPolicy` restricts the Android system autofill service, the credential provider policies govern the Android Credential Manager (introduced in Android 14). For a comprehensive disablement of system-integrated credentials management, administrators should configure both policies.

Note: This policy does not affect applications that implement their own independent, built-in credential management systems (for example, certain browsers).

| Enums ||
|---|---|
| `AUTOFILL_POLICY_UNSPECIFIED` | Defaults to `AUTOFILL_USER_CHOICE`. |
| `AUTOFILL_USER_CHOICE` | The user can choose and use an autofill service. |
| `AUTOFILL_DISABLED` | Autofill is disabled and the user is not allowed to change this setting. This is supported only on Android 8 and above. |

## DeviceWidePolicies

Policies controlling the device on company-owned devices.

| JSON representation |
|---|
| ``` { "deviceRadioState": { object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceWideRadioState`) } } ``` |

| Fields ||
|---|---|
| `deviceRadioState` | ``object (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceWideRadioState`)`` Optional. Covers controls for radio state. |

## DeviceWideRadioState

Controls for device radio settings.

| JSON representation |
|---|
| ``` { "nfc": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Nfc`) } ``` |

| Fields ||
|---|---|
| `nfc` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#Nfc`)`` Optional. Controls whether NFC is disabled on the device and if the user can toggle NFC between enabled and disabled. This is for work profiles on company-owned devices. To control NFC on fully managed devices, use `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#DeviceRadioState.FIELDS.nfc` instead. |

## CrossDevicePolicies

Policies controlling cross-device communication.

| JSON representation |
|---|
| ``` { "nearbyNotificationStreaming": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NearbyNotificationStreaming`), "nearbyAppStreaming": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NearbyAppStreaming`), "taskContinuityHandoff": enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TaskContinuityHandoff`) } ``` |

| Fields ||
|---|---|
| `nearbyNotificationStreaming` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NearbyNotificationStreaming`)`` Optional. Manages streaming of notifications from apps on the device for fully managed devices or in the work profile for devices with work profiles to nearby devices. This is supported on Android 13 and above. |
| `nearbyAppStreaming` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#NearbyAppStreaming`)`` Optional. Manages video streaming of apps on the device for fully managed devices or in the work profile for devices with work profiles to nearby devices. This is supported on Android 13 and above. |
| `taskContinuityHandoff` | ``enum (`https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#TaskContinuityHandoff`)`` Optional. Controls the [task continuity handoff](https://developer.android.com/partners/android-17/features#handoff) feature. This policy applies to the entire device for fully managed devices, and to the work profile for devices with a work profile. Requires Android 17 QPR1 or higher. |

## NearbyNotificationStreaming

Controls the policy for notification streaming to nearby devices.

| Enums ||
|---|---|
| `NEARBY_NOTIFICATION_STREAMING_UNSPECIFIED` | Unspecified. Defaults to NEARBY_NOTIFICATION_STREAMING_USER_CHOICE_SAME_MANAGED_ACCOUNT. |
| `NEARBY_NOTIFICATION_STREAMING_USER_CHOICE` | The user is allowed to choose whether to stream notifications to nearby devices. |
| `NEARBY_NOTIFICATION_STREAMING_DISABLED` | Disables notification streaming to nearby devices. |
| `NEARBY_NOTIFICATION_STREAMING_USER_CHOICE_SAME_MANAGED_ACCOUNT` | The user is allowed to choose whether to stream notifications to other nearby devices which are signed in with the same authenticated managed account. |

## NearbyAppStreaming

Controls the policy for app streaming to nearby devices.

| Enums ||
|---|---|
| `NEARBY_APP_STREAMING_UNSPECIFIED` | Unspecified. Defaults to NEARBY_APP_STREAMING_USER_CHOICE_SAME_MANAGED_ACCOUNT. |
| `NEARBY_APP_STREAMING_USER_CHOICE` | The user is allowed to choose whether to stream apps to nearby devices. |
| `NEARBY_APP_STREAMING_DISABLED` | Disables app streaming to nearby devices. |
| `NEARBY_APP_STREAMING_USER_CHOICE_SAME_MANAGED_ACCOUNT` | The user is allowed to choose whether to stream apps to other nearby devices which are signed in with the same authenticated managed account. |

## BackupService

Controls whether the backup service is disabled.

| Enums ||
|---|---|
| `BACKUP_SERVICE_UNSPECIFIED` | Unspecified. Defaults to `BACKUP_SERVICE_DISABLED`. |
| `BACKUP_SERVICE_DISABLED` | Backup service is disabled. The user is not allowed to change this setting. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 8 on a fully managed device. |
| `BACKUP_SERVICE_USER_CHOICE` | The user can enable or disable the backup service. A `https://developers.google.com/android/management/reference/rest/v1/enterprises.devices#Device.FIELDS.non_compliance_details` with `https://developers.google.com/android/management/reference/rest/v1/NonComplianceReason#ENUM_VALUES.API_LEVEL` is reported if the Android version is less than 8 on a fully managed device. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies/delete` | Deletes a policy. |
| ### `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies/get` | Gets a policy. |
| ### `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies/list` | Lists policies for a given enterprise. |
| ### `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies/modifyPolicyApplications` | Updates or creates applications in a policy. |
| ### `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies/patch` | Updates or creates a policy. |
| ### `https://developers.google.com/android/management/reference/rest/v1/enterprises.policies/removePolicyApplications` | Removes applications in a policy. |