)]}'
{
  "commit": "ca5297bdc95722cd294a1b0fc656dc5475fdf388",
  "tree": "876e91e28d489248f9a2e3d7823068fa553e47df",
  "parents": [
    "365f2a1086deda76435eb8b82baee6eb1baab693"
  ],
  "author": {
    "name": "Garfield Tan",
    "email": "xutan@google.com",
    "time": "Tue Jul 21 11:13:18 2026 -0700"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Wed Aug 19 23:19:20 2026 -0700"
  },
  "message": "Limit presentations on task-hosting displays to focused tasks\n\nTask hosting displays present similar capabilities as the internal\ndisplay where users can launch and interact with apps. Allowing\narbitrary untrusted apps to add presentation exposes a security risk\nthat external displays can be hijacked without any warnings.\n\nThe most graceful approach would be to introduce a dialog for the user\nto decide if they\u0027d like to allow presentations each time, but for the\ntime being we apply the same requirement to all task-hosting displays\nthat only the globally focused task is allowed to add presentations on\nthem.\n\nThis change may have app compatibility consequences in the sense that\napplications may assume they can launch presentations at anytime on\nexternal displays, but the default behavior of external displays is to\nhost tasks so their requests can be rejected by default.\n\nAlso, this CL doesn\u0027t remove the existing presentation from an external\ndisplay that is changing to host tasks. It is less concerning from the\nsecurity point of view, but can still be a frustrating UX because the\npresentation occludes the activities.\n\nBug: 527038421\nBug: 484320792\nTest: atest PresentationControllerTests\nTest: Background activities can\u0027t add presentation to external displays\n      that host tasks.\nFlag: EXEMPT CVE_FIX\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:3b4aad43843d0b10d4cdedcd6905b4b8b5ea0607\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:e3f24f4ee91d2e9d15f8093ae9ee29e7527bafda\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:ec88ac8e2fc5a67d745907f0bb8d27cc5ceac6b7\nMerged-In: I180cf2cc28f8f2e0b39e62fc6d02ebaadd042f89\nChange-Id: I180cf2cc28f8f2e0b39e62fc6d02ebaadd042f89\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6b26481e5634131756b50364b8b1a205ab71e7a7",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/wm/PresentationController.java",
      "new_id": "3f594a0f18486552f1de9be61782adf29a7bf957",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/wm/PresentationController.java"
    },
    {
      "type": "modify",
      "old_id": "0287fb4c4802d5e31145c75520c5b85a89e0ece0",
      "old_mode": 33188,
      "old_path": "services/tests/wmtests/src/com/android/server/wm/PresentationControllerTests.java",
      "new_id": "30327bd323cfee7ccafd1b20f400f6be7db9fb03",
      "new_mode": 33188,
      "new_path": "services/tests/wmtests/src/com/android/server/wm/PresentationControllerTests.java"
    }
  ]
}
