)]}'
{
  "commit": "301fa640ebd7705308c24048d38d6b210a35b3ef",
  "tree": "b20ab5e6b8f9d5b315781294dd2283445549c471",
  "parents": [
    "8846cbbf3731496e28f9a8c2ebaf42bf3f891ec1"
  ],
  "author": {
    "name": "Duy Truong",
    "email": "duytruong@google.com",
    "time": "Thu Jul 09 00:07:54 2026 +0000"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Thu Aug 20 12:17:22 2026 -0700"
  },
  "message": "Restrict FLAG_TURN_SCREEN_ON for untrusted virtual displays\n\nA vulnerability exists where a zero-permission background app can\nbypass the TURN_SCREEN_ON permission to repeatedly wake the\nphysical screen. This is achieved by creating a\nTYPE_PRIVATE_PRESENTATION window with FLAG_TURN_SCREEN_ON on a\nprivate virtual display.\n\nPreviously, in WindowState.prepareWindowToDisplayDuringRelayout(),\nthe check for whether a window could turn the screen on would\nshort-circuit to true if `mActivityRecord` was null. This allowed\nnon-activity windows on zero-permission virtual displays to bypass\nthe one-shot restriction (`currentLaunchCanTurnScreenOn`). Because\nzero-permission virtual displays fall back to the DEFAULT_DISPLAY_GROUP,\nthis resulted in waking the physical device screen.\n\nThis commit resolves the issue by updating the logic so that the\nscreen can only be turned on trusted displays.\n\nBug: 527038637\nTest: WindowStateTests\nFlag: EXEMPT CVE_FIX\nThis was autogenerated by MendIt (go/androidmendit)\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:adc9ad6a28520b2e48d9bb8f886cc7eb602485ec\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:0d805b6d75ae461f14fb2c2fdf2a2f226b3749f8\nMerged-In: I7853a16d44f06c7b4dc5d8e85b5839b3779fcdd2\nChange-Id: I7853a16d44f06c7b4dc5d8e85b5839b3779fcdd2\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4f938d62fe3106a100b019f7f4c5bfed40104617",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/wm/WindowState.java",
      "new_id": "c2723d3732280ca0879d3449a298e1578d801067",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/wm/WindowState.java"
    }
  ]
}
