Lekensteyn / lglaf

LG Download Mode utility and documentation
https://lekensteyn.nl/lglaf/
MIT License
137 stars 74 forks source link

Reset usb before connection. #71

Open kebianizao opened 2 years ago

kebianizao commented 2 years ago

This is required here for lglaf works at all. Otherwise, according to a wireshark capture, the bulk out packet goes out but there are no bulk in package (as it should) for the HELO message. It still fails the same way if the HELO message is skipped.

The problem was also seen on @steadfasterX fork.

After applying this patch the communication is established. Tested on an LG K-100

This is based on https://github.com/Lekensteyn/lglaf/issues/3 Thanks @shinobisoft :)

Note: I needed to add the --skip-hello for the opened shell to return some sensible responses.

steadfasterX commented 2 years ago

thx ;) merged in my fork