#!/bin/bash
clear
echo """This will get and build heimdall
For the Samsung tab 4 10.1 a line oc code must be changed.
Reference: https://github.com/Benjamin-Dobell/Heimdall/issues/232
The first error is on line 932 (line is a few off in current code) at the BridgeManager.cpp contains:
success = ReceivePacket(receiveFilePartPacket, receiveEmptyTransferFlags);
but it makes wrong timeout and lost flags.
I use this one:
success = ReceivePacket(receiveFilePartPacket, kDefaultTimeoutReceive, receiveEmptyTransferFlags);
press enter to continue
"""
read
sudo apt-get install build-essential pkg-config zlib1g-dev libusb-dev libqt4-dev qt4-qmake autoconf libtool libusb-1.0-0-dev automake
git clone git://github.com/Benjamin-Dobell/Heimdall.git
vim ./Heimdall/heimdall/source/BridgeManager.cpp
cd Heimdall/libpit
./autogen.sh
./configure
make
cd ../heimdall
./autogen.sh
./configure
make
su -c 'make install'