)]}'
{
  "commit": "ed7053111ca5140539af6617ff86641fea267965",
  "tree": "984c5b36b18f814d1a1072fdba9034224a283c4a",
  "parents": [
    "c159476c145cbd03ecf14615052c696a4b01661f"
  ],
  "author": {
    "name": "Haofan Wang",
    "email": "haofanw@google.com",
    "time": "Tue Jul 21 17:27:28 2026 -0700"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Wed Aug 19 23:21:33 2026 -0700"
  },
  "message": "Enforce permission in notifyPictureProfileHandleSelection\n\nThe `IMediaQualityManager.notifyPictureProfileHandleSelection` method lacked an authorization check against the global picture quality service permission. This vulnerability allowed any unprivileged app to bypass permission checks, send arbitrary picture profile parameters to the vendor display HAL, and alter the device-global picture pipeline state.\n\nThis commit fixes the issue by validating the caller\u0027s UID and PID via `hasGlobalPictureQualityServicePermission()`. If validation fails, an error is reported and the method terminates. Additionally, the database query, HAL tracking modification, and IPC notification are now wrapped in a `synchronized (mPictureProfileLock)` block to ensure thread safety and maintain state consistency in `MediaQualityService`.\n\nBug: 514738229\nFlag: EXEMPT BUGFIX\nTest: atest\n\nThis was autogenerated by MendIt (go/androidmendit)\n\n(cherry picked from commit f4f0ab21d45103fc84af4486238418fb95be0544)\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:94775038e3b1d235b65a7c00bb72d94fc20daa64\nMerged-In: Idf6389f4725027dfe8583abcca5b5338a92fd77e\nChange-Id: Idf6389f4725027dfe8583abcca5b5338a92fd77e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "efc6bd804bb19eb0835322442fc0d0b48ecbbc6d",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/media/quality/MediaQualityService.java",
      "new_id": "2ab065a272501cb6bc7f8ad87f48386427e9ed03",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/media/quality/MediaQualityService.java"
    }
  ]
}
