[OFFICIAL] LineageOS 17.1 for Galaxy S5 klte + Variants

curiousrom

Recognized Contributor
Jun 4, 2011
1,774
3,365
153
Costa Rica
www.reddit.com

Edit: FYI the LineageOS S5 klte family maintainer created a new thread here:

[ROM][UNOFFICIAL][11] LineageOS 18.1 for Samsung Galaxy S5 (klte*)
***
Code:
#include "std_disclaimer.h"
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */
LineageOS is a free, community built, aftermarket firmware distribution of android, which is designed to increase performance and reliability over stock android for your device.

All the source code for LineageOS is available in the LineageOS Github repo. If you would like to contribute to LineageOS, please visit the Wiki.

Important Info
WARNING: the official 17.1 build 20201101 is defective, causing a bootloop & got removed from the Lineage servers. The ROMs affected are klte, klteduos & kltedv.

If you updated to 20201101 and are caught in a bootloop as reported by several S5 users in the pages #3 of this thread and the following pages: flash an older version like 20201025 without wiping anything (a.k.a. dirty flash) and you will not lose your aps & settings:

1- On the S5 you can simulate a battery removal if you press Volume down + Power button for 10-20 seconds while frozen, in bootloop or Download Mode: the S5 goes black & turns off.

If you keep on pressing the buttons until the Samsung bootloader splash screen appears & release them then S5 should reboot in System.

Or remove the battery to turn it off.

2- With the S5 turned off hold Volume Up + Home + Power to boot in recovery and either sideload the older version or copy to the S5 the older build as MTP is enabled by default in TWRP and flash it from there.
***

To flash this rom you need TWRP version 3.3.1-0 or newer or the Lineage Recovery specific to your device model.

Some TWRP 3.4.0 users reported fail to install LineageOS after a wipe. Rebooting to TWRP recovery after the wipe solves this issue.

The adb command adb reboot sideload does not work in TWRP for the S5 as if you sideload a file afterwards it will fail as I tested myself with this error message: " command is: 'sideload' and there is no value". You must manually select in TWRP > Advanced > ADB Sideload > swipe to begin sideload then you can sideload your file. You must do the same for each files if you sideload more than one.

The S5 maintainer haggertk recommends not choosing Internal storage for the Micro SD card (adoptable storage) when formatting the card in the device and posted about it here: "...my opinion is no one should use adoptable storage. It's a fragile mess and always has been since Google explicitly does not care about sdcards.".

Some S5 17.1 users reported being stuck in an endless boot animation after restoring a 17.1 TWRP backup. A workaround tested by @wireroot & posted here is to flash the original LineageOS ROM that you were running when you made that backup right after the restore operation. This was confirmed by @jdrch in his post here.

An other possible workaround is to flash "fix_rootfs_label.zip" that you can find here right after restoring the TWRP backup. Note: this was NOT confirmed yet by S5 users in this thread.

EFS Partition Restore - @Eadn33 reported here in the old 16.0 thread that he could not restore the EFS partition with TWRP 3.4.0 but could with TWRP 3.3.1-0 on his S5 G900V. Other models may have that problem also but no other reports so far. See EFS Partition Backup - No Service, No IMEI & No SIM Card Fix for explantions.

Warning: do NOT select install TWRP app in TWRP as it will cause a bootloop.


Download Links
The Galaxy S5 klte variants currently supported by LineageOS are:

klte - SM-G900F, SM-G900M, SM-G900R4, SM-G900R7, SM-G900T, SM-G900V, SM-G900W8
klteactivexx - SM-G870A, SM-G870F
kltechn - SM-G9006V, SM-G9008V
kltechnduo - SM-G9006W, SM-G9008W
klteduos - SM-G900FD, SM-G900MD
kltedv - SM-G900I, SM-G900P
kltekdi - SCL-23, SC-04F
kltekor - SM-G900K, SM-G900L, SM-G900S

Each respective download pages include a link to the official clean installation instructions and a link to Device info which includes a link about how to upgrade to a higher version. For example from official 16.0 to official 17.1 without losing your settings & apps.

The wiki mentions only the Lineage recovery but several S5 users reported successful clean install or 16.0 > 17.1 upgrading while using TWRP instead.

TWRP: https://twrp.me/samsung/samsunggalaxys5qualcomm.html

Google apps (Optional. The S5 requires the ARM for Android 10 version because LineageOS 17.1 is based on Android 10 & the S5's ARM architecture.): https://wiki.lineageos.org/gapps.html

As a rule of thumb the larger the Open GApps package, the more chance of a problem on first boot with the ever changing privapp-permissions.

I prefer the smaller Pico package & just add the extra apps I need from Play Store and https://f-droid.org/ See Open GApps Package Comparison

Some users prefer not installing any Gapps packages & use the Aurora Store v3 - a FOSS Google Play client to download apps from Play Store. Note that some apps may require the Google Play Services & librairies which are included in the Gapps packages & may not work properly or will not get timely notifications because of it.

Root (Optional): The LineageOS AddonSU and Privacy Guard are deprecated in 17.1. :(

Magisk which is the only root solution for 17.1 @ the present is not supported by LineageOS. See Magisk download & Installation instructions by the Magisk dev & also the excellent Magisk and MagiskHide Installation and Troubleshooting guide by @Didgeridoohan. Thread on XDA: Magisk General Support / Discussion.

Magisk can be installed later at anytime so it's not necessary to install it during the initial installation of LineageOS.

Bug Reporting
If a bug is discovered, confirm it with other users in this thread & include your device model & build date (for ex. lineage-17.1-20201025-nightly-klte), then report it following the LineageOS wiki here: https://wiki.lineageos.org/bugreport-howto.html

Known Bugs - Known Issues
1- On an encrypted S5 17.1 + Gapps if Secure Startup is enabled it may fail to reboot or take a very long time to boot. See bug report here.

From haggert's post here:

...there is some kind of timeout that hits ALL legacy devices - addition of gapps is seemingly enough to push it over the edge. Aside from first boot or upgrade, sometimes you'll be able to get in and sometimes not. I bet if you are able to decrypt in twrp and delete dalvik cache you'll get fully booted again.

Bottom line, if you are encrypted, make sure to disable secure startup (go change the pin/pattern/password, even to the same thing, and say that you do not want to have to answer for the device to start). {bold by me}
2- Not a bug really but some S5 users reported fail to boot on 17.1 or no SIM card recognized because they had an older baseband/modem. See S5 Odin Flashable Modem & Bootloader.

Haggertk posted here about 17.1: "...I'm willing to bet that you have some L or earlier baseband. Except for the activexx build, you have to be running M baseband now." {bolding by him}.

3- Google Backup cannot be restored if you use a 4x4, 5x5 or 6x6 lock screen pattern in LineageOS instead of the Android default 3x3 pattern. See the bug report here.

4- Display accepts touch input while off due to proximity and screen does not turn back on after call bug report by @Eadn33. The bug was fixed with klte family builds 2020-11-13 or newer. Thank you Mr. haggertk.

5- SMS reception notification delay depends on doze / unlock state by @wireroot. He posted about it in this thread here.

6- Bluetooth Crashing - Some users reported having issues with Bluetooth in this thread: @KrautHolg here, @liquidraver here and here, @pmduper here, @navcar here and included a logcat, @badesh here and here, @mrmarioman who posted here.

@KrautHolg created a report in the LineageOS bug tracker with a logcat here: Bluetooth repeatedly crashes with multiple devices for the S5 klte LineageOS 17.1.

OTOH @Eadn33 reported here that he does not have any problems "with a soundbar, music and hands free in car , or scan tool for car". I tested for 2 hours listening to music with Bluetooth headphones, received a call & also had no problems on my S5 G900M klte.

So far nobody created a Bluetooth bug report with an attached logcat in the LineageOS bug tracker for the S5 running LineageOS 17.1. See this post about how to create one: S5 Bluetooth Crashing Bug Report?

7- Fingerprint Scanner: Some S5 users reported not being able to register their fingerprints in > Settings > Security > Fingerprint. Contrary to the Lineage instructions the finger must be swiped down & not just "Touch the sensor". See the screenshot & the linked trick if you still can't register the fingerprint in S5 G900F Fingerprint Issue.

Not a bug but some users reported the scanner not working on older basebands but working after updating it like @jackass5 in his post here. See S5 Odin Flashable Modem & Bootloader.

Several users, including me, reported a higher battery usage after registering some fingerprints. See S5 Screen Lock Fingerprint Battery Tests @ Idle - BetterBatteryStat

8- Camera (Snap) > Settings > Storage > if you select SD Card the photos are saved to /external sdcard I.D./Android/Data/org.lineageos.snap/Files/ but taping on the thumbnail of the photo you just took mistakenly opens /storage/emulated/0/DCIM/Camera/. Additionally, Gallery does not see that Files folder but a third-party app like Simple Gallery Pro that does show the Files album.

In LineageOS 17.1 build 2020-11-23 or newer the SD Card option was deleted instead of fixing the bug. See LineageOS 17.1 - In Camera the Option Save to SD Card has Been Removed in this thread.

9- Call Forwarding Not Working - In both the stock Phone app or when dialing a code it's broken. See this post that includes a link to a bug report: S5 klte LineageOS 17.1 Call Forwarding Error. Thanks to @uyguremre for reporting the issue here.
***

S5 U.I. Speed-Up Tip: Try those as fast as you can before the tweak: expand/close notification curtain, app drawer & scroll, recent apps & scroll, horizontal scroll fast between hope pages if you have a few, open Settings & scroll, etc.

Then: Settings > Accessibility > enable Remove animations.

Test again as you did before. Profit!

LineageOS FAQ
https://wiki.lineageos.org/faq.html

LineageOS Stats
https://stats.lineageos.org/

Credits
The S5 klte + variants LineageOS maintainer is @haggertk who valiantly supported the S5 klte family through LineageOS 14.1, 15.1, 16.0 & now 17.1. Big thanks for his perseverance & dedication. :cool:👍

He is also one of the 9 LineageOS directors and maintains other devices as well as you can see in https://wiki.lineageos.org/contributors.html

Many thanks also to the LineageOS team and all the contributors out there in the community that made the Lineage project possible. You can see their names or nicknames in the zoomable & searchable > Settings > About phone > Contributors.

Haggertk seemed uninterested in creating an S5 17.1 tread on XDA or he is too busy maybe so I went ahead and created one using part of the OP of his old S5 LineageOS 15.x thread. If he wants a transfer of this thread's ownership I will gladly do it.

Kernel Source Code:
Kernel tree: https://github.com/LineageOS/android_kernel_samsung_msm8974/tree/lineage-17.1

LineageOS Gerrit code review: https://review.lineageos.org

Android version: 10

Note: this post as well as posts #2 & 3 will be updated soon.
***
 
Last edited:

haggertk

Senior Member
Jun 26, 2010
1,090
5,321
143
Denver, CO
If you are going to make a thread and list mappings to builds, please make it correct. Inspect the wiki (hint: G900AZ and S902L are no longer supported in the klte build).

Sent from my PH-1 using Tapatalk
 
  • Like
Reactions: Alex_Gamer

Hawaiihemd

Senior Member
May 27, 2014
630
414
93
Homburg
Issue with brightness control 20201025 update

Hi all,

I did an update yesterday from 17.1-20201018-NIGHTLY-klte to 17.1-20201025-nightly-klte via the inbuilt updater and TWRP 3.4.0 on my sm-g900f.

Flash went smooth but brightness control stopped working in 20201025.
If I use the brightness adjustment slider, the global variable is set accordingly, I checked that via Tasker.
But the display itself does not change brightness one way or the other.
Same with auto-brightness on.

I manually flashed back to 20201018 just now. Brightness adjustment works fine again.

Anyone else?
 

godofsalt

Senior Member
Oct 2, 2011
402
196
73
Southwest, Ohio
Hi all,

I did an update yesterday from 17.1-20201018-NIGHTLY-klte to 17.1-20201025-nightly-klte via the inbuilt updater and TWRP 3.4.0 on my sm-g900f.

Flash went smooth but brightness control stopped working in 20201025.
If I use the brightness adjustment slider, the global variable is set accordingly, I checked that via Tasker.
But the display itself does not change brightness one way or the other.
Same with auto-brightness on.

I manually flashed back to 20201018 just now. Brightness adjustment works fine again.

Anyone else?

Actually, was a little concerned, but, did it anyway (My build kltedv). Just concerned about the "Recovery", I have not, switched to LineageOS Recovery. So, knowing I was running what one could say , is Not the correct recovery (Still TWRP )

Had not issues, every thing went rather smooth and easy of course!

thanks
 

KrautHolg

Senior Member
Jan 12, 2015
57
7
38
60
Flensburg
mail.im.tku.edu.tw
Hi,

Since updating to lineage-17.1-20201025-nightly-klte-signed.zip (2020-10-25) through the automatic updater, my bluetooth keeps crashing. As I use it all the time with the fitness tracker as well as the earphones it is more than a little nuisance. Any ideas on what should I try first to fix this issue?

Best,

Holger from Flensburg
 

dtr.

Member
Sep 11, 2016
43
9
0
Hi sorry if this already covered the latest version of this klte ROM keeps shutting down as it installs logo freezes then back to boot screen _ flashed unofficial version same klte phone flashed fine _ clean install always I'm mystified unless its a bootloader version problem ?
 

liquidraver

Member
Nov 12, 2009
44
25
38
Budapest
Hi,

Since updating to lineage-17.1-20201025-nightly-klte-signed.zip (2020-10-25) through the automatic updater, my bluetooth keeps crashing. As I use it all the time with the fitness tracker as well as the earphones it is more than a little nuisance. Any ideas on what should I try first to fix this issue?

Best,

Holger from Flensburg
Nothing. Bluetooth sucks since LOS16, constant disconnects (more frequently if you use more than two devices watch+earphone+car - etc), smart watch can't reconnect after disconnection, etc.
There are temporary solutions, like go to apps and clear storage on bluetooth app + reboot, but it won't last.
If you want more stable bluetooth, go back to 14.1. (or stock)
 
Last edited:

dtr.

Member
Sep 11, 2016
43
9
0
Hi sorry if this already covered the latest version of this klte ROM keeps shutting down as it installs logo freezes then back to boot screen _ flashed unofficial version same klte phone flashed fine _ clean install always I'm mystified unless its a bootloader version problem ?
Solved _ flashed latest klte firmware via Odin (had to try a few times kept 'looping) eventually managed to install firmware then flashed twrp now running 25.10.20 fine no bootkoops everything OK thanks for the build
 
Last edited by a moderator: