[ROM][UNOFFICIAL][11] LineageOS 18.1 for Samsung Galaxy S5 (klte*)

haggertk

Senior Member
Jun 26, 2010
1,087
5,311
143
Denver, CO
Hey @haggertk, I have a SM-S902L. Can I use the rom for SM-S900L for my device? If not would you be so kind and add support for my model? I had been waiting for lineage 17.1 for quite some time now and installed an unofficial build to get android 10. I just found this amazing thread which is a way for me to get android 11. :love: Please consider my request. Thanks ;)
Yeah, that's easy -- I dropped G900AZ and S902L during 17.1 bring-up because I wasn't about to formally fork a device tree and create a new build for those devices that needed <M RIL stack without any evidence of a continuing userbase. I have the work already done locally for 17. One commit in that device tree and then importing the vendor blobs will have it done for 18.
 

HaniAhsan

New member
Jan 1, 2021
3
1
3
Yeah, that's easy -- I dropped G900AZ and S902L during 17.1 bring-up because I wasn't about to formally fork a device tree and create a new build for those devices that needed <M RIL stack without any evidence of a continuing userbase. I have the work already done locally for 17. One commit in that device tree and then importing the vendor blobs will have it done for 18.
Thank you so much for doing the work ❤ I'll install it as soon as you release it.
 

ttesty

Senior Member
Dec 17, 2010
55
9
28
@haggertk can you please apply this patch? It should be simple to apply. It's the biggest stability issue that I've had since your last Dec 25 release, and it's also happening in other 18.x ROMs.

==================================

TcpSocketTracker: Opt-out for TCP info parsing on legacy kernels

This feature requires netlink features that are unsupported on
kernel versions lower than 4.4, therefore opt-out for it in such
cases and avoid constantly crashing TcpSocketTracker.
==================================

I keep getting these periodic crashes/hangs, and /data/system/dropbox gets filled:

====================================================
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: java.lang.IllegalArgumentException: Bad position 65648/684
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at java.nio.Buffer.position(Buffer.java:259)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at java.nio.ByteBuffer.position(ByteBuffer.java:812)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at com.android.networkstack.netlink.TcpSocketTracker.skipRemainingAttributesBytesAligned(TcpSocketTracker.java:427)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at com.android.networkstack.netlink.TcpSocketTracker.parseSockInfo(TcpSocketTracker.java:312)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at com.android.networkstack.netlink.TcpSocketTracker.pollSocketsInfo(TcpSocketTracker.java:245)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at com.android.server.connectivity.NetworkMonitor$ValidatedState.processMessage(NetworkMonitor.java:1050)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at android.net.networkstack.util.StateMachine$SmHandler.processMsg(StateMachine.java:992)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at android.net.networkstack.util.StateMachine$SmHandler.handleMessage(StateMachine.java:809)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at android.os.Handler.dispatchMessage(Handler.java:106)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at android.os.Looper.loop(Looper.java:223)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at android.os.HandlerThread.run(HandlerThread.java:67)
====================================================
 

ttesty

Senior Member
Dec 17, 2010
55
9
28
@haggertk can you please apply this patch? It should be simple to apply.

==================================

TcpSocketTracker: Opt-out for TCP info parsing on legacy kernels

This feature requires netlink features that are unsupported on
kernel versions lower than 4.4, therefore opt-out for it in such
cases and avoid constantly crashing TcpSocketTracker.
==================================

I keep getting these periodic crashes/hangs, and /data/system/dropbox gets filled:

====================================================
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: java.lang.IllegalArgumentException: Bad position 65648/684
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at java.nio.Buffer.position(Buffer.java:259)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at java.nio.ByteBuffer.position(ByteBuffer.java:812)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at com.android.networkstack.netlink.TcpSocketTracker.skipRemainingAttributesBytesAligned(TcpSocketTracker.java:427)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at com.android.networkstack.netlink.TcpSocketTracker.parseSockInfo(TcpSocketTracker.java:312)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at com.android.networkstack.netlink.TcpSocketTracker.pollSocketsInfo(TcpSocketTracker.java:245)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at com.android.server.connectivity.NetworkMonitor$ValidatedState.processMessage(NetworkMonitor.java:1050)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at android.net.networkstack.util.StateMachine$SmHandler.processMsg(StateMachine.java:992)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at android.net.networkstack.util.StateMachine$SmHandler.handleMessage(StateMachine.java:809)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at android.os.Handler.dispatchMessage(Handler.java:106)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at android.os.Looper.loop(Looper.java:223)
11-04 17:28:28.471 +0000 1625 4410 E TcpSocketTracker: at android.os.HandlerThread.run(HandlerThread.java:67)
====================================================
This might help resolve the hotspot issue:

====================================================
::::::::::::::
[email protected]
::::::::::::::
Process: com.android.networkstack.process
PID: 1369
UID: 1073
Flags: 0x2888be4d
Package: com.android.networkstack v300000000 (2019-09)
Package: com.android.networkstack.tethering v30 (11)
Foreground: No
Process-Runtime: 49664509
Subject: TcpSocketTracker
Build: samsung/kltexx/klte:6.0.1/MMB29M/G900FXXU1CRH1:user/release-keys

android.util.Log$TerribleFailure: Unexpected socket info parsing, family 10 buffer:java.nio.HeapByteBuffer[pos=96 lim=37
=============================================================
 

haggertk

Senior Member
Jun 26, 2010
1,087
5,311
143
Denver, CO
@haggertk can you please apply this patch? It should be simple to apply. It's the biggest stability issue that I've had since your last Dec 25 release, and it's also happening in other 18.x ROMs.
No, because it's not something that will have a chance at actually getting merged. But I'll do one better and pick the kernel changes that resolve the error.
 

ttesty

Senior Member
Dec 17, 2010
55
9
28
No, because it's not something that will have a chance at actually getting merged. But I'll do one better and pick the kernel changes that resolve the error.
Thanks a lot! Sounds like a good opportunity to further reduce dependencies on certain kernel modules/options when they are not essential. Less is more :)
 
Last edited:

kurtn

Senior Member
Jan 28, 2017
3,777
1,585
233
Small town in Bavaria
When I take a photo, I see it as thumbnail in camera app. Tapping the thumbnail doesn't open the last picture, but the first.

Any formal bug report expected?
 
Last edited:

curiousrom

Recognized Contributor
Jun 4, 2011
1,760
3,355
153
Costa Rica
www.reddit.com
Reporting Bugs

When I take a photo, I see it as thumbnail in camera app. Tapping the thumbnail doesn't open the last picture, but the first.

Any formal bug report expected?
@haggertk Wi-Fi hotspot does not work for me on klte. Can I help with logcat?
From the post #1 in this thread:

Reporting Bugs:
  • DO NOT even think about reporting bugs if you are running a custom kernel, Magisk, or Xposed
  • Grab a logcat after the problem has occurred
  • If there is a random reboot then grab /proc/last_kmsg. A logcat AFTER the reboot will be worthless
  • Note which build AND device you have
  • Read the thread, at least the last month's worth of posts. Don't report things that others already have.
Bolded by me. ;)

klte: SM-G900F, SM-G900M, SM-G900R4, SM-G900R7, SM-G900T, SM-G900V, SM-G900W8
***

Are you serious? 🤪
***
 

Not-Aus

Senior Member
Sep 5, 2017
95
56
18
Minden
Build Compatibility:
The noted models are the only ones supported. If you have a model that isn't listed and ask politely then I might work to add compatibility.​
Hi haggertk,

may I ask politely to add support for the Samsung Galaxy S5 LTE+ (kccat6)?
It's still stuck on Android 9 and the usual maintainer does not care anymore.

Regards
Not-Aus :)
 

godofsalt

Senior Member
Oct 2, 2011
401
196
73
Southwest, Ohio
Well Hello Mr. Haggertk and i Thank you for you taking on yet, another headache! ? !
Can say, that the Nov20 build was not as nice as Dec build!
Build Dec25.20 seems a bit better. Nice! good job, no Great job!
Need to ask you or anyone that Knows the answer. Q - Where in the WWW would i find some sort of Gapps for KTLEDV, for Android 11?
Not being mean or rude, am just asking, because I have been trying for a couple of months, with no results. ! Still thought, Looking forward for more.
Thank you agian!
 

gaindelioide

Member
Mar 23, 2020
9
20
3
Well Hello Mr. Haggertk and i Thank you for you taking on yet, another headache! ? !
Can say, that the Nov20 build was not as nice as Dec build!
Build Dec25.20 seems a bit better. Nice! good job, no Great job!
Need to ask you or anyone that Knows the answer. Q - Where in the WWW would i find some sort of Gapps for KTLEDV, for Android 11?
Not being mean or rude, am just asking, because I have been trying for a couple of months, with no results. ! Still thought, Looking forward for more.
Thank you agian!
Hi gentleman,
Search in XDA site for BiTGApps and you will find the release R19 for arm7 and the one for android 11. I am using this Gapps on my device SM-G900F (Samsung Galaxy S5 klte).
 

curiousrom

Recognized Contributor
Jun 4, 2011
1,760
3,355
153
Costa Rica
www.reddit.com
BiTGApps Link

...Search in XDA site for BiTGApps and you will find the release R19 for arm7 and the one for android 11. I am using this Gapps on my device SM-G900F (Samsung Galaxy S5 klte).
BiTGApps ARM Android 10 & 11 R19 {download link}
It's always better to link to the original thread instead of to a file download link so users can get the most recent versions, get more info (file content & features, changelog, how-to use/install, etc.), give Likes 👍 to the dev, make some donations maybe, ask questions in the thread and see the most recent users' comments about the packages.

Also taking a few minutes to search & post the link saves hundreds of minutes to other users of the thread.

So here it is: [CUSTOM][GAPPS] BiTGApps for Android
***
 
  • Like
Reactions: dcarvil

ttesty

Senior Member
Dec 17, 2010
55
9
28
@haggertk, was there an older (Android10) Wifi/HAL module embedded for the latest release? Might help to update. Wifi works ok.

E WifiHAL : wifi_pre_initialize
E WifiHAL : --- HAL version: Android-10-FRC2-SDK_29 59.0 (r854927) 2019-12-06 23:33:52 +0530 (Fri, 06 Dec 2019) ---
E WifiHAL : Calling preInit
E WifiHAL : Hal preInit
E WifiHAL : Failed to register set Hal preInit; result = -95
E WifiHAL : wifi_hal_preInit failed
E WifiHAL : wifi_initialize
E WifiHAL : Calling Hal_init
E WifiHAL : Start Set Hal
E WifiHAL : Failed to register set hal start response; result = -95
E WifiHAL : wifi_start_hal failed
E WifiHAL : Failed to register get pkt fate response; result = -95