)]}'
{
  "commit": "4b1deca64d0e6b2df5213f10dbc79585652ceecb",
  "tree": "11b69d93ee0adaab8e49160d1a341605089cf15a",
  "parents": [
    "a023f663a94590054c863cbaac3c5d28afcefa64"
  ],
  "author": {
    "name": "Febin Thattil",
    "email": "febinthattil@google.com",
    "time": "Mon Aug 03 00:43:03 2026 -0700"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Wed Sep 02 22:39:12 2026 -0700"
  },
  "message": "[MTP] Fix lock-screen bypass via default USB functions on timeout\n\nWhen switching USB functions times out in UsbHandlerHal (due to HAL\ndelay or host disruption), the MSG_SET_FUNCTIONS_TIMEOUT and\nMSG_FUNCTION_SWITCH_TIMEOUT handlers recover by falling back to the\ndefault USB configuration (mScreenUnlockedFunctions).\n\nHowever, neither handler checked the lock screen state. If a user set\nPTP (or MIDI, UVC, RNDIS) as their default USB configuration in\nDeveloper Options, a malicious host could exploit these timeout paths to\nenable the data transfer interface on a locked device without user\ninteraction.\n\nThis is a direct follow-up and remediation for the incomplete fix in\nCVE-2024-43085.\n\nThis CL adds a check for !isScreenLocked() in both timeout handlers\nbefore applying the default functions. If the screen is locked, we\nsafely fall back to FUNCTION_NONE (charging only).\n\nBug: 519884370\nFlag: EXEMPT BUGFIX\nTest: Compile check services.usb\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:5683ad06943e188cf04a03bffd3c3157d2c455b2\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:c9ab708153d0613e6b96736361242833f8d54798\nMerged-In: Id85a3170c8b42b9d38be01eb230fa7d6b8ff7983\nChange-Id: Id85a3170c8b42b9d38be01eb230fa7d6b8ff7983\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3d012f6eacc074bb1821932518f5c3fc398986c2",
      "old_mode": 33188,
      "old_path": "services/usb/java/com/android/server/usb/UsbDeviceManager.java",
      "new_id": "e5064e193f5c007322072f36a62a7c0fc690517d",
      "new_mode": 33188,
      "new_path": "services/usb/java/com/android/server/usb/UsbDeviceManager.java"
    }
  ]
}
