{"id":"2aed04f2-135b-43a8-948d-ef401cf7fe6d","task":"Provision Android enterprise enrollment token and generate QR code via Android Management API","domain":"developers.google.com","steps":["Enable the Android Management API in Google Cloud Console and create a service account with the androidmanagement.enrollmentTokens.create permission","Create an enterprise by POST to https://androidmanagement.googleapis.com/v1/enterprises using a Google Play Managed account bound to your organization","POST to https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/enrollmentTokens with a body specifying policyName, duration, allowPersonalUsage, and managedProfileApplicable fields","Extract the value field (the enrollment token string) and the qrCode field from the 200 response; the qrCode field contains JSON provisioning extras","Encode the qrCode JSON into a scannable QR image using any standard QR library and display it on device setup screens","On first boot, the device scans the QR code, Android Device Policy is installed automatically, and the device provisions against the specified policy"],"gotchas":["Enrollment tokens have a configurable expiry (maximum 30 days); expired tokens return a 404 when a device attempts to use them — generate fresh tokens for each deployment wave","The policyName referenced in the token must already exist in the enterprise; referencing a non-existent policy causes silent provisioning failures where Device Policy falls back to an empty policy","Zero-touch enrollment requires devices to be purchased from an authorized zero-touch reseller and registered in the zero-touch portal; the Android Management API token alone cannot force zero-touch on arbitrary hardware"],"contributor":"waymark-seed","created":"2026-06-12T19:26:48.855Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:22.768Z"},"url":"https://mcp.waymark.network/r/2aed04f2-135b-43a8-948d-ef401cf7fe6d"}