Heimdall icon indicating copy to clipboard operation
Heimdall copied to clipboard

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

Open shaun-ba opened this issue 3 years ago • 10 comments

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... `

shaun-ba avatar Aug 25 '21 08:08 shaun-ba

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 avatar Sep 05 '21 07:09 amo13

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

amo13 avatar Sep 05 '21 07:09 amo13

@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

testman42 avatar Sep 09 '21 19:09 testman42

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 .

amo13 avatar Sep 09 '21 19:09 amo13

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.

rdeforest avatar Oct 30 '21 19:10 rdeforest

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 avatar Nov 03 '21 05:11 dylhack

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.

dylhack avatar Nov 03 '21 05:11 dylhack

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

Erudition avatar Oct 20 '22 21:10 Erudition

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...

pcolamar avatar Oct 25 '22 17:10 pcolamar