LineageOS: Install TWRP on Galaxy Tab S2 SM-T813

Installation is mainly according to the instructions of LineageOS.

However, it must be varied on the following point:

  1. You have to use heimdall version >= 1.4.2, because of a print-pit bug.
  2. How to start twrp recovery directly from download mode:

After flashing with heimdall, Press and hold POWER + HOME + VOL DOWN when the screen is blank, then press and hold POWER + HOME.

Otherwise, the tablet cannot start recovery directly.

Compiling Heimdall

$ git clone
# apt install cmake libusb-dev libusb-1.0-0-dev libqwt-qt5-dev libqt5scintilla2-dev libqwt-qt5-dev libzlcore-dev liblz-dev
$ cd Heimdall/libpit
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ ls -l bin/heimdall