Skip to content

Improve Windows libusb backend detection#802

Open
kryptikphil wants to merge 1 commit into
bkerler:masterfrom
kryptikphil:windows-libusb-backend
Open

Improve Windows libusb backend detection#802
kryptikphil wants to merge 1 commit into
bkerler:masterfrom
kryptikphil:windows-libusb-backend

Conversation

@kryptikphil

Copy link
Copy Markdown

Summary

This change explicitly initializes the bundled libusb-1.0.dll when running on Windows.

On my Windows 10 system, PyUSB was unable to automatically locate the bundled library, preventing communication with Qualcomm EDL devices.

By explicitly passing the bundled DLL to usb.backend.libusb1.get_backend(), communication with the device was successfully established.

Tested configuration

  • Windows 10
  • Python 3.11
  • Nokia 6300 4G (Qualcomm MSM8909)

Successfully verified:

  • Sahara handshake
  • Firehose loader upload
  • GPT parsing
  • Partition enumeration
  • Partition read
  • Partition write

Notes

This change has currently been tested on the configuration above and is intended to improve Windows compatibility where the bundled libusb-1.0.dll is not automatically detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant