)]}'
{
  "commit": "d5498e6af80f318d8a0eeb6c1db911de1483c04f",
  "tree": "d22463fd3a100643f066d72fda3c8dc29bb6bcec",
  "parents": [
    "cf5d21fb4ef1fbf1b0dc5af336176f377144a38a"
  ],
  "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": "Thu Sep 03 00:16:08 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:889c5494dfe0be59755beeb687ad7c84df92d038\nMerged-In: Id85a3170c8b42b9d38be01eb230fa7d6b8ff7983\nChange-Id: Id85a3170c8b42b9d38be01eb230fa7d6b8ff7983\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c65f7844f20114f0036deef18e863af35ba8fa56",
      "old_mode": 33188,
      "old_path": "services/usb/java/com/android/server/usb/UsbDeviceManager.java",
      "new_id": "1359ef0fd9ce793d7fde4a4de88acaa1d9435b84",
      "new_mode": 33188,
      "new_path": "services/usb/java/com/android/server/usb/UsbDeviceManager.java"
    }
  ]
}
