• 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

Rijanrijan

Member
Jun 22, 2018
49
9

How do I do a factory reset?

I've been watching many videos and forms on it and all seems to be a bit different. Like some go to advance and include vendors while others say the default wipe is good enough.

Reading that is just doing a default wipe good or should I go to advance and select other options too?


I'm using stock rom.
 

Rijanrijan

Member
Jun 22, 2018
49
9
How do I do a factory reset?

I've been watching many videos and forms on it and all seems to be a bit different. Like some go to advance and include vendors while others say the default wipe is good enough.

Reading that is just doing a default wipe good or should I go to advance and select other options too?


I'm using stock rom.


Reading this https://twrp.me/faq/whattowipe.html
Has left me to believe that the default wipe swipe is the way to go, no need to go to advance setting.

Please correct me if I'm wrong it would be much appreciated.
 

LehKeda

Senior Member
Jan 26, 2014
753
657
My little cave
How do I do a factory reset?

I've been watching many videos and forms on it and all seems to be a bit different. Like some go to advance and include vendors while others say the default wipe is good enough.

Reading that is just doing a default wipe good or should I go to advance and select other options too?


I'm using stock rom.
Wipe > swip to factory reset
 
  • Like
Reactions: hilary trump

LehKeda

Senior Member
Jan 26, 2014
753
657
My little cave
Is it play certified and safety net passed?
honestly, I don't know what a safety net is 😂😂😂, but probably it won't pass because selinux is permissive

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?
You're welcome.
You can check the reporting bugs section, that way you will help me fix the bugs.
SELinux isn't a bug, it can be set to enforcing easily.
Bluetooth audio should be fixed soon. and for VoLTE I honestly don't know because I have no way of testing that because it isn't supported in my country plus it's not ported to lineage yet.
I haven't used the stock ROM so I don't know if the battery life and overall performance is better or not.
 
  • Like
Reactions: Rijanrijan

Rijanrijan

Member
Jun 22, 2018
49
9
Was a quick and fast install.
Only thing I'd like to add to the step is to install Gapps you must reboot to recovery after flashing the rom.

Thank you LahKeda
 
Last edited:

Rijanrijan

Member
Jun 22, 2018
49
9
Some bugs I've encountered during my daily use :

Major :
-Once the screen goes black during calls it goes away only after the call has ended.
-Blank screen during incoming calls when the phone is locked. Can't do anything during the time expect double tap power botton shortcut that will prompt to unlock phone screen after which again a black screen ( major ++ )

Minor:
- Night shift is buggy. The intensity changes during selecting text, navigating and others. Tried to take a screen recording of this but it was not shown in the video.
- Double tap to wake does not work in power saving mode ( could be a feature if is so ignore this )
- Double tap to wake does not work after couple of min in ideal state and also when aod is turned off.
- Enabling magisk hide causes random reboots.
- Auto rotate suggestions button keeps on nagging

lineageOS version: 17.1 (2021-01-29)
lineageOS Download url: https://sourceforge.net/projects/sa...age-17.1-20210128-UNOFFICIAL-m51.zip/download
gapps version: open_gapps-arm64-10.0-nano-20210206

am I using:
a task killer: no
a non-stock kernel: no
other modifications: magisk?


ps: a tip for a better camera
use- https://www.celsoazevedo.com/files/android/google-camera/dev-suggested/ Urnyx's 7.3 v2.5

then go to setting > advance > auxiliary camera > telephone ( enables wide angle camera )
Do not enable the wide camera option it will break the app clean cache and data if it breaks.
 
Last edited:

myghi63

Member
Feb 7, 2020
47
16
Some bugs I've encountered during my daily use :

Major :
-Once the screen goes black during calls it goes away only after the call has ended.
-Blank screen during incoming calls when the phone is locked. Can't do anything during the time expect double tap power botton shortcut that will prompt to unlock phone screen after which again a black screen ( major ++ )

Minor:
- Night shift is buggy. The intensity changes during selecting text, navigating and others. Tried to take a screen recording of this but it was not shown in the video.
- Double tap to wake does not work in power saving mode ( could be a feature if is so ignore this )
- Double tap to wake does not work after couple of min in ideal state and also when aod is turned off.
- Enabling magisk hide causes random reboots.
- Auto rotate suggestions button keeps on nagging

lineageOS version: 17.1 (2021-01-29)
lineageOS Download url: https://sourceforge.net/projects/sa...age-17.1-20210128-UNOFFICIAL-m51.zip/download
gapps version: open_gapps-arm64-10.0-nano-20210206

am I using:
a task killer: no
a non-stock kernel: no
other modifications: magisk?


ps: a tip for a better camera
use- https://www.celsoazevedo.com/files/android/google-camera/dev-suggested/ Urnyx's 7.3 v2.5

then go to setting > advance > auxiliary camera > telephone ( enables wide angle camera )
Do not enable the wide camera option it will break the app clean cache and data if it breaks.
Magisk hide is incompatible with any lineageOS apparently. Also, the screen goes back only after the call has ended because the proximity sensor is partially fixed.
 
  • Like
Reactions: Rijanrijan

myghi63

Member
Feb 7, 2020
47
16
I At least on my Samsung M51 (M515FXXU1BTK4 ZTO), bluetooth actually crashes if I try to connect my phone on any bluetooth audio device. At the same time, it seems that the screen doesn't go as bright as the stock rom (20% of stock rom is about the same as 50% on your LineageOS).
 
  • Like
Reactions: Rijanrijan

LehKeda

Senior Member
Jan 26, 2014
753
657
My little cave
I At least on my Samsung M51 (M515FXXU1BTK4 ZTO), bluetooth actually crashes if I try to connect my phone on any bluetooth audio device. At the same time, it seems that the screen doesn't go as bright as the stock rom (20% of stock rom is about the same as 50% on your LineageOS).
Yeah, I'm aware of this problem. I broke Bluetooth audio in the last build. Sorry for that
 

jmmk

New member
Mar 9, 2021
2
0
Hello,

I'm trying to install your lineage build to M51. I'm not sure what should I wipe. I swiped Factory Reset and that's all? Shouldn't I make Advanced wipe to clear dalvik?
Should I make "Format Data"?

Btw. In Advanced wipe I can't see System partition. Is it ok?

Sorry for the (maybe) obvious question, however I have some stress (I couldn't make system backup due to TWRP limits as far as I understand)
 
Last edited:

Rijanrijan

Member
Jun 22, 2018
49
9
Hello,

I'm trying to install your lineage build to M51. I'm not sure what should I wipe. I swiped Factory Reset and that's all? Shouldn't I make Advanced wipe to clear dalvik?
Should I make "Format Data"?

Btw. In Advanced wipe I can't see System partition. Is it ok?

Sorry for the (maybe) obvious question, however I have some stress (I couldn't make system backup due to TWRP limits as far as I understand)


You can just factory reset. It will clear data,dalvik and cache. System partition will be auto wiped when installing the rom.

You should format data if coming from the default Samsung rom to decrypt storage.
 

Rijanrijan

Member
Jun 22, 2018
49
9
2/3 times when I plug my phone to my laptop it reverse charges.

The only way to revert this is to unplug and replug and hope your lucky.


-Clean install with no magisk modules
Screenshot_20210313-133501_Settings.png
 
Last edited by a moderator:

myghi63

Member
Feb 7, 2020
47
16
I coudn't find any way to switch my audio output to a external DAC, and that's not a driver issue since I can control the system volume using the DAC buttons...
 

LehKeda

Senior Member
Jan 26, 2014
753
657
My little cave
I coudn't find any way to switch my audio output to a external DAC, and that's not a driver issue since I can control the system volume using the DAC buttons...
You will probably need a modified audio configuration file that has output to an audio dac..
But why do you wanna a dac with this device? The phone audio capabilities is modest or average at best.. or it does make a difference?
 

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