[ROM][10.0][OneUI-2.5][UNOFFICIAL][EOL]LineageOS-17.1 for samsung M51 - Final

Search This thread

myghi63

Member
Feb 7, 2020
49
18
if i flash this rom then back to stock, dual apps feature will not work?
I will test it right now, then I'll flash the newest lineage rom to see if the recording problem is fixed or not. I hope i'm wrong about the dual apps feature. (Spoiler that everyone knows: I was wrong.)
 
Last edited:

myghi63

Member
Feb 7, 2020
49
18
Proximity is partially broken. the screen doesn't turn back on until the call ends.
Adaptive brightness is working, but it takes a few seconds until it detects the light changes.
for the screen recorder, did this problem appear in the latest build or all the builds?
For network doesn't reach LTE make sure that in network settings that the preferred network type is LTE
So I installed the latest build to confirm and yes, it seems like all your builds are lagging while recording the screen, no matter what screen recorder I use. All the major animations seems to be lagging so much, and if you go to the developer options -> show taps, EVERYTHING lags, like 20fps.
My workaround for this: I'm now using KISS launcher, which is very light on GPU resources, and I disabled all the animations (I do this on basically all my devices), so the recordings are now acceptable.
Thank you a lot for fixing offline charging and gapps!
On my device (M515FXXU1BTK4) the speaker sound is a little bit louder now, not too much improvement but thanks again!
I also found a Dolby Atmos that works for this rom, on a telegram group for A10 devices. I coudn't find who actually created this (no one on this group knows), and I don't know how to create a thread about that, so i'm attaching the .zip here. Please make a thread about that!
 

Attachments

  • DolbyAtmos-Razer2.zip
    6.3 MB · Views: 10
  • Like
Reactions: Rijanrijan

LehKeda

Senior Member
Jan 26, 2014
768
671
My little cave
So I installed the latest build to confirm and yes, it seems like all your builds are lagging while recording the screen, no matter what screen recorder I use. All the major animations seems to be lagging so much, and if you go to the developer options -> show taps, EVERYTHING lags, like 20fps.
My workaround for this: I'm now using KISS launcher, which is very light on GPU resources, and I disabled all the animations (I do this on basically all my devices), so the recordings are now acceptable.
Thank you a lot for fixing offline charging and gapps!
On my device (M515FXXU1BTK4) the speaker sound is a little bit louder now, not too much improvement but thanks again!
I also found a Dolby Atmos that works for this rom, on a telegram group for A10 devices. I coudn't find who actually created this (no one on this group knows), and I don't know how to create a thread about that, so i'm attaching the .zip here. Please make a thread about that!
Thank you very much for testing the ROM. I'll try to figure out why the ROM is lagging while recording it.
I'll put dolby atoms in one of the reserved comments.
If you tried other mods that work without problems then please, post it here!
 
  • Love
Reactions: myghi63

kry52

Member
May 18, 2019
18
1
Unfortunately, the combo of Magisk and Gapps brings a reboot in 1 minute after OS login. I flashed the stock ROM via Odin and the current build after it and it didn't solve the problem either(
 
  • Sad
Reactions: myghi63

myghi63

Member
Feb 7, 2020
49
18

Attachments

  • Screenshot_20210202-093303_AIDA64.png
    Screenshot_20210202-093303_AIDA64.png
    253.8 KB · Views: 59
  • Like
Reactions: Rijanrijan

myghi63

Member
Feb 7, 2020
49
18
Unfortunately, the combo of Magisk and Gapps brings a reboot in 1 minute after OS login. I flashed the stock ROM via Odin and the current build after it and it didn't solve the problem either(
Please try installing it and then go to wipe -> format data, and then reboot.
Also, the "Magisk Hide" feature is incompatible with LineageOS, so if you're using it, the random reboot will probably be fixed if you disable that feature.
 
Last edited:
  • Like
Reactions: kry52

kry52

Member
May 18, 2019
18
1
Please try installing it and then go to wipe -> format data, and then reboot.
Also, the "Magisk Hide" feature is incompatible with LineageOS, so if you're using it, the random reboot will probably be fixed.

Of course, I format data every time I flash the rom supporting encryption. It is mandatory for any phone. Thank you for your advice about Magisk Hide, I'll definitely try it today, however, SafetyNet won't be passed without this option activated...
 
  • Like
Reactions: myghi63

myghi63

Member
Feb 7, 2020
49
18
Of course, I format data every time I flash the rom supporting encryption. It is mandatory for any phone. Thank you for your advice about Magisk Hide, I'll definitely try it today, however, SafetyNet won't be passed without this option activated...
If you find a way do make safetynet work without MagiskHide (since it does not work with lineage) or a way to make MagiskHide work properly, please tell us. I did never bother of that problem since I don't use gapps and DRM-based stuff, but I guess that a lot of people who use it will like.
 
Last edited:

myghi63

Member
Feb 7, 2020
49
18
I found a way to turn SELinux from "permissive" to "enforcing". It did not required any code modification, just configuration. I also noticed that the lowest frequency of both CPU and GPU was not the lowest that the chipset supports, which can decrease battery life without improving performance at all.
The way I found to fix these problems was using an open-source tool called "hKtweaks": https://github.com/corsicanu/hKtweaks/releases/
It does need root access (I'm using magisk for that). Open app -> Miscellaneous -> SELinux State -> Enforcing -> Apply on startup. The kernel already supports, it's just not enabled by default.
To save power without affecting performance, go to CPU -> Minimal CPU frequency -> 300MHz (both big and little cpu). Do the same on GPU at 180MHz (at least on snapdragon 730, probably will be the same on 730G).
I also set the CPU governator to "conservative", which can affect a little bit of performance in some scenarios, but also helps to save power.
 

LehKeda

Senior Member
Jan 26, 2014
768
671
My little cave
I found a way to turn SELinux from "permissive" to "enforcing". It did not required any code modification, just configuration. I also noticed that the lowest frequency of both CPU and GPU was not the lowest that the chipset supports, which can decrease battery life without improving performance at all.
The way I found to fix these problems was using an open-source tool called "hKtweaks": https://github.com/corsicanu/hKtweaks/releases/
It does need root access (I'm using magisk for that). Open app -> Miscellaneous -> SELinux State -> Enforcing -> Apply on startup. The kernel already supports, it's just not enabled by default.
To save power without affecting performance, go to CPU -> Minimal CPU frequency -> 300MHz (both big and little cpu). Do the same on GPU at 180MHz (at least on snapdragon 730, probably will be the same on 730G).
I also set the CPU governator to "conservative", which can affect a little bit of performance in some scenarios, but also helps to save power.
I can set SELinux to enforcing, but I left it permissive until we fix all selinux denials.
 

mWH4

New member
Feb 7, 2021
1
0
First of all, thank you @LahKeda for your efforts! Really appreciate this positive shift in M51 development. I'm looking forward to buying you a cup of coffee as soon as I get my salary later this month.

Secondly, how can the average user contribute to debugging? I'm about to make the jump from stock, though I hope VoLTE, in-call-Bluetooth and SELinux will soon be working as intended. What kind of information might be valuable to you (logs, ...)?

Lastly, how's everyone's performance and battery life compared to stock? Has it been comparable or even better?
 

Top Liked Posts

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



    This ROM will not be getting more updates or support

    LineageOS is a free, community built, aftermarket firmware distribution of Android 10, 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.

    Disclaimer

    Instructions :
    • Download the latest build and gapps
    • Reboot to TWRP
    • Do a factory rest
    • Flash the latest build
    • Flash proximity sensor fix uninstaller (You only need to flash it if you flashed Proximity sensor fix before. check here)
    • Flash gapps (Optional; Open Gapps Nano Recommened)
    • Reboot
    Downloads :
    1. TWRP
    2. LineageOS-17.1
    3. Proximity sensor fix uninstaller
    4. GAPPs
    Known Issues:
    • VoLTE (samsung Volte support is not ported to AOSP Yet)
    • Proximity Sensor
    • SElinux is permissive
    • FM radio
    • did you find any?
    Sources:
    Device tree
    Kernel tree

    Credits:
    dgattupalli - Initial build
    Michael Benedict - For S10 light initial device tree

    Version Information
    Status: Final​
    ROM OS Version: Lineage 17.1​
    Android Security Patch: 5th of February 2021​
    Vendor Security Patch: 1st of November 2020​
    4
    Change Log:
    23rd of February 2021:

    - Fix Bluetooth crashes when using Bluetooth audio devices
    - Fix Bluetooth in-call audio
    - Fix SELinux denials
    - Fix screen recorder lag
    - Enable LTE by default
    - Disable proximity HAL for now

    28th of January 2021:
    -
    Fix the problem if you flashed open gapps then flashed another ROM without flashing gapps, the new ROM won't boot unless you flash open gapps again
    - Fix Offline charging
    - Make audio as loud as the stock

    8th of January 2021:
    -
    Fix double tap to wake
    - Partially fix proximity sensor
    - Add hide notch option (Settings > Advanced > Developer options > Display cutout > hide)

    5th of January 2021:
    -
    Initial release
    2
    I found a way to turn SELinux from "permissive" to "enforcing". It did not required any code modification, just configuration. I also noticed that the lowest frequency of both CPU and GPU was not the lowest that the chipset supports, which can decrease battery life without improving performance at all.
    The way I found to fix these problems was using an open-source tool called "hKtweaks": https://github.com/corsicanu/hKtweaks/releases/
    It does need root access (I'm using magisk for that). Open app -> Miscellaneous -> SELinux State -> Enforcing -> Apply on startup. The kernel already supports, it's just not enabled by default.
    To save power without affecting performance, go to CPU -> Minimal CPU frequency -> 300MHz (both big and little cpu). Do the same on GPU at 180MHz (at least on snapdragon 730, probably will be the same on 730G).
    I also set the CPU governator to "conservative", which can affect a little bit of performance in some scenarios, but also helps to save power.
    1
    Reporting Bugs
    • DO NOT report bugs if you're running a custom kernel or you installed Xposed
    • 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:

    Are you using--
    a task killer:
    a non-stock kernel:
    other modifications:
    1
    I'm using this Rom, but for some reasons I want to back Samsung stock firmware. As you know the bootloader is unlocked, Is it possible flash it with odin or twrp? Help me please
    Download the stock firmware for your country from sammobile or any other website and flash it using odin then relock the bootloader by entering download mode then long press volum up button for 7 seconds then choose lock bootloader then reboot your device
    Note: you can find videos on YouTube for how to lock the bootloader and for flashing stock firmware for smasung devices