Android Policies

The password dictionary can contain the following keys:

Argument Type Description Default value
passcode_requirement String Optional.Possible values can be simple, numbers, alphanumeric, alphabet, complexvalue simple
min_length Integer Optional. Possible values are from 4 to 16. Ignored if passcode_requirement is set to simple or numbers
max_pinage_in_days Integer Optional. Specifies the number of days for which the passcode can remain unchanged. Minimum value is 1 and maximum value is 730
max_inactivity Integer Optional. Possible values are 1, 2, 3, 4, 5, 10 and 15
pin_history Integer Optional. Possible values are from 1 to 50
max_failed_attempts Integer Optional. Possible values are from 4 to 10

If passcode_requirement is set to complexvalue, the following fields may be required:

Argument Type Description
min_uppercase_letters Integer Optional. Possible values are from 1 to 5
min_lowercase_letters Integer Optional. Possible values are from 1 to 5
min_non_alphapets Integer Optional. Possible values are from 1 to 5
min_num_letters Integer Optional. Possible values are from 1 to 5
min_symbols Integer Optional. Possible values are from 1 to 5

The restrictions dictionary can contain following keys:

Argument Type Description Default value
allow_camera Boolean Optional true
allow_usb_mass_storage Boolean Optional true
allow_network_time Boolean Optional true
allow_wifi Boolean Optional true
enforce_wifi Boolean Optional true
allow_bluetooth Boolean Optional true
allow_data_network Boolean Optional true
allow_bgdata_sync Boolean Optional true
allow_auto_background_sync Boolean Optional true
allow_mobile_app Boolean Optional true
allow_usb_tethering Boolean Optional true
allow_mock_locations Boolean Optional true
allow_wireless_location Boolean Optional true
allow_gps_location Boolean Optional true
allow_non_google_app Boolean Optional true
enforce_app_verification Boolean Optional true
allow_backup_google Boolean Optional true
allow_auto_restore Boolean Optional true
allow_roaming Boolean Optional true
enforce_device_encrypt Boolean Optional true
disable_keyguard Boolean Optional true
allow_password_visible Boolean Optional true
enforce_gps_location Boolean Optional true
allow_mdm_removal Boolean Optional true

The wifi dictionary contains the following keys:

Argument Type Description Default value
service_set_identifier String Required
autojoin Boolean true
hidden_network Boolean false
security_type String Required. Possible values are none, wep, wpa, eap
password String Required if security_type is set to wep or wpa
eap_type String Required if security_type is set to eap. Possible values are peap, ttls, pwd
user_name String Required if security_type is set to eap
enterprise_password String Optional. Value can be set to null
phase2_authentication String Required if eap_type is set to peap. Possible values are None, PAP, MSCHAP, MSCHAPv2, GTC
outer_identity String Required if eap_type is set to peap.

The email dictionary contains the following keys:

Argument Type Description Default value
account_name String Value can be null
account_description String Required. Account description
incoming_account_type String Optional. Possible values are pop3 and imap pop3
email_address String Optional. Email address for the account. Value can be set to null
incoming_server_host_name String Required
incoming_server_port Integer Optional 143
incoming_server_username Integer Optional. Value can be null
incoming_password String Optional. Value can be null
incoming_server_use_ssl Boolean Optional true
incoming_server_use_tls Boolean Optional false
incoming_server_use_certificate Boolean Optional false
out_account_type Boolean Required. Possible values are pop3 and smtp
out_server_host_name String Required
out_server_port Integer Optional 587
out_server_username String Optional. Outgoing username for the email. Value can be null
out_password String Optional. Password for account authentication. Value can be null
out_server_use_ssl Boolean Optional true
out_server_use_tls Boolean Optional false
out_server_use_certificate Boolean Optional false

The activesync dictionary contains the following keys:

Argument Type Description Default value
account_name String Optional. Visible account description
host String Required. Exchange ActiveSync Host
domain String Optional. Use %domain% as user’s domain. Value can be null
email_address String Required. Email address for the account. Use %email% for users’ email address.
username String Required. Use %username% for the username
password String Optional. Value can be null
no_past_days_to_sync String Optional. Possible values are auto, manual, 15, 30, 60, 120, 240 auto
use_ssl Boolean Optional true

The applock dictionary contains the following keys:

Argument Type Description Default value
apps Array Optional. Apps array have dictionaries which contain keys id whose value is the app ID and hide whose value is boolean
toggle_wifi Boolean Optional true
allow_wifi Boolean Optional true
enable_hexnode_browser Boolean Optional false
auto_launch_app Integer Optional. ID of app added in apps. Ignored if apps key is missing
auto_launch_delay Integer Optional. Delay in seconds. Ignored if apps key is missing
allow_change_brightness Boolean Optional true
brightness_level Integer Required if allow_change_brightness is set to false 0
keep_screen_on Boolean Optional false
allow_bluetooth Boolean Optional true
allow_user_location_checkin Boolean Optional true
kiosk_password String Optional. Password to exit kiosk

The wallpaper dictionary may contain the following keys:

Argument Type Description Default value
mobile_wallpaper String Required. Base64 image
tablet_wallpaper String Required. Base64 image
Bitnami