Share via

MTP USB Device Code 31 Error – Windows cannot load required drivers (Windows 11)

Sudheer Babu Gotluru 20 Reputation points
2026-03-11T03:55:06.1266667+00:00

User's image

Hello,

I am experiencing a persistent issue with the MTP USB Device driver on my Windows system.

When I connect my Android phone to my PC via USB, the phone charges normally, but Windows does not properly detect it as a portable device.

In Device Manager, the device appears under Other Devices as:

MTP error

with the error:

“This device is not working properly because Windows cannot load the drivers required for this device. (Code 31)”

Because of this issue, Windows cannot recognize the phone for file transfer.


What I have already tried

I attempted the following troubleshooting steps:

Uninstalled and reinstalled the MTP USB Device driver

Tried Update Driver → Let me pick from available drivers

Attempted to install drivers using Snappy Driver Installer

Ran system repair commands:

DISM /Online /Cleanup-Image /RestoreHealth

Verified that USB ports are enabled in BIOS

Attempted installing ADB/Android drivers

Tried disabling driver signature enforcement

Confirmed the USB port works because the phone charges when connected

Despite these steps, Windows still fails to load the MTP driver.


System Information

Device: Dell Latitude 5501 Operating System: Windows 11 Version: 10.0.26200.7922


My Question

How can I repair or reinstall the Windows Portable Device (MTP) driver stack so that Windows can properly recognize the device?

Is there a way to repair the driver store or reinstall the MTP driver without performing a full Windows reinstall?

Any guidance would be greatly appreciated.

Thank you.

Windows for home | Windows 11 | Connect Phone and PC
0 comments No comments

Answer accepted by question author
  1. Ramesh Srinivasan 77,725 Reputation points Independent Advisor
    2026-03-11T05:57:29.13+00:00

    Hi Sudheer,

    A third-party filter driver may be causing the problem. To verify that, please open a Command Prompt admin window and run the following command:

    reg query "HKLM\SYSTEM\CurrentControlSet\Control\Class" /f *erfilters* /s >c:\filters.txt
    

    Upload the file c:\filters.txt in your next reply.


1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2026-03-11T03:55:25.35+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Code 31 means Windows cannot load the driver required for the device. The documented resolution for Code 31 is to reinstall the device driver from Device Manager using the Hardware Update wizard.

    Follow these steps specifically for the MTP entry that shows Code 31:

    1. Open Device Manager.
    2. Under Other devices, right‑click the MTP (or MTP USB Device) that has the warning icon.
    3. Select Update driver.
    4. Choose Search automatically for drivers first. If Windows finds and installs a driver, reconnect the phone and test.
    5. If the problem persists, repeat steps 1–3, but this time select Browse my computer for driversLet me pick from a list of available drivers on my computer and select the appropriate MTP/portable device driver if one is listed.
    6. If prompted for a driver path and none is available locally, download the latest MTP/USB/phone driver package from the device or PC manufacturer and point the wizard to that folder.

    If the device still shows Code 31 after reinstalling the driver as above, the remaining supported option is to obtain an updated, compatible driver directly from the phone or PC manufacturer and install it, then repeat the Device Manager update so Windows can load that newer driver.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.