)]}'
{
  "commit": "dfc1b5219ffbc682c0d328b27e026c549770c208",
  "tree": "d4b240ae8aac7facae555f897029868b3b71d830",
  "parents": [
    "7c82586f6c9205b14a76baa32f7b2a4beb488023"
  ],
  "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": "Wed Aug 19 23:18:01 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:cbe4bd259f21360d97331846e00ef2b9d3049953\nMerged-In: I7853a16d44f06c7b4dc5d8e85b5839b3779fcdd2\nChange-Id: I7853a16d44f06c7b4dc5d8e85b5839b3779fcdd2\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dc2f6c9741e4128f82fd5fe287c069132ad548e6",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/wm/WindowState.java",
      "new_id": "b3dbfd1ebe33126ac9b99c1f55b2425652d06674",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/wm/WindowState.java"
    }
  ]
}
