• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Search This thread

s4goa

Senior Member
Nov 25, 2018
146
12
Samsung Galaxy S4
No need to do further research, it's probably just dual-sim i9505.

We don't support i9506 at all, it's a whole different family of device more like klte.

Galaxy S4 GT-i9507 has LTE part enhanced.
The i9506 is supported by another xda-thread, however.

there is among other S4, the

i9505
i9506 (2.3 Ghz instead of 1.8 Ghz but drains battery fast)
i9507

my guess is that unofficial LOS is there for all three of the above, but i9507 is the most tricky.
 

Achsel

Senior Member
Jan 17, 2007
50
25
@npjohnson
As already described in my post 193, I have successfully installed LineageOS 18.1 on a GT-I9505 and a GT-I9515 VE (flashed via TWRP, rooted via Magisk). It runs great on both devices. Thanks a lot for this! Due to the missing Ethernet driver I cannot activate Ethernet through a behind a OTG Adapter connected USB 2.0 3-way HUB with integrated Ethernet adapter, even via shell commands (on rooted stock ROM Android 4.4.2 it was possible). No "eth0" device is displayed after the shell command "ifconfig -a". As I have read on the Internet, you would have to activate the following options in the kernel "defconfig" file for the S4 for a USB Ethernet Adapter to work:

"CONFIG_USB_NET_CDCETHER", "CONFIG_USB__NET_RNDIS_HOST" and "CONFIG_USB_USBNET" (Multi-purpose USB Networking Framework).

Because my knowledge is far from sufficient to compile a "defconfig" file from a LineageOS installation file, I wanted to ask whether you could activate the three options mentioned with the next update.

Another possibility would be the manual activation of the modules "cdc_ether.ko", "rndis_host.ko" and "usbnet.ko" via the "insmod" command, if this is still possible with LineageOS 18.1. But these compiled modules would then have to come from the current kernel too.

Thanks in advance!
Axel
 
  • Like
Reactions: pocketrule

rw_on_xda

Senior Member
Jun 24, 2013
325
167
Berlin
with ubiquitous censorship on www, people tend to not believe those postings saying "all is fine". Rather the opposite is true.
what people tend to not believe is up to their own (and/or maybe up to their "filter-bubble").
I tend to believe what I can see (in this case: on my phone) and verify (in this case: in this thread here).
just read comment #214.

cit.: "It runs great on both devices."

... :cool:
 
  • Like
Reactions: pocketrule

npjohnson

Recognized Developer
Why LOS 18.1 2021-07-29 was deleted from Builds for jfltexx?
Do I need downgrade to 2021-07-22?
Builds for jfltexx
There was an edge case issue with accessibility apps causing delayed input. If it's fine for you. No worries, enjoy it :)
Flashed it just yesterday, went good so far, no errors. Wonder what's wrong with it?!
See above.
This ROM is totally broken. It's very unstable, makes the phone very hot, it's very slow and jerky and also Google products not work properly. I've tried all GAPPS but that's impossible to use it.
You must have done something wrong. It runs great here with GApps. It old hardware, but things run well.
with ubiquitous censorship on www, people tend to not believe those postings saying "all is fine". Rather the opposite is true.
Well, all is fine for real, lol
@npjohnson
As already described in my post 193, I have successfully installed LineageOS 18.1 on a GT-I9505 and a GT-I9515 VE (flashed via TWRP, rooted via Magisk). It runs great on both devices. Thanks a lot for this! Due to the missing Ethernet driver I cannot activate Ethernet through a behind a OTG Adapter connected USB 2.0 3-way HUB with integrated Ethernet adapter, even via shell commands (on rooted stock ROM Android 4.4.2 it was possible). No "eth0" device is displayed after the shell command "ifconfig -a". As I have read on the Internet, you would have to activate the following options in the kernel "defconfig" file for the S4 for a USB Ethernet Adapter to work:

"CONFIG_USB_NET_CDCETHER", "CONFIG_USB__NET_RNDIS_HOST" and "CONFIG_USB_USBNET" (Multi-purpose USB Networking Framework).

Because my knowledge is far from sufficient to compile a "defconfig" file from a LineageOS installation file, I wanted to ask whether you could activate the three options mentioned with the next update.

Another possibility would be the manual activation of the modules "cdc_ether.ko", "rndis_host.ko" and "usbnet.ko" via the "insmod" command, if this is still possible with LineageOS 18.1. But these compiled modules would then have to come from the current kernel too.

Thanks in advance!
Axel
I'll take a look!
 

Achsel

Senior Member
Jan 17, 2007
50
25
@npjohnson
I am available for any tests. I have two different combined USB 2.0 HUB 3-way Ethernet adapters (UGREEN with ASIX Ax88772 chipset, displayed driver: asix and JSDOIN with Corechip SR9000 chipset, displayed driver: cdc_ether). Both adapters work automatically on my Samsung Galaxy Tab4 (SM-T530) with LinageOS 18.1:
https://forum.xda-developers.com/t/rom-unofficial-matisse-millet-lineageos-18-1.4292943/
In addition to the three options mentioned above, these six other options are activated on the Tab4 (The activated USB drivers are displayed in the "/ sys / bus / usb / drivers" folder):
"CONFIG_USB_ASIX", "CONFIG_USB_NET_CDC_NCM", "CONFIG_USB_NET_SMSC75XX", "CONFIG_USB_NET_SMSC95XX", "CONFIG_USB_NET_NET1080", "CONFIG_USB_NET_CDC_SUBSET" and "CONFIG_USB_EHSET_TEST_FIXTURE".

I have just loaded the driver for the AX88772 chip at ASIX, which should be suitable for all Android versions, and attached it below, but is apparently not needed on the Tab4 (just installed and used) and would have to be compiled accordingly.
https://www.asix.com.tw/en/support/download
 

Attachments

  • AX88772C_772B_772A_760_772_178_Linux_Driver_v4.25.0_Source.rar
    70.2 KB · Views: 1
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    @npjohnson
    After doing an new clean installation on my both S4 devices (GT-I9505 and GT-I9515) with the reduced "MindTheGapps" (see my instructions and attachement in post 249) and "Magisk-v23.0.zip" via "TWRP 3.5.2_9-1" 5 days ago, I was able to install today's update via "System/Advanced/Updater", as expected, fully automatically via TWRP on the GT-I9505 too.
    2
    Sorry. I thought you could help out wit this: "Somebody could find the LineageOS maintainer for jfltexx and kindly ask them to change the BoardConfig to allow for more space in the system partition."
    No, because stock lineageos fits in this size, and can be used on the GPE version.

    If I up the number the GPE version won't be able to install lineage.
    2
    It doesn't affect the "Battery light".
    No matter what position the "Lights with screen on" toggle is set to, if the "Battery Light" toggle is set to active, the led will turn on every time the usb cable is connected, even when the screen is lit up.

    Could this change with future updates? I remeber it being a feature in the 14.1 (unofficial) build I was running previously on the same phone.
    1. Huh, looks like it's a platform feature we don't have - maybe someone will port it.
    2. Nah. It's had people attempt to resurrect it for some time, doubtful someone will find the time to actually do it properly.
    1
    Hi 👋 I just got my old s4 from my niece and unfortunately I don't see this version. I believe it is a sgh-720t (jflte).
    Use Lineage Recovery - that's a SUPER old, and unified jflte recovery. You need a jfltespr recovery.
    1
    ... videos at 60fps properly on YouTube...
    full hd 60 fps is not possible with our i9505. Even if you've got an app that shows such videos (vlc or, for youtube videos newpipe - which I highly recommend) it will stutter. We've had made some tests recently, only to find out (again), that the hardware of our device cannot play such videos
  • 22
    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
    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.
    5
    Good news, my GT-I9505 is updating automatically at this moment ("Update recovery" option disabled).
    Next step, activate the option to update the recovery and see if this works well.
    Thanks @npjohnson for your incredible work
    the recovery image updates the second you check the box.

    after you update OS, it updates the recovery on the next boot during boot animation.

    Have fun! Good to hear.
    5
    USB otg is unfortunately broken at the moment. But you can get access to your external storage by installing MiXplorer (which I recommend in any case) and "enable otg" in settings -> more settings
    Should be fixed in next build.
    4
    many thanks all developers - great work.

    i had dirty flashed from official 17.1 with 65 installed apps yesterday
    (SAMSUNG_I9505)

    rebooted to TWRP (twrp-3.5.1_9-0-jflte)
    0. wiped only system/dalvic/cache:
    1. flashed LOS (lineage-18.1-20210401-nightly-jfltexx-signed.zip)
    2. MindTheGapps-11.0.0-arm-20210328_143701
    3. magisk 22.0

    everything works well.


    but there was to much google-apps.

    i had unzipped MindTheGapps-11.0.0-arm-20210328_143701
    and reduced apps like "open_gapps-arm-pico"

    deleted:
    system/product/app/GoogleTTS
    system/product/app/talkback
    system/product/priv-app/AndroidAutoStubPrebuilt
    system/product/priv-app/Velvet

    and zipped again "MindTheGapps-11.0.0-arm-20210328_reduced"

    also once again

    0. wiped only system/dalvic/cache - rebooted to TWRP:
    1. flashed LOS 18.1
    2. MindTheGapps-11.0.0-arm-20210328_reduced
    3. magisk

    everything works well for now.