)]}'
{
  "commit": "71bdf162ba20528f7e74123ce826903550a35938",
  "tree": "4cd7019d058167bc6cf8405188cf840853bbd1c7",
  "parents": [
    "7ae3d28551aea0937e1ce6ad701edef2c9f04bcb"
  ],
  "author": {
    "name": "Gaetano Alboreto",
    "email": "galboreto@google.com",
    "time": "Fri Aug 07 10:03:10 2026 +0000"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Thu Sep 03 00:27:47 2026 -0700"
  },
  "message": "Limit DPC app restrictions to a global maximum of 1000 packages\n\nAdds validation in DevicePolicyManagerService to ensure that the total\nnumber of application restrictions set on a device cannot exceed 1000\npackages.\nThis limit is enforced globally across all admins combined by using\n`getLocalPolicyKeysSetByAllAdmins`, ensuring that multiple Profile Owners\nor Delegated Apps cannot bypass the cap.\nAlso includes comprehensive unit test coverage to validate the\nenforcement for both single-admin and multi-admin configurations.\n\nNO_JAVA_FORMAT\u003dNot relevant to this change, existing and untouched lines.\n\nBug: b/281543351\nTest: atest com.android.server.devicepolicy.DevicePolicyManagerTest\nTested: ab/I43100010583082947\nFlag: EXEMPT BUGFIX\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:c9c04f595d904aff21ebdd67986b5a9250d6406a\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:598eddaabe731afbfb3c9265d36b637a346e5604\nMerged-In: I8e13de9db9ef85f930958a88bb237648b36767c2\nChange-Id: I8e13de9db9ef85f930958a88bb237648b36767c2\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a61f516bae47f324d7eaae63382370678d3c5678",
      "old_mode": 33188,
      "old_path": "core/java/android/app/admin/DevicePolicyManager.java",
      "new_id": "d80b994655036c3b6579cdafa1e81dcc97d9b3e4",
      "new_mode": 33188,
      "new_path": "core/java/android/app/admin/DevicePolicyManager.java"
    },
    {
      "type": "modify",
      "old_id": "a959a5f0cd4b89f676438943c8dc889f804cb0a5",
      "old_mode": 33188,
      "old_path": "services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java",
      "new_id": "879948ddaa73e68efafa82a549a63d89a4269722",
      "new_mode": 33188,
      "new_path": "services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java"
    },
    {
      "type": "modify",
      "old_id": "5adb5aad5912792ed24d130ba84f1659ecabbd4e",
      "old_mode": 33188,
      "old_path": "services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java",
      "new_id": "33d33c5c0e1b961ae3d63778db29be83cbaa25be",
      "new_mode": 33188,
      "new_path": "services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java"
    }
  ]
}
