)]}'
{
  "commit": "7ae3d28551aea0937e1ce6ad701edef2c9f04bcb",
  "tree": "203b0dcbc6c866eb7291b93663e6aad332b7468d",
  "parents": [
    "2c3a20a284f7eec15d5d3b6c43700eac1c25bbc3"
  ],
  "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:27:28 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:25ff242509e57e58376b3b94561fe7e57a0567f8\nMerged-In: Id85a3170c8b42b9d38be01eb230fa7d6b8ff7983\nChange-Id: Id85a3170c8b42b9d38be01eb230fa7d6b8ff7983\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e01965492380e82b4a091b8f57c1abdc33bb18f6",
      "old_mode": 33188,
      "old_path": "services/usb/java/com/android/server/usb/UsbDeviceManager.java",
      "new_id": "0a587f8cbdeaae97a9cb40691cb35ea049a58ed6",
      "new_mode": 33188,
      "new_path": "services/usb/java/com/android/server/usb/UsbDeviceManager.java"
    }
  ]
}
