Windows support #2

Closed
opened 2025-12-28 01:52:22 -05:00 by chipmunkmc · 4 comments
Owner

When testing the program on a laptop that has Windows 10 installed, it times out on exploiting the bootloader. Specifically, this happens when the program attempts to read the response of a version request packet. Attempting to crash the bootloader fails, so clearly more than an unread response is an issue.

Also, when compiling it I had to patch out usage of endian.h; regardless of whether I ever support Windows, I should probably replace it with something more portable. This article is of interest.

Note that I installed Samsung's USB driver so the computer could recognize the phone, and then used Zadig to replace it with WinUSB.

image

When testing the program on a laptop that has Windows 10 installed, it times out on exploiting the bootloader. Specifically, this happens when the program attempts to read the response of a version request packet. Attempting to crash the bootloader fails, so clearly more than an unread response is an issue. Also, when compiling it I had to patch out usage of `endian.h`; regardless of whether I ever support Windows, I should probably replace it with something more portable. [This](https://commandcenter.blogspot.com/2012/04/byte-order-fallacy.html) article is of interest. Note that I installed Samsung's USB driver so the computer could recognize the phone, and then used Zadig to replace it with WinUSB. ![image](/attachments/19982df7-c657-4e51-a245-7950e2b01ea1)
1.2 MiB
Author
Owner

I tried the libusbK driver and it worked just fine, maybe I should close this issue...

I tried the libusbK driver and it worked just fine, maybe I should close this issue...
Author
Owner

None of the other drivers work, but that one does. Well yay, I won't need to ask anyone to boot into a working Linux system (while I would prefer one over Windows, I doubt everyone is the same way at all).

None of the other drivers work, but that one does. Well yay, I won't need to ask anyone to boot into a working Linux system (while I would prefer one over Windows, I doubt everyone is the same way at all).
Author
Owner

Oh wait I didn't fix the endian thing.

Oh wait I didn't fix the endian thing.
Author
Owner

Uhh I "fixed" it in

Uhh I "fixed" it in
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
chipmunkmc/osmium#2
No description provided.