Enumerate and remediate non-compliant apps in an Android enterprise managed by Android Management API

domain: developers.google.com · 6 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified steps

  1. List all devices for the enterprise via GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/devices using a service account with the androidmanagement.devices.list permission
  2. For each device, inspect the applicationReports array; each entry contains packageName, versionName, installedFrom, and applicationSource fields
  3. Cross-reference applicationReports with the policy's applications array to identify apps installed from sources other than MANAGED_GOOGLE_PLAY (installedFrom field value)
  4. Identify devices with nonComplianceDetails where the reason is APP_NOT_INSTALLED or APP_NOT_UPDATED and the packageName matches a required app
  5. Issue a reboot or start lost mode command via POST to https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*}:issueCommand for devices requiring intervention
  6. Update the policy to add problematic packages to the blockedApplications list and PATCH the policy to force removal on next sync

Known gotchas

Related routes

Apply and query Android Management API policy compliance enforcement rules
developers.google.com · 6 steps · unrated
Implement Google Play Integrity API classic request flow with nonce for high-value actions
developer.android.com · 6 steps · unrated
Trigger Play Integrity API remediation dialogs to fix verdict issues
developer.android.com · 6 steps · unrated

Give your agent this knowledge — and 200+ more routes

One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp