-
Notifications
You must be signed in to change notification settings - Fork 0
Policy Options
The integration’s Options flow provides a menu-driven UI to configure General and Enterprise settings, plus kiosk and device policies, and push policy changes to your enterprise. It fetches the live policy and enterprise when you open it, so the form reflects what’s currently set.
- Go to Settings → Devices & Services → Integrations.
- Find Android Management API and click Configure on its card.
You’ll see a menu with several categories. Configure General (scan interval, default policy for QR code, Clear app data packages) and Enterprise (identity, notifications, terms, sign-in) as needed, then use the policy categories and Apply Policy to send policy settings to the enterprise.
Note: Enterprise contact info cannot be updated via the Android Management API (Google returns 400). Manage contact details in the Google Admin console.
| Category | What you can configure |
|---|---|
| General | Scan interval (seconds) for API polling, default policy ID for the enrollment QR code, and optional package names for the Clear app data button (one per line or comma-separated). |
| Enterprise | Identity (display name, primary color, logo URL + SHA-256 hash), Notifications (Pub/Sub topic, enabled types), Terms & Conditions, Sign-in (URL, token tag, allow personal usage). Apply saves enterprise settings to the API. |
| Kiosk App | Primary app package, install type (including CUSTOM), auto-update mode, lock task, default permission policy, application roles, signing key cert SHA-256 (base64; required for CUSTOM / non–Play Store role apps), and additional force-installed apps (one per line). |
| Kiosk UI | Power button behavior, system navigation, device settings access, status bar, and system error warnings. |
| Display | Screen brightness mode and level (0–255), screen timeout mode and duration. |
| Security & Privacy | Developer settings, keyguard, camera, screen capture, location mode, untrusted apps, Google Play Protect, app verification, autofill policy, enterprise display name visibility, app functions, private space policy, and wipe data flags. |
| Network & Connectivity | Wi-Fi, Bluetooth, VPN, tethering, roaming, mobile networks, cell broadcasts, network reset; private DNS (mode + host), Bluetooth sharing, user-initiated eSIM add; optional JSON for APN policy, preferential network settings, Wi-Fi roaming policy, and default application settings. |
| Device Restrictions | Factory reset, install/uninstall apps, physical media, USB file transfer, volume, microphone, outgoing calls, SMS, add user, modify accounts, user icon, wallpaper, share location, credentials config. |
| System | App auto-update policy, system update type, Play Store mode, status bar, auto time, skip first-use hints, max time to lock, stay on while plugged (AC/USB/Wireless), long/short support messages. |
| Device Reporting |
statusReportingSettings: software info, network info, memory info, display info, application reports, and default application info reporting. Enabling these populates sensors that may show "Unknown" when disabled. |
| Apply Policy | Enter the policy ID (e.g. policy1) and push all configured settings to the enterprise in one step. Invalid advanced JSON fields fail with a clear error. |
Optional roles on the primary app (replacing deprecated extensionConfig):
COMPANION_APPKIOSKMOBILE_THREAT_DEFENSE_ENDPOINT_DETECTION_RESPONSESYSTEM_HEALTH_MONITORING
Leave empty to omit. Paste valid JSON matching the Android Management API schema:
| Option | Policy path |
|---|---|
| APN policy | deviceConnectivityManagement.apnPolicy |
| Preferential network settings | deviceConnectivityManagement.preferentialNetworkServiceSettings |
| Wi-Fi roaming policy | deviceConnectivityManagement.wifiRoamingPolicy |
| Default application settings | defaultApplicationSettings |
For full Policy documents beyond the Options UI, use android_management_api.set_policy with a raw JSON body.
- The policy ID is the name of the policy in your enterprise (e.g.
policy1,kiosk-policy). - You can create a new policy by entering an ID that doesn’t exist yet; the API will create it. To change an existing policy, use its current ID.
- The Options flow does not create the enterprise; it only creates or updates a policy under the enterprise you configured in the integration.
- After applying a policy, assign it to devices (or enrollment tokens) via the Android Management console or the API.
- The integration’s Enrollment QR Code and
create_enrollment_tokenservice can bind a policy to new enrollment tokens so newly provisioned devices get that policy.
- Options flow – Best for interactive, form-based editing; General, Enterprise, and all policy categories are available and the UI is pre-filled from the live policy and enterprise.
-
Services – Use from automations, scripts, or Developer Tools:
-
android_management_api.set_policy– Raw JSON policy body. -
android_management_api.set_kiosk_policy– Structured kiosk fields (including optionalapplication_rolesandsigning_key_cert_sha256). -
android_management_api.modify_policy_applications– Create/update a subset of applications without replacing the full list. -
android_management_api.remove_policy_applications– Remove applications by package name. - Device-level:
clear_app_data,start_lost_mode,stop_lost_mode,patch_device,wipe,add_esim,remove_esim,request_device_info,issue_command,reset_password. - Enterprise/API:
list_policies,list_enrollment_tokens,delete_enrollment_token,get_operation,get_enterprise,patch_enterprise,create_web_token,refresh.
-
See the README – Services for the full list of service parameters.