Can't boot into recovery mode after flashing TWRP on Samsung Galaxy S5


Question

Problem



I can not boot my Samsung Galaxy S5 into recovery mode after flashing TWRP.



Background



I am trying to install LineageOS on my Samsung Galaxy S5.



What I tried



I followed the install guide on the LineageOS wiki:

1. Installing heimdall, which I built from source to get v1.4.2, since the previous version could not complete the handshake with my phone (other people had the same error)

2. Checking if heimdall works by using heimdall print-pit, which it did

3. Flashing TWRP by using heimdall flash --RECOVERY twrp-x.x.x-x-klte.img --no-reboot. Keeping their disclaimer in mind I tried both the current version as well as two older ones. Heimdall outputs RECOVERY upload successful, and I disconnect the phone (after the device has been released).

4. Booting into recovery mode -> FAIL



Error



The device boots into download mode instead (and no, I did not accidentally switch the volume buttons). There is no error message.



Edit



I originally (and wrongfully) assumed the device to be Samsung Galaxy S5 LTE. It was, however, a Samsung Galaxy S5 Plus (at least this is how I explain the error).


Answer

Preface


I have found the solution to my particular problem now, but if someone else knows more about this feel free to improve my answer or post your own.


Solution


Annoyed with what I thought to be heimdall's fault, I turned to odin (not in a religious way).


This, however, gave me the same error. Close to desperation, I decided to check everything that I did again, and luckily so: Because the guide was emphasizing that the TWRP version has to be the correct one for the model, with not even a little deviation, I checked and found that what I thought to be be a Galaxy S5 was actually named Galaxy S5 LTE-A. However, the model read "SM-G901F", which belongs to the Galaxy S5 Plus. So after downloading the correct TWRP and LOS versions, everything went fine.


I am not sure if this was the only problem or if there is still a problem with heimdall, since the linked reddit thread suggests so.


Conclusion


All this may be very well due to me not being patient enough to get the correct model before I start. In this case, I still hope that my error can serve someone else in their search, seeing as I linked a lot of resources (and maybe other people make the same mistake as me).


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes