)]}'
{
  "commit": "5e04f4794484027103312664386a4346f0f010b7",
  "tree": "25e6138bebbae5e4f6f445176e771fc1185311a2",
  "parents": [
    "55dd32871f43ef5b5470c0c126fca66a84c87d1c"
  ],
  "author": {
    "name": "Pavel Grafov",
    "email": "pgrafov@google.com",
    "time": "Wed Apr 05 15:15:41 2023 +0000"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Thu Jun 08 20:34:07 2023 +0000"
  },
  "message": "Ensure policy has no absurdly long strings\n\nThe following APIs now enforce limits and throw IllegalArgumentException\nwhen limits are violated:\n* DPM.setTrustAgentConfiguration() limits agent packgage name,\n  component name, and strings within configuration bundle.\n* DPM.setPermittedAccessibilityServices() limits package names.\n* DPM.setPermittedInputMethods() limits package names.\n* DPM.setAccountManagementDisabled() limits account name.\n* DPM.setLockTaskPackages() limits package names.\n* DPM.setAffiliationIds() limits id.\n* DPM.transferOwnership() limits strings inside the bundle.\n\nPackage names are limited at 223, because they become directory names\nand it is a filesystem restriction, see FrameworkParsingPackageUtils.\n\nAll other strings are limited at 65535, because longer ones break binary\nXML serializer.\n\nThe following APIs silently truncate strings that are long beyond reason:\n* DPM.setShortSupportMessage() truncates message at 200.\n* DPM.setLongSupportMessage() truncates message at 20000.\n* DPM.setOrganizationName() truncates org name at 200.\n\nBug: 260729089\nTest: atest com.android.server.devicepolicy\n(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:12c201509e911f4dddabf371bd22c93e097e5d99)\nMerged-In: Idcf54e408722f164d16bf2f24a00cd1f5b626d23\nChange-Id: Idcf54e408722f164d16bf2f24a00cd1f5b626d23\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d000ff742359f6e4da44e4d56a880a952694d8fe",
      "old_mode": 33188,
      "old_path": "core/java/android/app/admin/DevicePolicyManager.java",
      "new_id": "ead976e0aa008797d1e89e0bc3ba5d00e7643903",
      "new_mode": 33188,
      "new_path": "core/java/android/app/admin/DevicePolicyManager.java"
    },
    {
      "type": "modify",
      "old_id": "ddaf1a2c0e7dfebd47d91134e74a51526e7d0343",
      "old_mode": 33188,
      "old_path": "services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java",
      "new_id": "726f2c72bdd2863b3ada8c9e8a55789d238b0791",
      "new_mode": 33188,
      "new_path": "services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java"
    }
  ]
}
