[ROM][UNOFFICIAL][RAMDISK][11] LineageOS 18.1 for Galaxy S10e/S10/S10+/S10 5G Exynos

Search This thread

Keule-Tm

Senior Member
Oct 3, 2016
346
135
Berlin
Samsung Galaxy S10
Last edited:

kybsmds

Member
Mar 20, 2021
9
2
Hi, new user here.

I'm new to LineageOS and I'd like to give this ROM a try.

I have an S10 straight out of the box with factory defaults, running stock android 11, One UI 3.1 and firmware G973FXXU9FUBD.

I'm on Ubuntu so I don't have Odin. I have heimdall installed but have no idea how to use it. I also have downloaded the three files instructed in the first posts (the vbmeta.img, recovery.img and the actual LineageOS.zip) onto my laptop but again I'm not familiar with flashing recovery files or even sideloading the actual ROM.

Are there any step-by-step instructions available how to do a complete first time installation of this ROM without Odin and on Ubuntu? By this I really mean intstructions on when to press which button on the phone, when to connect and disconnect the usb cable, when to perform the factory resets and data wiping and the complete commands needed and all this in the right sequence.

I was able to complete the pre-install instructions so the OEM is unlocked :)

Thanks, and thanks for the work on a secure ROM.
 

flortsch

Member
Sep 10, 2014
34
29
Linz
florian-latifi.at
Hi, new user here.

I'm new to LineageOS and I'd like to give this ROM a try.

I have an S10 straight out of the box with factory defaults, running stock android 11, One UI 3.1 and firmware G973FXXU9FUBD.

I'm on Ubuntu so I don't have Odin. I have heimdall installed but have no idea how to use it. I also have downloaded the three files instructed in the first posts (the vbmeta.img, recovery.img and the actual LineageOS.zip) onto my laptop but again I'm not familiar with flashing recovery files or even sideloading the actual ROM.

Are there any step-by-step instructions available how to do a complete first time installation of this ROM without Odin and on Ubuntu? By this I really mean intstructions on when to press which button on the phone, when to connect and disconnect the usb cable, when to perform the factory resets and data wiping and the complete commands needed and all this in the right sequence.

I was able to complete the pre-install instructions so the OEM is unlocked :)

Thanks, and thanks for the work on a secure ROM.
1) put phone into download mode
For this, press Volume Down + Bixby Button while plugging in a USB cable between your Laptop and your Phone. When the phone has booted into download mode, press volume up to allow flashing.

2) flash recovery
Run this command on your laptop: sudo heimdall flash --RECOVERY recovery.img --VBMETA vbmeta.img --no-reboot

Note: the --no-reboot flag is important, so you have the chance to manually reboot your phone into recovery mode after flashing, otherwise, the system restores the original recovery.

3) manually reboot into recovery (this is a little bit tricky)
When flashing has finished, remove the USB cable. Next, hold Volume Down + Bixby + Power Button to reboot the device. When the device shuts down, hold Volume Up + Bixby while plugging back in the USB cable. When the device turns on, release the buttons, and wait for the device to go into the Lineage OS recovery.

4) follow the remaining instructions as shown in the second post on this thread
To perform a side load, run adb sideload the-zip-you-want-to-install.zip
 

kybsmds

Member
Mar 20, 2021
9
2
1) put phone into download mode
For this, press Volume Down + Bixby Button while plugging in a USB cable between your Laptop and your Phone. When the phone has booted into download mode, press volume up to allow flashing.

2) flash recovery
Run this command on your laptop: sudo heimdall flash --RECOVERY recovery.img --VBMETA vbmeta.img --no-reboot

Note: the --no-reboot flag is important, so you have the chance to manually reboot your phone into recovery mode after flashing, otherwise, the system restores the original recovery.

3) manually reboot into recovery (this is a little bit tricky)
When flashing has finished, remove the USB cable. Next, hold Volume Down + Bixby + Power Button to reboot the device. When the device shuts down, hold Volume Up + Bixby while plugging back in the USB cable. When the device turns on, release the buttons, and wait for the device to go into the Lineage OS recovery.

4) follow the remaining instructions as shown in the second post on this thread
To perform a side load, run adb sideload the-zip-you-want-to-install.zip

Thanks for the quick reply. This was exactly what I was looking for. With these instructions I understood what I was supposed to do and managed to flash the recoveries and install the actual ROM in one go. Neat!

The ROM is smooth and will be my daily driver. Thanks to the developer(s)!

It might be a good idea to add or integrate the above instructions also into the second post with perhaps a subtitle for linux users.
 

exaveal

Senior Member
Aug 10, 2015
103
17
Samsung Galaxy S10e
I'm currently running Ivan's LOS build and want to switch to this one here.
1. I have already TWRP installed, is this a problem?
2. As there are no stable Gapps and I want to switch to MicroG since long time: Is it possible to use MicroG, and is there a guide (for not experienced user like me) how to do for this ROM?
 

Jeronim0h

Member
Jan 25, 2021
8
0
Samsung Galaxy S10+
Requirements:
  • Any Q or R based firmware installed on your device.

Pre-Install Instructions

Warning: The following instructions will unlock the bootloader and wipe all userdata on the device.

  1. Connect the device to a Wi-Fi network.
  2. Enable Developer Options by pressing the “Build Number” option in the “Settings” app within the “About” menu
    • From within the Developer options menu, enable OEM unlock.
  3. Power off the device, and boot it into download mode:
    • With the device powered off, hold Volume Down + Bixby and connect USB cable to PC.
    • Now, click the button that the onscren instructions coorelate to “Continue” and/or “Unlock Bootloader”.
  4. Your device will reboot, you may now unplug the USB cable from your device.
  5. The device will demand you format userdata, please follow the onscreen instructions to do so.
  6. Run through Android Setup skipping everything you can, then connect the device to a Wi-Fi network.
  7. Re-enable Development settings by clicking the “Build Number” option 10 times, in the “Settings” app within the “About” menu, and verify that “OEM Unlock” is still enabled in the “Developer options” menu.

Installing LineageOS for the first time
  1. Flash lineage recovery and a disabled vbmeta image
    Only the provided lineage recovery will be supported,
    using TWRP might result in a possible data loss!!

    If using Odin rename the lineage recovery image for your model to recovery.img and add it to a .tar archive using e.g 7zip
    together with a disabled vbmeta image.
    If using Heimdall use: heimdall flash --RECOVERY recovery.img --VBMETA vbmeta.img --no-reboot
    You can find a disabled vbmeta image attached to this post.
  2. Boot lineage recovery
    IMPORTANT: Do not boot into system again before booting recovery, or system will restore stock recovery!
    If using Odin untick auto-reboot before flashing.
    After flashing reboot by pressing Volume Down and Power for approximately 7 seconds,
    immediately hold Volume Up, Bixby and Powe to boot recovery
    IMPORTANT: As of OneUI 3 your device needs to be connected to a PC via USB cable in order to be able to
    boot recovery via Volume Up, Bixby and Power.
  3. Factory reset using Factory reset -> Format data/factory reset
    Warning: Unlike TWRP this will also erase internal storage!
  4. Sideload LineageOS by enabling sideload via Apply Update -> Apply from ADB
    Then run adb sideload <path to your lineage.zip> on your PC
    Optional:
  5. Sideload GApps and magisk by repeating above step
    with their zip/apk

Magisk
As this ROM has a working ramdisk sideloading the magisk apk is enough, just as it is
on every other device, no bootimage with magisk included or installing to recovery is needed!

I'm currently running Ivan's LOS build and want to switch to this one here.
1. I have already TWRP installed, is this a problem?
2. As there are no stable Gapps and I want to switch to MicroG since long time: Is it possible to use MicroG, and is there a guide (for not experienced user like me) how to do for this ROM?

Twrp make problems with selinux & fde
 

exaveal

Senior Member
Aug 10, 2015
103
17
Samsung Galaxy S10e
Thx for the info! So as I am not that expert: Is this how I have to go forward coming from TWRP+LOS from Ivan to go to this build:
  1. With Odin flash lineage-18.1-20210415-recovery-beyond0lte.img and vbmeta.img (with untick auto-reboot)
  2. Boot Recovery
  3. Factory reset using Factory reset in Recovery -> Format data/factory reset
  4. In Recovery (if possible?) flash lineage-18.1-20210415-UNOFFICIAL-beyond0lte from sdcard
  5. In Recovery (if possible?) flash spoof_s10e.zip to enable signature spoofing (is necessary for microg?!)
  6. In Recovery (if possible?) flash Magisk-v22.0.apk
  7. do something to install MicroG ?!
  8. Boot to LineageOS

Would be very glad to get some advice and best practice. Thanks!
 

Spyop3

Member
Jun 29, 2010
24
8
Thx for the info! So as I am not that expert: Is this how I have to go forward coming from TWRP+LOS from Ivan to go to this build:
  1. With Odin flash lineage-18.1-20210415-recovery-beyond0lte.img and vbmeta.img (with untick auto-reboot)
  2. Boot Recovery
  3. Factory reset using Factory reset in Recovery -> Format data/factory reset
  4. In Recovery (if possible?) flash lineage-18.1-20210415-UNOFFICIAL-beyond0lte from sdcard
  5. In Recovery (if possible?) flash spoof_s10e.zip to enable signature spoofing (is necessary for microg?!)
  6. In Recovery (if possible?) flash Magisk-v22.0.apk
  7. do something to install MicroG ?!
  8. Boot to LineageOS

Would be very glad to get some advice and best practice. Thanks!

That's the step I did. Except I used "adb sideloading" command to flash the rom the spoof and magisk. You can check online how to setup adb it's very convenient and easy

7 Just launch MicroG and give all the permission it asks for
 

exaveal

Senior Member
Aug 10, 2015
103
17
Samsung Galaxy S10e
Okay, I'll check the adb sideloading, but I have already tried it in the past and had problems to use it (perhaps more on the Linux Terminal side ...)
Reagrding MicroG: Can you explain what exactly means "launch MicroG"? There are so many souces, I'm not clear where to download. is MicroG also just a apk? Or where do I get it?
 

Keule-Tm

Senior Member
Oct 3, 2016
346
135
Berlin
Samsung Galaxy S10
Okay, I'll check the adb sideloading, but I have already tried it in the past and had problems to use it (perhaps more on the Linux Terminal side ...)
Reagrding MicroG: Can you explain what exactly means "launch MicroG"? There are so many souces, I'm not clear where to download. is MicroG also just a apk? Or where do I get it?
MicroG is a bunch of apps (3 for the main functionality, at least 2 more for location service). Most convenient way to set it up (IMHO) is flashing NanoDroid zips.
 
  • Like
Reactions: Spyop3

exaveal

Senior Member
Aug 10, 2015
103
17
Samsung Galaxy S10e
OKay, adb works. I was able to flash lineage-18.1-20210415-UNOFFICIAL-beyond0lte.zip but when flashing spoof_s10e.zip directly after it asks says Signature verification failed, Install anyway? I say yes and then it says on the phone: E.Error in /sideload/package.zip (status 1)
 

Spyop3

Member
Jun 29, 2010
24
8
OKay, adb works. I was able to flash lineage-18.1-20210415-UNOFFICIAL-beyond0lte.zip but when flashing spoof_s10e.zip directly after it asks says Signature verification failed, Install anyway? I say yes and then it says on the phone: E.Error in /sideload/package.zip (status 1)

Sounds like bad download you should try again

The signature fails is normal as you did not provide signature to check. I usually just say yes and it install
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    I managed to patch the system in order to enable signature spoofing for MicroG by following this guide. Here is a zip file I created for my s10e with a patched services.jar one must flash via Magisk.

    With the latest update of the ROM I get stuck on loading lineage screen with this module activated in Magisk maybe need an update

    @flortsch Do you have the same problem ?

    If you have same problem you can try this version I just made based on @flortsch linked tuto

    And it works fine for me :)
    1
    Well this just got weird. It seems that youtube music (vanced) is removed (as in uninstalled/gone) after such a reboot happens. This does not happen if i manually reboot.

    The reset reason is also system_server...

    The first would hint at a root/vanced issue, but the latter more LOS. Weird stuff. Anyone got some thoughts on this?

    Edit: appears that this is a known bug that should've been fixed, but the fix probably didn't account for this type of reboot. Also happens without vanced installed. I'm just going to hope it doesn't happen when I get a call...
    Instead of youtube/vanced you can give NewPipe a try - from FDroid store. It offers a lot of good OSS stuff.
    1
    @Linux4 Would you be so kind to post your roomservice.xml? I'd like to use your repository to try building LOS18 myself. Thank you!
    Code:
    <project name="LineageOS/android_device_samsung_slsi_sepolicy" path="device/samsung_slsi/sepolicy" remote="github" revision="lineage-18.1" />
    <project name="LineageOS/android_hardware_samsung" path="hardware/samsung" remote="github" revision="lineage-18.1" />
    <project name="LineageOS/android_hardware_samsung_nfc" path="hardware/samsung/nfc" remote="github" revision="lineage-18.1" />
    
    <project name="exynos9820-dev/android_device_samsung_beyond1lte" path="device/samsung/beyond1lte"  remote="github" revision="lineage-18.1" />
    <project name="exynos9820-dev/android_device_samsung_exynos9820-common" path="device/samsung/exynos9820-common" remote="github" revision="lineage-18.1" />
    <project name="exynos9820-dev/android_kernel_samsung_exynos9820" path="kernel/samsung/exynos9820" remote="github" revision="lineage-18.1" />
    1
    Great,

    Thank you! Question: How do you include vendor files from android_vendor_samsung_exynos9820-common? I dont want to pull those files from the phone but from the repository instead. Any idea on that?

    Just add add the vendor repos for the devices you need to the roomservice.xml like this:
    XML:
        <project name="exynos9820-dev/android_vendor_samsung_beyond1lte" path="vendor/samsung/beyond1lte" remote="github" revision="lineage-18.1" />
        <project name="exynos9820-dev/android_vendor_samsung_exynos9820-common" path="vendor/samsung/exynos9820-common" remote="github" revision="lineage-18.1" />
    1
    @Linux4 I took your 18.1 branch and built the rom myself. Its security patch level is still May. I can see that you updated your 18.1-experimental branch which includes security patch level June and also a newer kernel. Is it safe to pull and build your experimental branch or would I run into problems doing so?
    You would break at least camera by doing so
    Should be safe to use lineage-18.1-testing tho (which already includes june secpatch too, experimental is for some other stuff)
  • 31
    1607247455067.png


    LineageOS is a free, community built, aftermarket firmware distribution of Android 11, which is designed to increase performance and reliability over stock Android for your device.

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

    Instructions:
    • Follow the instructions here

    Downloads:

    Reporting Bugs
    • DO NOT Report bugs if you're running a custom kernel or you installed Xposed
    • DO NOT Report bugs if you're using TWRP
    • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
    • If it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
    • If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log

    Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

    Code:
    What is your--
    LineageOS version:
    LineageOS Download url:
    Gapps version:
    
    Did you--
    wipe:
    restore with titanium backup:
    reboot after having the issue:
    
    Are you using--
    a task killer:
    a non-stock kernel:
    other modifications:
    
    Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:


    Support
    Telegram group

    Contributors
    Linux4
    Source Code: https://github.com/exynos9820-dev
    12
    Features

    • SELinux enforcing
    • AES-256-XTS FBE encryption
    • Latest Linux 4.14.x kernel
    • All cameras are working
    • Ramdisk is working

    Known issues

    • Miracast not working (Google removed it in AOSP Pie)
    • VoLTE/VoWiFi
    • You tell me
    9
    Requirements:
    • Any Q or R based firmware installed on your device.

    Pre-Install Instructions

    Warning: The following instructions will unlock the bootloader and wipe all userdata on the device.

    1. Connect the device to a Wi-Fi network.
    2. Enable Developer Options by pressing the “Build Number” option in the “Settings” app within the “About” menu
      • From within the Developer options menu, enable OEM unlock.
    3. Power off the device, and boot it into download mode:
      • With the device powered off, hold Volume Down + Bixby and connect USB cable to PC.
      • Now, click the button that the onscren instructions coorelate to “Continue” and/or “Unlock Bootloader”.
    4. Your device will reboot, you may now unplug the USB cable from your device.
    5. The device will demand you format userdata, please follow the onscreen instructions to do so.
    6. Run through Android Setup skipping everything you can, then connect the device to a Wi-Fi network.
    7. Re-enable Development settings by clicking the “Build Number” option 10 times, in the “Settings” app within the “About” menu, and verify that “OEM Unlock” is still enabled in the “Developer options” menu.

    Installing LineageOS for the first time
    1. Flash lineage recovery and a disabled vbmeta image
      Only the provided lineage recovery will be supported,
      using TWRP might result in a possible data loss!!

      If using Odin rename the lineage recovery image for your model to recovery.img and add it to a .tar archive using e.g 7zip
      together with a disabled vbmeta image.
      If using Heimdall use: heimdall flash --RECOVERY recovery.img --VBMETA vbmeta.img --no-reboot
      You can find a disabled vbmeta image attached to this post.
    2. Boot lineage recovery
      IMPORTANT: Do not boot into system again before booting recovery, or system will restore stock recovery!
      If using Odin untick auto-reboot before flashing.
      After flashing reboot by pressing Volume Down and Power for approximately 7 seconds,
      immediately hold Volume Up, Bixby and Power to boot recovery
      IMPORTANT: As of OneUI 3 your device needs to be connected to a PC via USB cable in order to be able to
      boot recovery via Volume Up, Bixby and Power.
    3. Factory reset using Factory reset -> Format data/factory reset
      Warning: Unlike TWRP this will also erase internal storage!
    4. Sideload LineageOS by enabling sideload via Apply Update -> Apply from ADB
      Then run adb sideload <path to your lineage.zip> on your PC
      Optional:
    5. Sideload GApps and magisk by repeating above step
      with their zip/apk

    Magisk
    As this ROM has a working ramdisk sideloading the magisk apk is enough, just as it is
    on every other device, no bootimage with magisk included or installing to recovery is needed!
    7
    LOS 18.1 for our S10 device? SELinux enforcing? FBE? Open-source device tree? Where can I donate for this awesome work?
    6
    Update on feedback on the ROM, its been a couple of days, and this is easily my daily driver. Only issue I encountered was through Gapps not having the dialer app set as the default. Bizarrely the dialer was still semi functional. The finger print sensor is now fixed as well.

    This is a an easy successor to ModPunks great work, and I hope that Linux4 finds the time to become a maintainer for our device. Thanks for the great work