Benjamin-Dobell / Heimdall

Heimdall is a cross-platform open-source tool suite used to flash firmware (aka ROMs) onto Samsung Galaxy devices.
MIT License
2.62k stars 587 forks source link

Samsung SM-G998B - ERROR: Failed to send handshake! #491

Open shaun-ba opened 3 years ago

shaun-ba commented 3 years ago

So I cannot even print-pit currently on this device, is it even supported?

Currently output is:

`sudo heimdall print-pit Heimdall v1.4.2

Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is encouraged.

If you appreciate this software and you would like to support future development please consider donating: http://www.glassechidna.com.au/donate/

Initialising connection... Detecting device... Claiming interface... Setting up interface...

Initialising protocol... ERROR: Failed to send handshake!ERROR: Protocol initialisation failed!

Releasing device interface... `

amo13 commented 3 years ago

I merged a few overdue pull requests from this repo the other day. Can you please try with a freshly compiled version from here?

amo13 commented 3 years ago

Sorry, that link was only for macOS... here is for windows and this is for linux.

testman42 commented 3 years ago

@amo13 thank you very much for this I have been banging my head against the wall for quite a few days now, tried many heimdall builds, and the one you linked above seems to be the first one that can communicate with my SM-T500

amo13 commented 3 years ago

Amazing! Glad to read that, because I merged the pull requests and made the build all totally blindly, since I have no current device to actually test it with. Thank you very much for reporting, @testman42 .

rdeforest commented 3 years ago

I merged a few overdue pull requests from this repo the other day. Can you please try with a freshly compiled version from here?

This worked for me with a Samsung S9 and MacOS 11.8. Thank you for your continued work on this.

dylhack commented 3 years ago

This build got passed the handshake fail, but I ran into Failed to receive session end confirmation and for my device it displays SECURE CHECK FAIL : recovery

edit: Here is some more verbose information

WARNING: Empty bulk transfer after receiving packet failed. Continuing anyway...

100%
RECOVERY upload successful

Ending session...
ERROR: Failed to unpack received packet.
ERROR: Failed to receive session end confirmation!
Releasing device interface...
dylhack commented 3 years ago

It started working all of the sudden when I turned on --usb-log-level debug, probably coincidence but I didn't think this would be like the double slit experiment.

Erudition commented 2 years ago

Same problem, even with a manually compiled build of @amo13 's fork with patches... On latest Ubuntu LTS

pcolamar commented 2 years ago

Same problem with LinuxMint 21-Cinnamon. I guess because it is based on the Ubuntu LTS 22


Initialising connection... Detecting device... Claiming interface... Setting up interface...

Initialising protocol... ERROR: Failed to send handshake!ERROR: Protocol initialisation failed!

Releasing device interface...

julianfoad commented 6 months ago

Duplicate of #413? I just added some help there.