)]}'
{
  "commit": "9949826143673d8a94ab2f4efcac8d9d929997bc",
  "tree": "848dfedc3b743d246c786964118dc482f2611b03",
  "parents": [
    "7628f5c3d01945296c183b7f2efb20fdd57c4aa4"
  ],
  "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 23:42:18 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:ee0f41705ee6a4006f62c30e0538cdd6ee38b3a4\nMerged-In: Id85a3170c8b42b9d38be01eb230fa7d6b8ff7983\nChange-Id: Id85a3170c8b42b9d38be01eb230fa7d6b8ff7983\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ae89996c8d266b6b9c8cf189b3378ccd62abcda0",
      "old_mode": 33188,
      "old_path": "services/usb/java/com/android/server/usb/UsbDeviceManager.java",
      "new_id": "1030689d9b8d66df161733d5829a6a204449c65c",
      "new_mode": 33188,
      "new_path": "services/usb/java/com/android/server/usb/UsbDeviceManager.java"
    }
  ]
}
