[ROM][UNOFFICIAL][S20,S20U][120hz] - LineageOS 17.1

Search This thread

jimbo77

Inactive Recognized Contributor
Nov 2, 2010
2,191
2,944
Guatemala
Samsung Galaxy S23 Ultra
https%3A%2F%2Fimg.xda-cdn.com%2FXqSk-0HKYC2crjXpdeIYJelltKQ%3D%2Fhttps%253A%252F%252Fi.imgur.com%252F2okPze5.png


Code:
#include <std_disclaimer.h>

/*
 * Your warranty is now void.
 *
 * We are not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at us for messing up your device, we will laugh at you.
 *
 */

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.

Base source code is available in the LineageOS Github Repo

Instructions:

  • TWRP or LineageOS Recovery
  • Make sure you flash any stock OneUI 2.1 ROM. This is mandatory otherwise several errors are expected.
  • Download your phone build. S20 - x1q, S20U - z3q
  • In TWRP wipe data and flash the ROM
  • Additionally you might flash OpenGapps

What's working:

  • Wifi
  • Camera
  • Audio
  • Bluetooth
  • NFC
  • FingerPrint
  • High Refresh Rate (120hz)
  • GPS
  • Video Playback
  • RIL

Known issues:

You tell me

Downloads:

You can find the downloads in the folder below:

ANDROIDFILEHOST

Thanks to:
@chongodroid for testing the changes for x1q and building for s20.
@jesec for all of his work. The ROM is based completely off Jese's trees and kernels with modifications made to force it run in FHD@120hz. Go ahead and thank him, donate to him because none of this would have been possible without his work.

Source code:

Device Trees:
x1q - https://github.com/ChongoDroid/android_device_samsung_x1q
z3q - https://github.com/Jimbo77/android_device_samsung_z3q
Samsung Common - https://github.com/Jimbo77/android_device_samsung_sm8250-common
Kernel:
Kernel - https://github.com/Jimbo77/android_kernel_samsung_sm8250
Base:
LineageOS - https://github.com/LineageOS

Donations are not required but are encouraging, If want to support my work just click HERE

XDA:DevDB Information
[ROM][UNOFFICIAL][S20,S20U][120hz] - LineageOS 17.1, ROM for the Samsung Galaxy S20

Contributors
jimbo77, chongodroid, jesec
Source Code: https://github.com/Jimbo77/android_kernel_samsung_sm8250

ROM OS Version: Android 10
ROM Kernel: Linux 4.x
ROM Firmware Required: Samsung UI 2.1 Vendor
Based On: LineageOS

Version Information
Status: Beta

Created 2020-11-09
Last Updated 2020-11-09
 
Last edited:

jimbo77

Inactive Recognized Contributor
Nov 2, 2010
2,191
2,944
Guatemala
Samsung Galaxy S23 Ultra
Reserved

If you also want to run LOS with a Custom Kernel, you may also install the Custom Kernel below:

JimboK-LOS KERNEL

Features:

  • Several EAS commits for balancing power+efficiency
  • Fsync On/Off Toggle
  • Dynamic Sync Control
  • SLIMBUS OC to improve the Audio Mods
  • BBR2 TCP Congestion algorithm by Default
  • Added IO-SCHED drivers like: ZEN, FIOPS, MAPLE etc...
  • KLAPSE Driver (check out https://forum.xda-developers.com/and...odule-t3907025)
  • KCAL Color Control Driver (Up to date)
  • Boeffla Wakelock Blocker Driver
  • Adreno Boost
  • Enabled a few drivers inside of Kernel: CDC, NTFS, CIFS and some native gaming devices as well
  • Added and Enabled HID: NINTENDO SWITCH controllers support
  • Enabled ZSTD Compression, it is recommended to enable this for ZRAM moving forward
  • Disabled LZO, updated LZ4 compression algorithms
  • Several Upstreams to NET/TCP in order to improve Network Connectivity and Speed.
  • Added a fix to hide Magisk Mount for Isolated Processes. This is a critical leak in MagiskHide that can be exploited by apps trying to determine if the device is rooted. I had an issue with two payment apps that after applying this fix, they work. Not sure if they were finding magisk with this method lol. Read more here https://darvincitech.wordpress.com/2...g-magisk-hide/
 
Last edited:

keaheng

Senior Member
Feb 19, 2013
467
199
Cambodia
Yes we just need a tester. Neither @ChongoDroid or I own a S20+ so the support in kernel is there but need testers
I own the s20+ G986U1. I think i can help.

---------- Post added at 10:24 AM ---------- Previous post was at 10:23 AM ----------

It should work though on s20+, I wonder if FHD density is the same as ultra. Also finger print placement might need testing.
You mean i can try the ultra version on my plus?
 

ChongoDroid

Senior Member
Jul 29, 2010
6,294
2,960
Vancouver
Google Pixel 4
Google Pixel 4 XL
I own the s20+ G986U1. I think i can help.

---------- Post added at 10:24 AM ---------- Previous post was at 10:23 AM ----------


You mean i can try the ultra version on my plus?
No no, I mean you could build lineage with our code for S20+ and it'd flash and work fine.

We've only been building for our devices but the trees from lineage have support for S20+.

We'll think about it, maybe I'll build an alpha build for S20+ and see if how it is.
 

jimbo77

Inactive Recognized Contributor
Nov 2, 2010
2,191
2,944
Guatemala
Samsung Galaxy S23 Ultra
I own the s20+ G986U1. I think i can help.

---------- Post added at 10:24 AM ---------- Previous post was at 10:23 AM ----------


You mean i can try the ultra version on my plus?

No. That's not gonna work, it won't boot. What he says is we can build with the same parameters since we are forcing FHD@120 the resolution and assets need to be adjusted.

Jesse's trees are configured to build at WQHD@60hz so we need yo move stuff around to make it work at FHD+
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    https%3A%2F%2Fimg.xda-cdn.com%2FXqSk-0HKYC2crjXpdeIYJelltKQ%3D%2Fhttps%253A%252F%252Fi.imgur.com%252F2okPze5.png


    Code:
    #include <std_disclaimer.h>
    
    /*
     * Your warranty is now void.
     *
     * We are not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at us for messing up your device, we will laugh at you.
     *
     */

    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.

    Base source code is available in the LineageOS Github Repo

    Instructions:

    • TWRP or LineageOS Recovery
    • Make sure you flash any stock OneUI 2.1 ROM. This is mandatory otherwise several errors are expected.
    • Download your phone build. S20 - x1q, S20U - z3q
    • In TWRP wipe data and flash the ROM
    • Additionally you might flash OpenGapps

    What's working:

    • Wifi
    • Camera
    • Audio
    • Bluetooth
    • NFC
    • FingerPrint
    • High Refresh Rate (120hz)
    • GPS
    • Video Playback
    • RIL

    Known issues:

    You tell me

    Downloads:

    You can find the downloads in the folder below:

    ANDROIDFILEHOST

    Thanks to:
    @chongodroid for testing the changes for x1q and building for s20.
    @jesec for all of his work. The ROM is based completely off Jese's trees and kernels with modifications made to force it run in FHD@120hz. Go ahead and thank him, donate to him because none of this would have been possible without his work.

    Source code:

    Device Trees:
    x1q - https://github.com/ChongoDroid/android_device_samsung_x1q
    z3q - https://github.com/Jimbo77/android_device_samsung_z3q
    Samsung Common - https://github.com/Jimbo77/android_device_samsung_sm8250-common
    Kernel:
    Kernel - https://github.com/Jimbo77/android_kernel_samsung_sm8250
    Base:
    LineageOS - https://github.com/LineageOS

    Donations are not required but are encouraging, If want to support my work just click HERE

    XDA:DevDB Information
    [ROM][UNOFFICIAL][S20,S20U][120hz] - LineageOS 17.1, ROM for the Samsung Galaxy S20

    Contributors
    jimbo77, chongodroid, jesec
    Source Code: https://github.com/Jimbo77/android_kernel_samsung_sm8250

    ROM OS Version: Android 10
    ROM Kernel: Linux 4.x
    ROM Firmware Required: Samsung UI 2.1 Vendor
    Based On: LineageOS

    Version Information
    Status: Beta

    Created 2020-11-09
    Last Updated 2020-11-09
    2
    New build would be nice to try out.

    @jimbo77 If you have some spare time, could you make one please? :)
    2
    Thanks @jimbo77, in case others find it useful, I flashed LineageOS on my G986U1 using this sequence:
    • Flashed stock firmware from samfw version G986U1UEU1ATG2 to go back to OneUI 2.1. My phone was on G986U1UES1BTIG. Pay attention to the CSC shown on Download mode. My System showed LRA but Download mode showed XAA and I used XAA.
    • Unlocked bootloader and flashed TWRP as I described here.
    • Boot to recovery, moved lineage zip file from OP to sdcard and moved pico opengapps.
    • Flashed lineage zip file followed by opengapps from TWRP.
    • Wipe cache, data and dalvik
    • Reboot
    Things look good as of now, I will use this as daily driver and report if I notice any issues.
    Following are the issues I noticed:
    1. My Voice call quality is not great. First few seconds of the call I am not able to hear the other side and vice versa, then it gets better but still randomly flaky. I have tried using LTE network type rather than 5G but no noticeable difference. Has any one run into this and fixed it ?
      1. Worth mentioning that Wifi calls (whatsapp, signal) work fine and worth mentioning that I installed Lineage as soon as I got the phone, did not try Stock at all. So not sure if the issue is hardware or software.
      2. I tried building the latest sources hoping that it might solve the issue, but ran into build errors. Not sure what I am doing wrong (this is the first time I am building an unofficial device). I did the following
        1. repo init
        2. repo sync
        3. breakfast y2q
        4. updated the .repo/local_manifests/roomservice.xml to point to Jimbo77/android_device_samsung_y2q, Jimbo77/[email protected], Jimbo77/android_device_samsung_sm8250-common
        5. repo sync
        6. breakfast y2q
        7. brunch y2q
    2. Screen keeps flashing and jumping at times. More often than not, I get flashing and jumping when I use Firefox, so it could be how Firefox uses graphics layer. Anyone ran into this and fixed it ?
      1. If I close Firefox and reopen, then it works for some time.
    2
    Just wanted to confirm this is working great on my Galaxy S20 (SM-G981U1). Everything including fingerprint reader and cameras work great, after I followed these steps.
    • Unlock bootloader
    • Reboot into download mode (vol up + vol down + power)
    • Flash stock OneUI 2.1 firmware (from mid 2020) using Odin to have a clean base, include vbmeta_disabled in USERDATA slot
    • Boot and skip through initial setup
    • Reboot back into download mode
    • Flash TWRP using Odin, in AP slot
    • Immediately press and hold vol up + power to boot into TWRP recovery
    • Wipe -> format data to get rid of disk encryption
    • Install this rom, Open GApps nano, multidisabler (see twrp thread), and Magisk
    • Boot and do initial setup
    • Pass SafetyNet: Use MagiskHide props config to edit device fingerprint and force basic key attestation - I used the "S20 FE 5G" device for both
    • Install GCam (Wichaya's version, with the samsung package name)
    Thanks @jimbo77 for providing this rom, and everyone else who worked on it.

    I've noticed that battery life isn't as good as the stock firmware, but I haven't identified exactly what is causing it. I've disabled always on display and it helps.
    1
    I've been having issues with the fingerprint reader and the camera not opening from some apps. Everything else that I've tested has been working fine.

    Can you please confirm that I followed the process correctly before I dig too much deeper into the issue? Here's what I've done so far (I've done it from scratch a few times now):
    1. (I have a SM-G981U1)
    2. From TWRP recovery, Wipe --> Format Data
    3. Reboot into Download mode
    4. Using Odin, flash BL + AP + CP + CSC (from HOME_CSC) from "[up_vnROM.net]_G981U1UEU1ATBN_G981U1OYM1ATBN_XAA_10.0_FULL.zip", with USERDATA set to vbmeta_disabled.tar
      1. I've previously confirmed that, when setting up the phone after this step, Settings claims that we're on OneUI 2.1.
    5. Before the phone is able to reboot into the Samsung ROM, get it into Download mode again
    6. Using Odin, flash TWRP recovery in the AP slot (and vbmeta_disabled.tar in the USERDATA slot... guessing this is probably unnecessary here, but *shrugs*)
    7. Before the phone is able to reboot into the Samsung ROM, get it into TWRP recovery
    8. adb push lineage-17.1-20201107-UNOFFICIAL-x1q.zip /sdcard
    9. Install it using TWRP
    10. Reboot into recovery
    11. adb push open_gapps-arm64-10.0-nano-20201205.zip /sdcard
    12. Reboot into the system proper for the first time
    13. Follow the setup instructions on the screen
    When following that process, I observe the following:
    1. The fingerprint setup fails, with the error message: "Enrollment was not completed / Fingerprint enrollment didn't work. Try again or use a different finger.". After this, I must pretend like I'm setting it up again and then click "Skip", otherwise a fingerprint icon stays on my screen indefinitely.
    2. When opening the camera through an app (other than the built-in Camera app or Google's Camera app), the preview window either sticks on a black screen or a still frame of what it saw initially. Tested with the QR code scanner in Google Authenticator (black frame), Amazon Shopping's camera search (still frame), and ZXing's Barcode Scanner app (still frame).