)]}'
{
  "commit": "8d5d974288954bcd9824aba1afc84c1b3ca22489",
  "tree": "cdb1862f71df3347c48b6b09376131b3e0f245e4",
  "parents": [
    "6b22d1c0c351f1775d287b9e270d9b040b8db93b"
  ],
  "author": {
    "name": "Matías Hernández",
    "email": "matiashe@google.com",
    "time": "Tue Dec 17 19:44:58 2024 +0100"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Thu Dec 19 00:46:09 2024 -0800"
  },
  "message": "Fix getPackagesBypassingDnd() for multiple profiles\n\nDespite what its name indicates, PackagePreferences.userId is almost always empty (0). This meant that getPackagesBypassingDnd() would treat all packages as belonging to USER_SYSTEM when looking app which apps have priority channels! In the Settings UI, this manifested as the personal-profile entry of the app appearing when the work-profile entry is the one that has priority channels (and the app not appearing at all if it\u0027s not installed in the personal profile).\n\nFixed the check and renamed the field, since this is a gigantic footgun.\n\nFixes: 384714165\nTest: atest PreferencesHelperTest + manual\nFlag: android.app.modes_ui\n(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ac0267dba7591b5b1ef8519a2f04126cb7e5b013)\nMerged-In: I01c0b4efd435a1fada1bd9845044600c01c0baf6\nChange-Id: I01c0b4efd435a1fada1bd9845044600c01c0baf6\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "749952e3336f0e68e4e84360b943e5b948951318",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/notification/PreferencesHelper.java",
      "new_id": "15377d6b269a4cc7aa22a86a77b8e8a2f3a84afe",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/notification/PreferencesHelper.java"
    },
    {
      "type": "modify",
      "old_id": "80e86a15156aabfffa18fc1ead9d93b9f6ec74a4",
      "old_mode": 33188,
      "old_path": "services/tests/uiservicestests/src/com/android/server/notification/PreferencesHelperTest.java",
      "new_id": "b015c8cf82255b00ebc5d58481aa57eb0e0cc987",
      "new_mode": 33188,
      "new_path": "services/tests/uiservicestests/src/com/android/server/notification/PreferencesHelperTest.java"
    }
  ]
}
