)]}'
{
  "commit": "bdb8848abe9999fbd302d71f2c0ce62b9a09fd8a",
  "tree": "b2c8d96aeb9ee6e07dc9434cabe619c8857b50da",
  "parents": [
    "25b54058c0e3bb7e0630650f750092f7ccd2289f"
  ],
  "author": {
    "name": "Annie Meng",
    "email": "anniemeng@google.com",
    "time": "Tue Jan 22 15:32:25 2019 +0000"
  },
  "committer": {
    "name": "Annie Meng",
    "email": "anniemeng@google.com",
    "time": "Thu Jan 24 15:14:09 2019 +0000"
  },
  "message": "[Multi-user] Disable backup by default in non-system users\n\nKey changes in this CL:\n- Backup is now disabled by default in non-system users unless DPM\nactivates backup for this user AND the system user is activated. This\nprovides gating for the multi-user B\u0026R feature.\n- Activation is done via an \u0027activate\u0027 file that is per-user (but lives\nin the system user directory to account for locked users).\n- isBackupServiceActive() handles both locked and unlocked users.\n- Added a bmgr command to expose isBackupServiceActive() for testing\npurposes and enforce appropriate permissions.\n\nFuture CLs:\n- Handle future migration to backup on by default for non-system users\n- Change CTS tests to use the new bmgr command\n\nBug: 121306407\nTest: 1) atest TrampolineTest\n2) Start system user -\u003e service started; run backup and restore\nsuccessfully\n3) Start non-system user -\u003e ignored;\n4) adb shell bmgr --user 0 activate true -\u003e security exception;\nadb shell bmgr --user 10 activate true -\u003e security exception (work\nprofile);\nadb shell bmgr --user 11 activate true/false -\u003e creates/deletes activate\nfile and starts/stops the service\nChange-Id: Ic77db9b8b2e5170dcf89bef863dac4713730797a\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3defdc5467c8ff0e0e73c7471c1b776ec2f689aa",
      "old_mode": 33188,
      "old_path": "cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java",
      "new_id": "062ba655640ee19c8cc784114f73bae1126231cd",
      "new_mode": 33188,
      "new_path": "cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java"
    },
    {
      "type": "modify",
      "old_id": "b9a6f3c08cc4935d407c59de10bb7a9439853abb",
      "old_mode": 33188,
      "old_path": "services/backup/java/com/android/server/backup/Trampoline.java",
      "new_id": "603c589cd5f64adabe6c0bb51dcbd96efb014f7f",
      "new_mode": 33188,
      "new_path": "services/backup/java/com/android/server/backup/Trampoline.java"
    },
    {
      "type": "modify",
      "old_id": "ac4a5fe90c062ac6862548f697666b41e7359b35",
      "old_mode": 33188,
      "old_path": "services/tests/servicestests/src/com/android/server/backup/TrampolineTest.java",
      "new_id": "a3f36b720398b34faafa1d21467cc40ffce96c9f",
      "new_mode": 33188,
      "new_path": "services/tests/servicestests/src/com/android/server/backup/TrampolineTest.java"
    }
  ]
}
