• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Search This thread

dadafarid

New member
Oct 4, 2021
2
0
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
 

LehKeda

Senior Member
Jan 26, 2014
753
655
My little cave
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
 
  • Like
Reactions: dadafarid

dadafarid

New member
Oct 4, 2021
2
0
Thanks LehKeda
This Rom was working nice but I do a mistake :( flashed proximtry at next boot to twrp then its forever loading on logo while restart.
I tried your other ROMs but got no results. What should I do?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    yea you right but i see 3-5-1__10 i think my self its for android 10 not 11
    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
  • 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