Android Management API features: Set up policy compliance rules

Viewed 35

I've been following the Android Management API guide quickstart: https://developers.google.com/android/management/compliance

Then, I've been testing on my device (in this case, my device fails to comply with any of the passwordPolicies), and it worked.

My setup:

{
  "policyEnforcementRules": [
    {
      "settingName": "passwordPolicies",
      "blockAction": {
        "blockAfterDays": 0,
        "blockScope": "BLOCK_SCOPE_DEVICE"
      },
      "wipeAction": {
        "wipeAfterDays": 1,
        "preserveFrp": false
      }
    }
  ]
}

The device I am testing this on is Pixel 5 running Android 12.

When my device fails with passwordPolicies, many apps on this device have been blocked.

I don't know the list of apps to block. How to set up a list of apps to block when failing policy compliance rules?

Please help me, Thanks!

0 Answers
Related