)]}'
{
  "commit": "1abda71b5d048d8dc00db92cd5df709f9c2d55da",
  "tree": "ffcf25c4451dc33ba555c3b938d8ea69f082327c",
  "parents": [
    "708ab226ee667ac7749fe6c771857f473124caa8"
  ],
  "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 13:19:14 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:016293ca006d58c3c3c73c2dcf1c80343b1049cc\nMerged-In: I7853a16d44f06c7b4dc5d8e85b5839b3779fcdd2\nChange-Id: I7853a16d44f06c7b4dc5d8e85b5839b3779fcdd2\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "390eabeb166908d81d9620be2717280bfe6349f0",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/wm/WindowState.java",
      "new_id": "ac2121b855456deaefb06f6ed264f4a249d0cdee",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/wm/WindowState.java"
    }
  ]
}
