[Samsung Galaxy J7 Guides, News, & Discussion] hd_scania:
Heimdall (MacOS) error -7

hd-scania@hd-scania:~$ cd /data/Android/j7eltexx/fw
hd-scania@hd-scania:/data/Android/j7eltexx/fw$ su
Password:
root@hd-scania:/data/Android/j7eltexx/fw# ls -la
total 3296544
drwxr-xr-x 2 hd-scania root 32768 Jan 8 07:12 .
drwxr-xr-x 4 hd-scania root 32768 Jan 7 12:42 ..
-rwxr-xr-x 1 hd-scania root 2168819797 Oct 25 21:51 fw.mm.in.j7eltexx.md5
-rwxr-xr-x 1 hd-scania root 1188856451 Jan 8 03:50 fw.mm.in.j7eltexx.zip
-rwxr-xr-x 1 hd-scania root 17858560 Jan 7 12:46 twrp3.0.2.0.j7elte.tar
root@hd-scania:/data/Android/j7eltexx/fw# heimdall flash --/system ./fw.mm.in.j7eltexx.md5 --usb-log-level none --verbose --no-reboot
Heimdall v1.4.1

Copyright (c) 2010-2014 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...
Manufacturer: "SAMSUNG"
Product: "Gadget Serial"

length: 18
device class: 2
S/N: 0
VID:PID: 04E8:685D
bcdDevice: 021B
iMan:iProd:iSer: 1:2:0
nb confs: 1

interface[0].altsetting[0]: num endpoints = 1
Class.SubClass.Protocol: 02.02.01
endpoint[0].address: 83
max packet size: 0010
polling interval: 09

interface[1].altsetting[0]: num endpoints = 2
Class.SubClass.Protocol: 0A.00.00
endpoint[0].address: 81
max packet size: 0200
polling interval: 00
endpoint[1].address: 02
max packet size: 0200
polling interval: 00
Claiming interface...
Setting up interface...

Initialising protocol...
ERROR: Failed to receive handshake response. Result: -7
ERROR: Protocol initialisation failed!

Releasing device interface...

root@hd-scania:/data/Android/j7eltexx/fw# exit
exit
hd-scania@hd-scania:~$

hd-scania@hd-scania:~$ heimdall && heimdall info && heimdall version
Usage: heimdall <action> <action arguments>

Action: close-pc-screen
Arguments: [--verbose] [--no-reboot] [--resume] [--stdout-errors]
[--usb-log-level <none/error/warning/debug>]
Description: Attempts to get rid off the "connect phone to PC" screen.
Note: --no-reboot causes the device to remain in download mode after the action
is completed. If you wish to perform another action whilst remaining in
download mode, then the following action must specify the --resume flag.

Action: detect
Arguments: [--verbose] [--stdout-errors]
[--usb-log-level <none/error/warning/debug>]
Description: Indicates whether or not a download mode device can be detected.

Action: download-pit
Arguments: --output <filename> [--verbose] [--no-reboot] [--stdout-errors]
[--usb-log-level <none/error/warning/debug>]
Description: Downloads the connected device's PIT file to the specified
output file.
Note: --no-reboot causes the device to remain in download mode after the action
is completed. If you wish to perform another action whilst remaining in
download mode, then the following action must specify the --resume flag.

Action: flash
Arguments:
[--<partition name> <filename> ...]
[--<partition identifier> <filename> ...]
[--pit <filename>] [--verbose] [--no-reboot] [--resume] [--stdout-errors]
[--usb-log-level <none/error/warning/debug>]
or:
--repartition --pit <filename> [--<partition name> <filename> ...]
[--<partition identifier> <filename> ...] [--verbose] [--no-reboot]
[--resume] [--stdout-errors] [--usb-log-level <none/error/warning/debug>]
Description: Flashes one or more firmware files to your phone. Partition names
(or identifiers) can be obtained by executing the print-pit action.
Note: --no-reboot causes the device to remain in download mode after the action
is completed. If you wish to perform another action whilst remaining in
download mode, then the following action must specify the --resume flag.
WARNING: If you're repartitioning it's strongly recommended you specify
all files at your disposal.

Action: help
Description: Displays this dialogue.

Action: info
Description: Displays information about Heimdall.

Action: print-pit
Arguments: [--file <filename>] [--verbose] [--no-reboot] [--stdout-errors]
[--usb-log-level <none/error/warning/debug>]
Description: Prints the contents of a PIT file in a human readable format. If
a filename is not provided then Heimdall retrieves the PIT file from the
connected device.
Note: --no-reboot causes the device to remain in download mode after the action
is completed. If you wish to perform another action whilst remaining in
download mode, then the following action must specify the --resume flag.

Action: version
Description: Displays the version number of this binary.
Heimdall v1.4.1

Copyright (c) 2010-2014 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/

Heimdall utilises libusbx for all USB communication:
http://www.libusb.org/

libusbx is licensed under the LGPL-2.1:
http://www.gnu.org/licenses/licenses.html#LGPL
v1.4.1
hd-scania@hd-scania:~$