[ROM][S9+/S9][UNOFFICIAL][LineageOS 18.1][21-03-2021]

Search This thread

geronimoge

Senior Member
Aug 4, 2016
516
129
You should be able to flash the MagiskApp.apk (after renaming to .zip) with TWRP. I think the problem is that Magisk only patches the kernel when you patch the image. When you are able to flash Magisk directly, it "installs" the patching tool and is then able to patch the kernel as needed.
Well, as writen in Magisk tutorial you normally shouldn't use this option.
"[...] installing Magisk through custom recoveries on modern devices is no longer recommended. The custom recovery installation method exists purely for legacy support"
So I thought I'd do it the right way. But unfortunately it doesn't seem to work.
 
Last edited:

geronimoge

Senior Member
Aug 4, 2016
516
129
Yesterday i flashed the release 21-03-2021.
Today my phone was getting really hot, I noticed it while having a call.
A few minutes ago I wanted to check my phone again and it was off.
It seems as the battery went from 100% to 0% within minutes.
Anyone else with this problem?
 
Mar 19, 2021
22
5
Yesterday i flashed the release 21-03-2021.
Today my phone was getting really hot, I noticed it while having a call.
A few minutes ago I wanted to check my phone again and it was off.
It seems as the battery went from 100% to 0% within minutes.
Anyone else with this problem?
I dont even notice a temp change on LOS 18.1, but i make a habit of "force stop" apps after I have finished with them. Settings > apps and notifications .. this displays the last 3 apps, click on the app > force stop. frees up phone resources. Yes, you can force stop "phone" and "messaging" service too, phone still receivces incoming / make outgoing calls, and SMS likewise. Just "force stop" after the conversation. Battery live depends on my use, but I go all day at screen 55%, and using Pixel Battery Saver app ( adds small black dots that you cant see ) and permanent dark mode - even in daylight its fine. bluetooth off, location off, wifi off, data off when not needed. you get prompted to turn data on for MMS messages. Email needs data obviously, 9 Plus.

Not using Gapps at all. Using the updated version from 21-3-21
 

jomann

Member
Jan 29, 2021
38
6
Well, as writen in Magisk tutorial you normally shouldn't use this option.
"[...] installing Magisk through custom recoveries on modern devices is no longer recommended. The custom recovery installation method exists purely for legacy support"
So I thought I'd do it the right way. But unfortunately it doesn't seem to work.
I could certainly be wrong, but I think custom roms will typically fall under "legacy support". The tutorial also seems to focus completely on stock roms and using Odin for flashing which doesn't apply (or isn't necessary?) for custom roms.
 

Koffietijd

Member
Jun 21, 2018
47
3
Is it possible to update the underlying image like vendor from the newest stock on Starlte/S9 exeynos? Without reinstall everything?
 

jomann

Member
Jan 29, 2021
38
6
Is it possible to update the underlying image like vendor from the newest stock on Starlte/S9 exeynos? Without reinstall everything?
crDroid has a firmware link for the S9/S9+ that references PDA, CSC, and modem direct installs for Odin and TWRP. I don't see anything for Vendor, but you may try backing up the current VENDOR partition and using TWRP to flash a new vendor.img from the latest stock rom. Make sure you aren't changing Android version.
 
  • Like
Reactions: strapy
Mar 19, 2021
22
5
A few things missing on this model phone with this ROM,

i) app / hardware to use the heart beat sensor on back of phone ( without the white flash light / camera )
ii) edge notification lighting as part of LOS ( third party apps + ads is an option)
iii) gesture on rear fingerprint sensor ( swipe up on sensor and swipe down can be configured )
iv) gesture to "tap" on rear of device to map to an action

But the LOS 18.1 is fine otherwise, this is just for those looking for a total replacement to Samsung / Android
 
  • Like
Reactions: smallz2k

alterechtschreibung

Senior Member
Sep 23, 2012
60
7

muammil

Member
Jun 17, 2009
34
4
KD
2okPze5.png


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

INSTRUCTIONS:
  • Lineage Recovery or TWRP
  • Format /system + /data + /cache
  • Flash
  • Reboot

WORKING:
  • Wi-Fi
  • Bluetooth
  • Mobile Network
  • GPS
  • NFC
  • Audio
  • Camera
  • Fingerprint Sensor
  • HDMI
  • Ethernet
  • MTP/ADB
  • Call Recording
  • Encryption
  • SELinux Enforcing
  • Android Auto
  • Glove Mode
  • OTA Updates

BROKEN:
  • Iris Scanner
  • VoLTE

DOWNLOADS:

XDA:DevDB Information
LineageOS 18.1, ROM for the Samsung Galaxy S9

Version Information
Status:
Stable
ROM OS Version: Android 11
ROM Kernel: Linux 4.9.118
ROM Firmware Required: Oneui 2 - 2.5

Contributors
synt4x.93

Source Code: https://github.com/synt4x93/

Created: 16-12-2020
Last Updated: 21-03-2021
I lost baseband after flashing this rom. No imei. Any solution?
 

owenjm

Senior Member
Dec 8, 2010
82
29
Thanks for this amazing ROM @Synt4x.93 ! Everything that is supposed to work is working perfectly, smoothly and flawlessly. I really hope that this is lined up to be an Official release so that updates keep coming through automatically?

One thing to note -- like many ROMs for this device, it's missing a gps.conf file in /system/etc to provide the ephemeris data links for other systems. Without the correct file, GPS works but only locks onto GPS satellites; with the file, I'm able to connect to BeiDou, GLONASS, Galileo and QZSS sats and get a faster and more accurate fix.

For anyone like me who was coming from an Oreo vendor / bootloader, I had success doing the following with TWRP 3.2.3
  1. Factory reset / full system wipe
  2. Flash DTC5 vendor
  3. Flash ROM
  4. Flash GAPPS
  5. Flash Magisk 21.4 (didn't dare use the latest Magisk.app, those instructions are clear as mud and greatly scare me!)
  6. Flash DTC5 bootloader
  7. Flash latest SoLdieR9312 flashable firmware (ETF5_r7 in my case -- was worried if this would cause problems, but it seems fine)
There was thankfully no need to revert to stock with Heimdall (which I had thought was required, and is what had put me off upgrading to a Android10-vendor-based ROM for the longest time).

I migrated my apps with Migrate (as apparently TiBu no longer works, sadtimes), and that more-or-less worked provided you don't try to restore permissions.

Feels like my phone has a new lease of life :)
 

gnarf49

Senior Member
Jan 21, 2013
56
31
The gps.conf seems to have changed location, I found /vendor/etc/gnss/gps.xml on my S9 running on last official MicroG 17.1 from 18/Jan/2021. Galileo is enabled but I have never seen it being used (trying with SATSTAT). GPS and GLONASS working perfectly fine always, sometimes a Beidou signal is received.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 46
    2okPze5.png


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

    INSTRUCTIONS:
    • Lineage Recovery or TWRP
    • Format /system + /data + /cache
    • Flash
    • Reboot

    WORKING:
    • Wi-Fi
    • Bluetooth
    • Mobile Network
    • GPS
    • NFC
    • Audio
    • Camera
    • Fingerprint Sensor
    • HDMI
    • Ethernet
    • MTP/ADB
    • Call Recording
    • Encryption
    • SELinux Enforcing
    • Android Auto
    • Glove Mode
    • OTA Updates

    BROKEN:
    • Iris Scanner
    • VoLTE

    DOWNLOADS:

    XDA:DevDB Information
    LineageOS 18.1, ROM for the Samsung Galaxy S9

    Version Information
    Status:
    Stable
    ROM OS Version: Android 11
    ROM Kernel: Linux 4.9.118
    ROM Firmware Required: Oneui 2 - 2.5

    Contributors
    synt4x.93

    Source Code: https://github.com/synt4x93/

    Created: 16-12-2020
    Last Updated: 21-03-2021
    6
    would you mind specifying exactly what you did to build this? I am using the lineage for microg docker based build and it currently succesfully builds 17.1. I would like to build 18.1 with OTA and sign it myself and provide the OTA like you do.
    There are fragments of info across this thread, it would be great if you or anyone else can put them together.
    Thanks!
    Hi,

    Sure I can share what I did.

    1. Prepare directories and get Lineage sources (https://wiki.lineageos.org/devices/starlte/build)

    # Create directories
    Bash:
    mkdir -p ~/bin
    mkdir -p ~/android/build
    mkdir -p ~/android/build/src
    mkdir -p ~/android/build/ccache
    mkdir -p ~/android/build/keys
    mkdir -p ~/android/build/logs
    mkdir -p ~/android/build/zips
    mkdir -p ~/android/build/manifests

    # Get repo tools
    Bash:
    curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
    chmod a+x ~/bin/repo

    # Create a "~/.profile" file and paste this into:
    Bash:
    “if [ -d "$HOME/bin" ] ; then
        PATH="$HOME/bin:$PATH"
    fi”

    # Prepare git
    Bash:
    cd ~/android/build/src
    git config --global user.email "you@example.com"
    git config --global user.name "Your Name"

    # Init repo
    Bash:
    source ~/.profile
    repo init -u https://github.com/LineageOS/android.git -b lineage-18.1

    # Time to sync (it can take a very long time, so be patient).
    Bash:
    repo sync

    2. At this point, I forked all Synt4x.93 related repositories on my Github. But, you don’t really need to do that if you just want to build.

    For OTA, the only repo you will need to fork is android_device_samsung_starlte.

    3.
    Create an other repository named OTA.

    4. From your forked android_device_samsung_starlte repository, modify the file lineage_starlte.mk

    Change the last line with your GitHub username:
    Code:
    PRODUCT_PROPERTY_OVERRIDES += \
    lineage.updater.uri=https://raw.githubusercontent.com/<Your_username>/OTA/lineage-18.1/starlte.json

    5. Then you need to add the roomservice.xml file to add the device and kernel sources.

    You can use the resources from Synt4x.93, mine or from Neurotical (He’s maintaining a more recent version of the kernel, you should have a look: https://xdaforums.com/t/rom-s9-s9-unofficial-lineageos-18-1-weekly.4302901/ )

    Get one of the manifests:
    -Synt4x.93: https://github.com/synt4x93/local_manifests
    -pakaoraki: https://github.com/pakaoraki/local_manifests
    -Neurotical: https://github.com/Geoknyda/local_manifests

    Then modify the file roomservice.xml: change "project name" with your GitHub username to match your repository:
    Code:
    ...
    <project name="synt4x93/android_device_samsung_starlte" path="device/samsung/starlte" remote="github" revision="lineage-18.1" />
    ...

    Copy your version of roomservice.xml into ~/android/build/manifests directory.

    # Update source again
    Bash:
    repo sync

    6. Generate your own keys (https://wiki.lineageos.org/signing_builds.html)

    From the root of your Android tree, run these commands, altering the subject line to reflect your information:
    Bash:
    subject='/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com'
    
    cd ~/android/build/src
    for x in releasekey platform shared media networkstack testkey; do \
        ./development/tools/make_key ~/android/build/keys/$x "$subject"; \
    done
    make a copy of the “keys” directory and keep it safe.

    7. Install docker and get docker-lineage-cicd image:

    You can use lineaos4microg : https://hub.docker.com/r/lineageos4microg/docker-lineage-cicd/Dockerfile
    Bash:
    docker pull lineageos4microg/docker-lineage-cicd

    Or

    I also re-write my own docker image to add some options. You can try: https://hub.docker.com/r/pakaoraki/docker-lineage-cicd
    Bash:
    docker pull pakaoraki/docker-lineage-cicd

    8. Then you are ready to build:

    Execute this command (change pakaoraki/docker-lineage-cicd with lineaos4microg/docker-lineage-cicd if needed)

    Bash:
    docker run \
    -e "BRANCH_NAME=lineage-18.1" \
    -e "DEVICE_LIST=starlte" \
    -e "INCLUDE_PROPRIETARY=false" \
    -e "SIGN_BUILDS=true" \
    -v "~/android/build/src:/srv/src" \
    -v "~/android/build/zips:/srv/zips" \
    -v "~/android/build/logs:/srv/logs" \
    -v "~/android/build/ccache:/srv/ccache" \
    -v "~/android/build/keys:/srv/keys" \
    -v "~/android/build/manifests:/srv/local_manifests" \
    pakaoraki/docker-lineage-cicd

    9. When build is done, create a new release on your OTA repo: choose a tag and upload recovery.img and zips file.

    you will need to create a starlte.json that match to your build and release information:
    Code:
    {
       "response": [
          {
             "datetime": 1627204505,
             "filename": "lineage-18.1-20210725-UNOFFICIAL-starlte.zip",
             "id": "39b85208c5c30edfafd983673a703d60",
             "romtype": "UNOFFICIAL",
             "size": 608774193,
             "url": "https://github.com/<username>/OTA/releases/download/<tag>/lineage-18.1-20210725-UNOFFICIAL-starlte.zip",
             "version": "18.1"
          }
       ]
    }

    <tag>: the tag you use when creating the release on Github.
    <username>: your username.

    Then, upload starlte.json to your OTA repository.

    It's possible that I forget something but you get the global idea.
    4

    @ElPakoTech

    Thanks for your work!
    I will test the build and give you feedback.

    Nice , if we have a maintained LOS with current security patches.
    Have you a paypal adress, that i can buy you a beer?

    Regards
    dreas
    I will do my own build anyway if there is no official support so I'm happy to share it. No need to tips but thanks :)
    4
    5th July security update ready on this build if you are compiling your own.
    How to check when its available besides going thru the make process and checking
    ~/android/build/core/version_defaults.mk
    once complete for the security update date ?

    Also checking the
    //source.android.com/security/bulletin
    for the monthly date and
    https://lineageos.org/blog/
    changelog
    isnt helpful. How to know what patch is ready to build before I go thru the whole process ???

    Need to keep the device patched to the latest at all times to be able to use as a daily for work :p
    To check for security update version of Lineage 18.1 before building your own: https://github.com/LineageOS/android_build/blob/lineage-18.1/core/version_defaults.mk#L243

    There is a build with July security update and an upstreamed kernel here: https://xdaforums.com/t/rom-s9-s9-unofficial-lineageos-18-1-weekly.4302901/

    I am upstreaming the kernel daily and building these new builds daily as well.
    4
    Don't mean to be a jerk, simply stating my choices. The person who made this unoffical rom has been online several days this past week and has given us zero communication on future updates.

    I'll be heading to arrow os soon.
    In open source nobody owes anything to anyone. People are working in their free time. Which is kind of obvious.