Dear readers,
Below my experience flashing TWRP and /e/ on an old Samsung S4 (not being afraid to brick it). This is meant as an extension to the existing documentation, and might be valid for many other Samsung models - with the usual disclaimer: no guarantee from me, know what you are doing.
First of all, a S4 I9505 does not need to be OEM unlocked, it already is.
And: Heimdall is now available for Windows, with a GUI.
https://www.glassechidna.com.au/heimdall/
It is a 32bit version and you will be instructed to install the Windows Visual C++ 2012 redistribution package. Note that you have to install the 32bit (x86) version of the redistributable too, of course.
Extract the Windows Heimdall Suite.
You may want to read the README.txt.
Start your device in download mode, then connect it to the computer (as already documented).
Run the zadig.exe procedure to install the USB device (as already documented).
Start heimdall_frontend.exe
1)
Go to tab ‘Utilities’ to create a PIT file first.
Press ‘Detect device’ (should answer ‘Device detected’).
Enter a Destination File (like ‘mymodel.pit’) or use button ‘Save As’ to overwrite an existing PIT file.
Press ‘Download’. This will extract the PIT file from the device and save it on the computer.
2)
Go to tab ‘Flash’.
Browse and select the PIT file just created.
Press ‘Add’, this will list one main (?) partition.
Now from the ‘Partition Name’ dropdown, select RECOVERY.
For ‘File’ select the appropriate TWRP file for your device.
Check ‘No Reboot’ (!!)
Uncheck ‘Resume’.
Press ‘Start’ to flash TWRP.
A common problem, seen in my try-and-error, was a ‘Protocol error’ reported by Heimdall.
This often can be solved by disconnecting and connecting the cable agein.
Otherwise start again with zadig.exe, and work a bit faster. The USB device seems to have a short lifetime, or gets out of order when Heimdall closes the connection after PIT file creation or flash.
My BIGGEST problem was how to shut down the device (still in download mode) without immediate reboot and loose the new flash. On the S4 I had to repeat all the procedure 5+ times before I managed to boot into TWRP recovery. ADB could not help here: it does not see the device when it is in download mode. At the end, while still in download mode, I held Volume Up + Home + Power a very long time before TWRP said hello to me.
Thereafter, installing /e/ following the existing instructions was easy.
The first time booting into /e/ it got stuck in the /e/ logo.
Power off, power on, and then it was running, going into the setup’s. DONE!
Note:
At first I had installed the TWRP app from the Play Store, but it did not list my exact device model (only a twin model), so I will never know if that was an even much easier way to go. If you have a newer Samsung model, the TWRP app is worth a try.
Question: jfltexx from /e/, or jflte as seen in the TWRP app - is it the same? That’s not clear for a newbee like me. But the existence of the TWRP app needs some mentioning in documentation, I would say.