[ROM] [S9/S9+] [UNOFFICIAL] [LineageOS 18.1] [Exynos] [Weekly]

Search This thread

Neurotical

Senior Member
Feb 7, 2011
236
373
2okPze5.png


ROM DOWNLOADS:

ROM INSTALL INSTRUCTIONS:
  • From OEM:
    • Lineage Recovery
    • Format /system + /data + /cache
    • Flash
    • Reboot
    • Root is not included. To root, install Magisk yourself.
  • From existing Unofficial weekly:
    • Use OTA, or
    • Sideload via ADB in recovery

BASEBAND UPDATING:
  1. Install Samsung USB drivers
  2. Install Odin 3.14 (or later)
  3. Download updated baseband firmware from the XDA thread for your model phone.
  4. Unzip and re-pack "modem.bin" into a .tar file such as "modem.tar"
  5. Reboot phone into download mode
  6. Open Odin
  7. Load your modem.tar file into CP in Odin
  8. Start flash
  9. Reboot

MICROG INSTALL INSTRUCTIONS:
  • In the F-Droid store add in the appropriate repo: https://microg.org/fdroid/repo per the official instructions.
  • Do the following, in this order:
    1. Install microG services core (F-Droid)
    2. Install microG services framework proxy (F-Droid)
    3. Install NLP backend, such as Mozilla location (F-Droid) or GSM Location (F-Droid)​
    4. Install Google Play Store (APK mirror) or FakeStore (F-Droid)​
    5. microG settings -> self check -> enable all features​
    6. microG settings -> location modules -> enable Mozilla Location Service​
    7. For background location permission go to your system settings and allow microG services core and your Mozilla NLP to access location all the time.
    8. For full notification support got to microG settings -> enable Google device registration, cloud messaging, and Google safety net.

WORKING FEATURES:

  • GPS
  • NFC
  • Wi-Fi
  • Audio
  • HDMI
  • Camera
  • Ethernet
  • Bluetooth
  • MTP/ADB
  • Encryption
  • Glove Mode
  • Android Auto
  • OTA Updates
  • Call Recording
  • Mobile Network
  • SELinux Enforcing
  • Fingerprint Sensor
  • Signature Spoofing
  • Wireguard (via kernel)

NOT WORKING FEATURES:

  • Iris Scanner
  • VoLTE

CONTRIBUTORS:


SOURCE CODE:

REFERENCES:

REQUIREMENTS:

  • Stock Samsung Oneui 2 - 2.5 (Android 10) Firmware. (Bootloader + Vendor)

XDA DevDB Information

  • LineageOS 18.1, ROM for the Samsung Galaxy S9

Version Information

  • Status: Stable
  • ROM Firmware Required: Oneui 2 - 2.5

My work will always be free for everyone to use and I will never hide anything behind a paywall.


* We are not responsible for anything that may happen to your phone by installing custom ROMs/kernels.
* You do it at your own risk. You take responsibility upon yourself and are not to blame us or XDA.
* Your warranty will likely be voided by installing custom ROMs.
 
Last edited:

snowmotion

Member
Mar 17, 2016
13
0
Wow looks like a polished and hassle-free Lineage version! Thanks for your work and for sharing it.
I am considering to buy either a Galaxy S9 or S10 for an acquaintance since both are often sold phones. So they should have good community support for quite a while. Neither of the two has official Lineage support as of now. They do appear to be supported by /e/OS and CrDroid but I feel that Lineage is still the way to go for rock-solid experience right after flashing.
So is it planned to add official Lineage support? If not, would it be feasible with some help and contributions of others? Could you add this information in the first post for others too please?
Would be valuable information for many :)
 

aureljared

Senior Member
May 2, 2013
952
662
dantis.me
Haven't flashed ROMs since I had my Nexus 6P, so apologies if I missed something - is there a specific method to enable encryption on this ROM, or is it simply broken as of now?

I set my phone up, logged into everything and reinstalled all my apps, and then enabled encryption. Now the phone crashes and performs soft reboots. It also logged me out of my Google account. I suppose I'm going to have to wipe and reinstall.

It's also worth noting that neither TWRP 3.3.1 nor 3.5.2 can decrypt /data (I double-checked - the PIN was correct), which is a shame. I would have liked to have /data encrypted.
 
Last edited:

aureljared

Senior Member
May 2, 2013
952
662
dantis.me
Haven't flashed ROMs since I had my Nexus 6P, so apologies if I missed something - is there a specific method to enable encryption on this ROM, or is it simply broken as of now?

I set my phone up, logged into everything and reinstalled all my apps, and then enabled encryption. Now the phone crashes and performs soft reboots. It also logged me out of my Google account. I suppose I'm going to have to wipe and reinstall.

It's also worth noting that neither TWRP 3.3.1 nor 3.5.2 can decrypt /data (I double-checked - the PIN was correct), which is a shame. I would have liked to have /data encrypted.
I figured it out! The trick was to enable encryption before setting anything else up.

Skip everything you can in initial setup (no Wi-Fi, no Google account, etc) so that by the end all you have is a PIN code in place (skip adding a fingerprint too). Then enable encryption, allow it to do its job, and when it reboots you can go about continuing setup.

TWRP unfortunately still cannot decrypt /data, however.

Hope this helps anyone running into the same problem.
 
  • Like
Reactions: Neurotical
Hi dude, I have a samsung s9, I don't know yet between install DotOS (wich there's not european version I think), CrDroid (which is offically maintained) or LineageOS, I saw that as you said Synt4x.93 did one, but what's the difference between his rom and yours ? Thanks in advance and thanks for your work ^^
 

Neurotical

Senior Member
Feb 7, 2011
236
373
Hi dude, I have a samsung s9, I don't know yet between install DotOS (wich there's not european version I think), CrDroid (which is offically maintained) or LineageOS, I saw that as you said Synt4x.93 did one, but what's the difference between his rom and yours ? Thanks in advance and thanks for your work ^^
LineageOS 18.1 is regularly updated by the maintainers, so I just run the updates for S9 and S9+ owners. This includes monthly AOSP performance and security updates.

Additionally, I am in the process of upstreaming the kernel. This provides performance and security enhancements made possible by the long term Linux kernel maintainers.

Synt4x hosts the device specific repos that make building Linegae 18.1 for the S9 and S9+ possible.
 
LineageOS 18.1 is regularly updated by the maintainers, so I just run the updates for S9 and S9+ owners. This includes monthly AOSP performance and security updates.

Additionally, I am in the process of upstreaming the kernel. This provides performance and security enhancements made possible by the long term Linux kernel maintainers.

Synt4x hosts the device specific repos that make building Linegae 18.1 for the S9 and S9+ possible.
Ok thx, so if I want to install a rom, it's yours then. Because updates
 
  • Like
Reactions: Neurotical

Neurotical

Senior Member
Feb 7, 2011
236
373
Have the Kernel upgrades improved anything noticeable on star2lte, eg battery life or something?
Great job too. well done !
:)
Yeah, there's a lot of improvements in performance, battery life, and security. I notice better reponsiveness and battery life, definitely. There's a full list of updates here: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/?h=linux-4.9.y Just browse for the kernel you're on and look at the previous update details. You can also browse my working kernel repo here: https://github.com/Geoknyda/android_kernel_samsung_universal9810 and reconcile with the Linux link to make sure the updates you care about are committed. I save a branch off of my default 4.9y after every patch bundle in case I have to revert due to an incompatibility.

At the rate I am going, I expect to have the kernel fully patched and up to date in a couple of days. I'll keep posting the ROMs as I progress in the OP. It's a lot of work going through 3,400 commits in a few days, but I think those who want security and performance for their S9/S9+ deserve to have it until the kernel reaches EOL in 2023.
 
Last edited:

Neurotical

Senior Member
Feb 7, 2011
236
373
Update:
The kernel is now fully patched and up to date. I will be maintaining additional kernel updates as they are released by the Linux Long-Term Support kernel team for the 4.9y branch until 2023, which is EOL for that branch. These updates will be merged into the weekly builds as well. Enjoy!
 

waynea

Member
Mar 3, 2020
19
3
Hi there
jst a quick question......do the monthly android security updates come OTA, or do I have to download a file and install with TWRP?
I only ask because someone here seemed to sugegst that you had to do a complete reinstall of the latest version?
 

Neurotical

Senior Member
Feb 7, 2011
236
373
Hi there
jst a quick question......do the monthly android security updates come OTA, or do I have to download a file and install with TWRP?
I only ask because someone here seemed to sugegst that you had to do a complete reinstall of the latest version?
You can flash it over your existing ROM via ADB or OTA..
 
Last edited:

waynea

Member
Mar 3, 2020
19
3
thaks for super quick reply.
No the original install will be over stock. But what to i need to do when there is an update?
 
Last edited:

Neurotical

Senior Member
Feb 7, 2011
236
373
Updating from stock, you'll have to do full wipe/flash/reset.

Updating afterwards with weekly builds in this thread's OP only requires dirty flashing:

  • Use OTA
or:
  1. upload recovery
  2. sideload updated zip
  3. format cache & reboot
 
Last edited:

Top Liked Posts

  • 2
    FYI new update includes:
    • Kernel update 4.9.315 -> 4.9.316
    Now available via OTA or OP.

    Have a great day!

    👾😸🐒🌞
    1
    Microg install is not mandatory. It is supported, but optional.
    Gapps is not included in this ROM. To install, you will have to do it yourself.
  • 4
    FYI new update includes:
    • May 5 2022 AOSP Security Patch
    • Wireguard updates
    Now available via OTA or OP.

    Have a great day!

    :geek::coffee:(y)
    4
    FYI new update includes:
    • Kernel update 4.9.313 -> 4.9.315
    Now available via OTA or OP.

    Have a great day!

    👾😸🐒🌞
    3
    FYI new update includes:
    • Kernel update 4.9.311 -> 4.9.312
    Now available via OTA or OP.

    Have a great day!

    :geek::coffee:(y)
    3
    FYI new update includes:
    • Kernel update 4.9.312 -> 4.9.313
    Now available via OTA or OP.

    Have a great day!

    :coffee::geek::cool::p:D
    2
    FYI new update includes:
    • Kernel update 4.9.315 -> 4.9.316
    Now available via OTA or OP.

    Have a great day!

    👾😸🐒🌞
  • 23
    2okPze5.png


    ROM DOWNLOADS:

    ROM INSTALL INSTRUCTIONS:
    • From OEM:
      • Lineage Recovery
      • Format /system + /data + /cache
      • Flash
      • Reboot
      • Root is not included. To root, install Magisk yourself.
    • From existing Unofficial weekly:
      • Use OTA, or
      • Sideload via ADB in recovery

    BASEBAND UPDATING:
    1. Install Samsung USB drivers
    2. Install Odin 3.14 (or later)
    3. Download updated baseband firmware from the XDA thread for your model phone.
    4. Unzip and re-pack "modem.bin" into a .tar file such as "modem.tar"
    5. Reboot phone into download mode
    6. Open Odin
    7. Load your modem.tar file into CP in Odin
    8. Start flash
    9. Reboot

    MICROG INSTALL INSTRUCTIONS:
    • In the F-Droid store add in the appropriate repo: https://microg.org/fdroid/repo per the official instructions.
    • Do the following, in this order:
      1. Install microG services core (F-Droid)
      2. Install microG services framework proxy (F-Droid)
      3. Install NLP backend, such as Mozilla location (F-Droid) or GSM Location (F-Droid)​
      4. Install Google Play Store (APK mirror) or FakeStore (F-Droid)​
      5. microG settings -> self check -> enable all features​
      6. microG settings -> location modules -> enable Mozilla Location Service​
      7. For background location permission go to your system settings and allow microG services core and your Mozilla NLP to access location all the time.
      8. For full notification support got to microG settings -> enable Google device registration, cloud messaging, and Google safety net.

    WORKING FEATURES:

    • GPS
    • NFC
    • Wi-Fi
    • Audio
    • HDMI
    • Camera
    • Ethernet
    • Bluetooth
    • MTP/ADB
    • Encryption
    • Glove Mode
    • Android Auto
    • OTA Updates
    • Call Recording
    • Mobile Network
    • SELinux Enforcing
    • Fingerprint Sensor
    • Signature Spoofing
    • Wireguard (via kernel)

    NOT WORKING FEATURES:

    • Iris Scanner
    • VoLTE

    CONTRIBUTORS:


    SOURCE CODE:

    REFERENCES:

    REQUIREMENTS:

    • Stock Samsung Oneui 2 - 2.5 (Android 10) Firmware. (Bootloader + Vendor)

    XDA DevDB Information

    • LineageOS 18.1, ROM for the Samsung Galaxy S9

    Version Information

    • Status: Stable
    • ROM Firmware Required: Oneui 2 - 2.5

    My work will always be free for everyone to use and I will never hide anything behind a paywall.


    * We are not responsible for anything that may happen to your phone by installing custom ROMs/kernels.
    * You do it at your own risk. You take responsibility upon yourself and are not to blame us or XDA.
    * Your warranty will likely be voided by installing custom ROMs.
    13
    Good day,

    I just want to take a moment to say thank you to everyone who has tried this ROM, given feedback, and even helped out along the way! It is with all of your help that I can keep the builds coming and I look forward to doing this for as long as I can for the S9 and the S9+ :) Our community deserves the best and that only happens when we all work together :)

    Have a great day, and thank you again to everyone in this community :)
    12
    Good day everyone!

    I have returned from a small vacation and time off caring for my newborn baby! He is healthy and well.
    I apologize for the brief hiatus, but I am back to continue providing updated kernels, security patches, and Lineage OS 18.1 for you all!

    What's new since the latest version:
    Kernel: 4.9.290 -> 4.9.297
    Security patch: November 5, 2021 -> December 5, 2021 (January 5, 2022 should be out soon)

    Now available via OTA or OP, as usual :)

    Have a great day!
    9
    Why don't You Maintain The ROM Officially ?.Love This ROM Very Much Hope it Gets Lineage OS 19
    I would love to maintain it officially. In fact I reached out to the Lineage team about doing just that in September last year.

    They responded back outlining how there are a lot of procedures to follow, including needing a team to manage the device tree and other repos. There were also some things that me not being a programmer just can't provide like being able to independently bug fix compile errors when changes are made by the LOS team that are incompatible with the S90/S9+. Right now I rely on the community to help with these fixes and I just copy them. It's worked so far because there are, humbly, more knowledgeable people maintaining device trees than I.

    That leaves me in a position where I am learning from the experts and this wonderful community in a collaborative effort to keep the LOS 18.1 going for the S9 and S9+ :)
    8
    A couple of questions as I am somewhat new:
    1. Why is this build unofficial resp. what is preventing this build to become official again (as starlte official was discontinued after LOS 17.1)?
    2. How trustworthy is an unofficial build compared to an official build?
    With regards to safety and trustworthiness:
    • Everything is open source so anyone can see what is going into the all the builds. This includes the kernel, Lineage OS, and Samsung device trees. These links are in the OP.
    • I don't make any changes of my own because I am not knowledgeable enough to do that, but I do copy kernel patches from the Linux Long-term Maintenance team run by Linus and Greg for the 4.9y branch; I can at least bug-test and roll them into the weekly ROM builds. Linus & Greg pretty much head up Linux entirely, so the patches they approve are as trustworthy as you can get :D
    • I also got the Wireguard kernel patch into this build, which is pretty awesome, but without the help of the contributors in the OP, I really wouldn't have been able to do it on my own.
    With regards to making it official:
    • I was using the official Lineage OS, but when the support for official status was dropped, I started learning how to build Lineage for unsupported devices. Then I came across Synt4x's repos, which gave me all the resources needed to build Lineage 18.1 for the S9 and S9+. I simply maintain kernel patches that come out weekly by the Linux Long-term Maintenance team (Linus & Greg et al.), work with the community here to maintain the device trees, and then compile the builds as often as needed.
    • After I got the hang of all this, I figured everyone who has an S9 or S9+ should be able to benefit form Lineage OS 18.1 support. These phones have great hardware and I think it a shame not to allow users the option to de-google it or take full control of it so soon after it has been released. Besides, the 4.9y kernel is going to be maintained until 2023. So I upgraded from a 3600 to a 5900x and 16gb RAM to 32gb RAM to speed up the builds (each build is only about 8 minutes now) and support the community!
    • I would like to see an official build, but I can't maintain it all by myself. I am not a programmer, and most of the code I look at is jibberish to me; I just trust the Linux team and Lineage OS team. So we need the community here to help me with build errors when the Lineage team makes changes to their OS; I'm not knowledgeable enough yet to tackle those problems on my own. But I am learning, and have successfully tackled two compile errors so far with the help of the community, and I've learned from them :D
    What you will get with this build, even though it is unofficial is:
    • Kernel updates straight from the Linux Long-term Maintenance team; this is very official and safe;
    • AOSP security patches straight from the Lineage group; this is very official and safe;
    • Lineage OS updates as they roll out; this is very official and safe;
    I literally can't do anything else because of my limited skillset.