)]}'
{
  "commit": "b2fa796bcfe4a57b97aa25d9c9233bca431c642e",
  "tree": "64ab8ef691b93b4f5a61d170724f09d7c224c871",
  "parents": [
    "f8621c6f6201f8b0bdb2828c166988d8ff1e0d97"
  ],
  "author": {
    "name": "Evan Severson",
    "email": "evanseverson@google.com",
    "time": "Tue Apr 12 17:36:41 2022 -0700"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Thu May 18 17:55:05 2023 +0000"
  },
  "message": "Watch uid proc state instead of importance for 1-time permissions\n\nThe system process may bind to an app with the flag\nBIND_FOREGROUND_SERVICE, this will put the client in the foreground\nservice importance level without the normal requirement that foreground\nservices must show a notification. Looking at proc states instead allows\nus to differentiate between these two levels of foreground service and\nrevoke the client when not in use.\n\nThis change makes the parameters `importanceToResetTimer` and\n`importanceToKeepSessionAlive` in PermissionManager#startOneTimePermissionSession\nobsolete.\n\nTest: atest CtsPermissionTestCases + manual testing with mic/cam/loc\nBug: 217981062\n(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:0be78fbbf7d92bf29858aa0c48b171045ab5057f)\nMerged-In: I7a725647c001062d1a76a82b680a02e3e2edcb03\nChange-Id: I7a725647c001062d1a76a82b680a02e3e2edcb03\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6a93b354f4dab2b1cbc9289e4baa7e3ff0cc5688",
      "old_mode": 33188,
      "old_path": "core/java/android/permission/IPermissionManager.aidl",
      "new_id": "45dad9861406a07559930d654cadd9409ae179b1",
      "new_mode": 33188,
      "new_path": "core/java/android/permission/IPermissionManager.aidl"
    },
    {
      "type": "modify",
      "old_id": "6b540d72bba00fd083c5fbb5ac5b5d5e05e2c8a8",
      "old_mode": 33188,
      "old_path": "core/java/android/permission/PermissionManager.java",
      "new_id": "67699543131aef3d37d95aac8f67ae1c1b1460af",
      "new_mode": 33188,
      "new_path": "core/java/android/permission/PermissionManager.java"
    },
    {
      "type": "modify",
      "old_id": "881f8707fdd86761fbff29c23283971e2ccdf252",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/pm/permission/OneTimePermissionUserManager.java",
      "new_id": "a1c98109052e22aa66876a0ee41d102e90bfbd76",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/pm/permission/OneTimePermissionUserManager.java"
    },
    {
      "type": "modify",
      "old_id": "d648d6fc663d4642571d2a8ddc4ef207f048b16f",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/pm/permission/PermissionManagerService.java",
      "new_id": "fd48cdaeebf2d4a26fafa5dfd5806e68d8c11d25",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/pm/permission/PermissionManagerService.java"
    }
  ]
}
