)]}'
{
  "commit": "b50cdde5f009ca1e8a548605c8b364d860110b67",
  "tree": "a785d970a2e6818cb52a5ee0ca1957f071d7a209",
  "parents": [
    "4ab5af1eb569a46f2117377382aac7dc6535cfc5"
  ],
  "author": {
    "name": "Tobias Thierer",
    "email": "tobiast@google.com",
    "time": "Mon Oct 19 19:37:30 2020 +0100"
  },
  "committer": {
    "name": "Tobias Thierer",
    "email": "tobiast@google.com",
    "time": "Thu Dec 10 17:11:42 2020 +0000"
  },
  "message": "BackupManagerService: Make new behavior conditional on ChangeId.\n\nBase CL ag/12885739 introduced unconditional enforcement of the BACKUP\npermission for callers of BackupManagerService.isBackupServiceActive()\nin the service, but dropped the enforcement on the app process side\n(BackupManager).\n\nThis CL makes the behavior change conditional on a compat ChangeId.\n\nBug: 158482162\nTest: Manually checked that an app similar to the code sample from\n      http://b/158482162#comment1 can reproduce the behavior.\n      This is true both before the base CL and after this CL, when\n      the app targets an old SDK version (26).\nTest: Checked that both (a) before this CL, (b) after this CL where\n      the change is manually enabled for the app via the below commands,\n      the app runs into a SecurityException instead:\n$ adb shell am compat enable 158482162 com.example.tester\n$ adb shell dumpsys platform_compat | grep 158482162\nChangeId(158482162; name\u003dIS_BACKUP_SERVICE_ACTIVE_ENFORCE_PERMISSION_IN_SERVICE; enableSinceTargetSdk\u003d31; packageOverrides\u003d{com.example.tester\u003dtrue})\n\nChange-Id: I58e5d2a0b438296137fd76720636c8fdce740ded\nMerged-In: I58e5d2a0b438296137fd76720636c8fdce740ded\n(cherry picked from commit 7671f0d95c7e92a2342ed05a053a38d8aa16a17f)\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "56e9c36fe4b4cde918c2ec18a3aef76c4bf922e0",
      "old_mode": 33188,
      "old_path": "core/java/android/app/backup/BackupManager.java",
      "new_id": "acaea5fdd60989e71ed9541ae55b4ec10298429d",
      "new_mode": 33188,
      "new_path": "core/java/android/app/backup/BackupManager.java"
    },
    {
      "type": "modify",
      "old_id": "19ada753f33d7c388fd82c89740363a99e88dac7",
      "old_mode": 33188,
      "old_path": "services/backup/java/com/android/server/backup/BackupManagerService.java",
      "new_id": "445297a839ba6a0fe1e30ddedbc2814415e1b3be",
      "new_mode": 33188,
      "new_path": "services/backup/java/com/android/server/backup/BackupManagerService.java"
    }
  ]
}
