[OFFICIAL] LineageOS 18.1 for the Samsung Galaxy S4 (All QCOM Variants)

Search This thread

js-xda

Senior Member
Aug 20, 2018
384
169
Samsung Galaxy S4
i9100
One thing that you haven't tried yet? Restarting all your WiFi equipment. - and of course keep it updated.
Not sure whether this is the cause in my case. I observed the issues with several different devices of AVM and always updated firmware and reboots in between.
[...]
Could you let me know if you find the solution post/thread you mentioned; I can't seem to find a definitive answer searching the forum on how to fix it (unless it isn't repairable...)
[...]
I don't think there is a solution yet. But feel free to search further and share.
 
Last edited:
  • Like
Reactions: g_lebleu

rw_on_xda

Senior Member
Jun 24, 2013
416
235
Berlin
some thoughts regarding WIFI:
what has been working in the past doesn't mean it is working today or in the future, cause 3 (!) components are involved: your device, your router and your neighborhood's router

if I can't evade my neighbours channels:
the best channel I use is the same as the strongest one of my neighbour, cause of lesser signal distortion.
IFAIK in this setup my and the strongest neighbours station are sending alternately with a ~full~ signal versus destroying the other one, even when channels overlap.

regarding AVM router:
on 2.4 GHz: the channel 13 is usually switched OFF per default, might mean rare people use it in your area...
=> channel overlapping ?!
on 5 GHz: channel 100 sends with 1000 mW (the whole 2.4 GHz band and all other channel <100 on 5GHz send with 200 mW only, [1]). but using channel 100 could cause hickup's cause of radar detection/scanning ...

auto channel is OFF, cause side stepping each others whole the time leads to never stopping side stepping.
using fixed channels leads to side stepping too, but not here on *my* router, even when I send with 1000 mW (somewhat hardcore though)
:cowboy:

[1] at least for AVM Fritzbox 7490 and 7590


else:
I do not have any trouble with wifi here with my GT-I9505.
but my wifi use case is only: fetching the updates from LOS server, syncing with thunderbird, installing downloded apps via samba (and MiX).
 
Last edited:

g_lebleu

Member
Jan 14, 2023
5
0
some thoughts regarding WIFI:
what has been working in the past doesn't mean it is working today or in the future, cause 3 (!) components are involved: your device, your router and your neighborhood's router

if I can't evade my neighbours channels:
the best channel I use is the same as the strongest one of my neighbour, cause of lesser signal distortion.
IFAIK in this setup my and the strongest neighbours station are sending alternately with a ~full~ signal versus destroying the other one, even when channels overlap.

regarding AVM router:
on 2.4 GHz: the channel 13 is usually switched OFF per default, might mean rare people use it in your area...
=> channel overlapping ?!
on 5 GHz: channel 100 sends with 1000 mW (the whole 2.4 GHz band and all other channel <100 on 5GHz send with 200 mW only, [1]). but using channel 100 could cause hickup's cause of radar detection/scanning ...

auto channel is OFF, cause side stepping each others whole the time leads to never stopping side stepping.
using fixed channels leads to side stepping too, but not here on *my* router, even when I send with 1000 mW (somewhat hardcore though)
:cowboy:

[1] at least for AVM Fritzbox 7490 and 7590


else:
I do not have any trouble with wifi here with my GT-I9505.
but my wifi use case is only: fetching the updates from LOS server, syncing with thunderbird, installing downloded apps via samba (and MiX).
Thank you! I will try to see if any of the channels are adjustable on my router.
 

js-xda

Senior Member
Aug 20, 2018
384
169
Samsung Galaxy S4
i9100
[...]
what has been working in the past doesn't mean it is working today or in the future, cause 3 (!) components are involved: your device, your router and your neighborhood's router
[...]

This is absolutely not about saying that you are saying anything wrong (good summary and several of these points I tried) but I have observed this trend now with at least 4 Samsung Galaxy S4 I9505. At the same time not having comparable "growing" issues with other devices (on stock or custom ROM, with and without GApps, never with Magisk) in the same networks. Also, a full reset sometimes eased the issue again for a while before coming back. I have never seen such a trend with any other device. And it depends indeed on the surroundings - I am still using a S4 in my rather quiet neighbourhood with very low level of these issues and, if not knowing the heavier symptoms, I might not even have picked them up as such. It is a odd behavior.
 
Last edited:

rw_on_xda

Senior Member
Jun 24, 2013
416
235
Berlin
ping @npjohnson

thinking about buying a new phone (Pixel 7, FP4), but they a currently too expensive for me and the Pixel has a big bug:

read a Pixel 7a/8a might be in the pipe for this year too ...

as my GT-I9505 is still okay (battery too) for my use case, one question:
How long is LOS 18.1 supported for my device ?

I guess (but I'm unsure) until LOS 21 hit the scene (next year ?) ?!

couldn't fetch related info's out of the LOS blog - maybe I'm blind -
though, I realized LOS 18.1 got an additional year of support.
Thanks !
 
  • Like
Reactions: maanteel

npjohnson

Recognized Developer
ping @npjohnson

thinking about buying a new phone (Pixel 7, FP4), but they a currently too expensive for me and the Pixel has a big bug:

read a Pixel 7a/8a might be in the pipe for this year too ...

as my GT-I9505 is still okay (battery too) for my use case, one question:
How long is LOS 18.1 supported for my device ?

I guess (but I'm unsure) until LOS 21 hit the scene (next year ?) ?!

couldn't fetch related info's out of the LOS blog - maybe I'm blind -
though, I realized LOS 18.1 got an additional year of support.
Thanks !
Not yet sure, I'd count on an extra year.
 
Back on the track with 9505, 9506 and 9515, I have a few issues with WiFi and BT.

Most of the time my devices stay connected and online. Everything works fine then, nothing to comply. First I thought, there might be my fault leading to WiFi-disconnection. Further investigation led me to the following behaviour on different S4-devices using LOS18.1:

- all of a sudden the WiFi disconnects
- BT follows shortly after
- devices gets warm (above 50°C)
- battery drains even when connected to charger
- WiFi is still available (can scan and analyze surrounding networks)
- BT cannot be turned on again (indicated off)
- WiFi can be restarted by turning off and on again

It is not app-related, I first stumbled across while using CCTG (corona tracing) wich uses BT. That gave me a warning. But even with only plain LOS and a wireless headset connected this issue occurs. The only way to solve is, so far, to reboot the phone.

I remember a similar problem with the FP3+ wich disabled the cellular and BT when leaving a known WiFi. I also remember a similar problem with one of my Galaxy J3 (2016) wich wasn't able to automatically switch back to WiFi disabling it (and BT also) when loosing cellular connection.

Maybe If anyone wants me to I can do tests and hacks and send logs If that helps to find a solution. Please just let me know...
 

rw_on_xda

Senior Member
Jun 24, 2013
416
235
Berlin
- devices gets warm (above 50°C)
- battery drains even when connected to charger

to me it sound like a bad battery.

I would do one or all of the following:
- find out if the battery is sane
- pull out the battery and leave it off for some time
- charge it offline (without use) to 100 % and 1 h further (if the battery gets unusual hot => bad battery)
- use the battery until the device shuts off
- reflash stock and then again LOS

if you need to buy a new battery:
double check if you need one with or without NFC !
 

js-xda

Senior Member
Aug 20, 2018
384
169
Samsung Galaxy S4
i9100
Back on the track with 9505, 9506 and 9515, I have a few issues with WiFi and BT.

Most of the time my devices stay connected and online. Everything works fine then, nothing to comply. First I thought, there might be my fault leading to WiFi-disconnection. Further investigation led me to the following behaviour on different S4-devices using LOS18.1:

- all of a sudden the WiFi disconnects
- BT follows shortly after
- devices gets warm (above 50°C)
- battery drains even when connected to charger
- WiFi is still available (can scan and analyze surrounding networks)
- BT cannot be turned on again (indicated off)
- WiFi can be restarted by turning off and on again

It is not app-related, I first stumbled across while using CCTG (corona tracing) wich uses BT. That gave me a warning. But even with only plain LOS and a wireless headset connected this issue occurs. The only way to solve is, so far, to reboot the phone.

I remember a similar problem with the FP3+ wich disabled the cellular and BT when leaving a known WiFi. I also remember a similar problem with one of my Galaxy J3 (2016) wich wasn't able to automatically switch back to WiFi disabling it (and BT also) when loosing cellular connection.

Maybe If anyone wants me to I can do tests and hacks and send logs If that helps to find a solution. Please just let me know...

This sounds to me a bit similar as some WiFi issues (nothing reported on BT) being reported in this thread over time - last a. o. here, here (myself) and here (myself, addition). Not sure whether I might have mentioned it before, but I have sometimes also issues with sudden rapid drain of the battery while I was so far not connecting it with the WiFi disconnect but cannot exclude that it was (I thought so far it was more related to notifications keeping device awake - and it got less when deactivating some notifications).

I cannot put my finger behind what is really the issue - also with the aspect of "apparently growing over time" but also being less of an issue in "quiet" areas with regards to number of competing WiFi networks.

Hope it helps. Happy to do tests as well while I will move soon away from active use of S4 and keep it only as backup.
 
I am not using all these S4 on a daily base also, but I love and keep them alive as long as possible. Though a 9505 is my tool on WiFi pentesting and forensic research. I use Kali and Warify to burst into customer networks for security manners (not abusive!).
It happend to be much more practical to have this little limitless configirable nugget on hand with a big battery, than to carry around the 5.5kg-box with a closed source device to do exactly the same, but with external power...
 
  • Like
Reactions: pocketrule

g_lebleu

Member
Jan 14, 2023
5
0
A slight update regarding the wifi disconnecting issue I posted last month:
I went into my Telus modem via the admin account and switched off the 5 GHz (high & low) frequency radio, leaving only the 2.4 GHz radio on. So far, this has fixed the issue for me and the wifi no longer drops (or if it does, it reconnects immediately without me noticing it, and it definitely hasn't interrupted me in the middle of a browse or Youtube video).

I'm assuming this is some sort of compatibility issue with the newer fiber internet routers defaulting to the higher frequency.

Hope this helps someone with their S4!
 

rw_on_xda

Senior Member
Jun 24, 2013
416
235
Berlin
yesterday I tried to flash stock on my I9505 and I got this:

<ID:0/004> Initialzation..
<ID:0/004> Get PIT for mapping..
<ID:0/004> Firmware update start..
<ID:0/004> NAND Write Start!!
<ID:0/004> SingleDownload.
<ID:0/004> aboot.mbn
<ID:0/004> NON-HLOS.bin
<ID:0/004> rpm.mbn
<ID:0/004> sbl2.mbn
<ID:0/004> sbl3.mbn
<ID:0/004> tz.mbn
<ID:0/004> boot.img
<ID:0/004> recovery.img
<ID:0/004> system.img.ext4
<ID:0/004> __XmitData_Write
<ID:0/004> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1)
<ID:0/004> Removed!!
<ID:0/004> Added!!
<ID:0/004> Removed!!
<ID:0/004> Added!!
I also saw something about PIT or no PIT ...

haven't had such trouble before with flashing via ODIN !

Idea's ???

ODIN was v3.10.7 (for flashing stock) and v3.13.1 (for flashing LOS recovery [1])

[1] LOS recovery was converted as described in the LOS wiki to flash it via ODIN.
I also followed the instruction there apart from flashing recovery via ODIN, cause the only way out was to flash the LOS recovery via heimdall

P.S.
before flashing:
the phone was on lineage-18.1-20230115-recovery-jfltexx and lineage-18.1-20230115-nightly-jfltexx but with GApps, I attempt to get rid off (GApps !) and took the chance to clean flash all again (last stock, then LOS)
 
Last edited:
  • Like
Reactions: pocketrule

rw_on_xda

Senior Member
Jun 24, 2013
416
235
Berlin
yesterday I tried to flash stock on my I9505 and I got this:


I also saw something about PIT or no PIT ...

haven't had such trouble before with flashing via ODIN !

Idea's ???

ODIN was v3.10.7 (for flashing stock) and v3.13.1 (for flashing LOS recovery [1])

[1] LOS recovery was converted as described in the LOS wiki to flash it via ODIN.
I also followed the instruction there apart from flashing recovery via ODIN, cause the only way out was to flash the LOS recovery via heimdall

P.S.
before flashing:
the phone was on lineage-18.1-20230115-recovery-jfltexx and lineage-18.1-20230115-nightly-jfltexx but with GApps, I attempt to get rid off (GApps !) and took the chance to clean flash all again (last stock, then LOS)
answering myself and for the record:

flashing stock with ODIN 3.14.4 using an USB2 Port fixed it !
 
  • Like
Reactions: pocketrule

przemekSiemens

New member
Feb 18, 2022
3
0
How to make this on walpaper like in lineage 16.

In 18 no this option only see how long minute to end charging
 

Attachments

  • 332678730_684509370343513_6084102510697278715_n - Kopia - Kopia.jpg
    332678730_684509370343513_6084102510697278715_n - Kopia - Kopia.jpg
    206.3 KB · Views: 9

piero-e

Member
Hi, Thank you to maintain those devices across the years.

I use a s4active (jactivelte) running /e/OS a fork of official lineageOS and I can't find a way to enable the navigation bar in
-->system -->buttons
(useful for "scrcpy" display and control the phone from the PC)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    Hi, Thank you to maintain those devices across the years.

    I use a s4active (jactivelte) running /e/OS a fork of official lineageOS and I can't find a way to enable the navigation bar in
    -->system -->buttons
    (useful for "scrcpy" display and control the phone from the PC)
    s4 active has hardware buttons (not capacitive) so lineage doesn't allow enabling onscreen navbar, sorry.
    does someone know *why* the new introduced "boot.img" was created ?

    If it isn't mentioned in the wiki, don't worry about it, it is for power users and debugging.
    Maybe a service for people who prefer installing magisk by batching boot image?
    Not directly, but definitely convientent.
    3
    does someone know *why* the new introduced "boot.img" was created ?

    Maybe a service for people who prefer installing magisk by batching boot image?
    3
    Smart people read wiki. All others watch YouTube
    smarter smart people hear music on YT while reading wiki's in another browser Tab ! ;)
    3
    well, I am that "power user"

    anyone here not ? ;)
    you'd be amazed how many people flash lineage and don't even know what a boot image is ;)
    2
    come on !
    the smarter one's ask before, didn't they ? :)
    Smart people read wiki. All others watch YouTube
  • 31
    lineage-os-logo.png

    Samsung Galaxy S4

    Code:
    - Your warranty is now void.
    - You have been warned.
    - Use at your own risk.

    Introduction:
    This is the Official Lineage OS 18.1 thread for all Galaxy S4 variants.

    Downloads:
    Please follow the install instructions in your device's Wiki page linked below exactly, and make sure your device's firmware matches the required firmware listed.
    • jactivelte (GT-I9295)
    • jflteatt (SGH-I337) - Please note you will need to be on bootloader I337UCUAMDB or I337UCUAMDL
    • jfltespr (SCH-R970/C/X, SPH-L720)
    • jfltevzw (SCH-I545) - Please note you need to be on bootloader I545VRUSMDK
    • jfltexx (GT-I9505, SGH-I337M, SGH-M919) - NOTE: GT-I9505G is supported in this build, but due to system size space limitations it will not fit any form of GApps package.
    • jfvelte (GT-I9515/L)

    If you don't follow these instructions, or use 3rd party add-ons (like Magisk) please don't expect support here.

    Known Bugs:
    • MHL doesn't work after LineageOS 14.1, and likely never will again, as Google dropped support for it platform-wide in AOSP.
    • Find any? Report them according to this guide.
    Notes:
    • The only supported GApps package at the moment is MindTheGapps, linked on our Wiki page about gapps.
    Kernel Source: https://github.com/LineageOS/android_kernel_samsung_jf
    13
    As @npjohnson said...even my builds seems to work fine, they simply "bypass" some new, Android 12 stuff because our old device can't support.

    Go to data usage, via settings, and check any application data usage. Let's say Chrome. Regardless how much u use the Chrome, the data usage seems zero. That's the problem.

    I personally consider and respect the fact that lineageos wouldn't ship a build which includes a hacky thing that bypasses those network related stuff. This feature is a big change on Android platform, hence, I understand why LineageOS insist on a fix on this

    tl;dr, as nolen said, the problem is on the kernel side and since jf can't have that backported change (I won't mess with it personally), the solutions are 2.

    1. Someone will mess with jf kernel and will backport ebpf (as lineage page says so)

    2. We will restore iptables back. This is my approach and I will personally work on it too. Fixing this will help many legacy device come back but trust me... It's really hard to bring it back
    8
    VoLTE will never work on the S4, or the S5.

    These are from early VoLTE generations - in which there was no even semi-standard method to do it. Samsung and LG both stuffed it into the frameworks side java code and it's hopeless - there are too many subsystems working together on the stock ROM we just can't reverse engineer and tie together on LineageOS.
    6
    There is available 19.1 for S4 by @side so the story doesn't end up here.
    However, tbh LineageOS team shouldn't be so strict with legacy devices to get the tag Official. These devices are old now and needs some "hacks" in order to work which LineageOS team doesn't approve.
    Side is one of us. He's aware of the constraints lol.

    It's not "strict" - the "workaround" people keep linking LITERALLY just ignores the error - data restrictions, data management, and routing in general will always be 100% broken - and that will never be considered "working" - if someone makes that stuff properly work, even if tacky, we're no opposed - just that the current stuff isn't even a hack, it's just "ignore what's broken".
    6
    thanks for response and support
    This issue is now fixed. You will need to sideload the upcoming build by hand to get back on track though.

    Sorry for the inconveniences.