[Samsung Galaxy M51 ROMs, Kernels, Recoveries, & Ot] haky 86:
LineageOS is a free, community built, aftermarket firmware distribution of Android 14.0, 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.

/*
* Your warranty is now void.
*
* I am 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 me for messing up your device, I will laugh at you.
*/

GPL compliance :

https://github.com/a71-devs.

REQUIREMENTS:

Make sure to run the latest OneUI 4.1, custom firmware/ports are not supported.

Unlocked bootloader, checkout YouTube/XDA about unlocking your device!.

Install Custom Recovery on M51:

Download the latest recovery.

Follow this guide (its for a different Samsung device, but the steps are similar to our phone) to flash the .tar archive using ODIN.

Install LineageOS from Recovery:

Download the latest LineageOS installation package that you would like to install.

(Optionally): If you want to install Google Apps add-on package (use the arm64 architecture), you can download it from here.

If you are not in recovery, reboot into recovery:

With the device powered off and connected to the USB port, hold Volume Up + Power.

Now tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).

Return to the main menu.

Sideload the LineageOS .zip package but do not reboot before you read/followed the rest of the instructions!

On the device, select “Apply Update”, then “Apply from ADB” to begin sideload.

On the host machine, sideload the package using: adb sideload filename.zip.

Bugs

Flashlight DIM Level, currently we have only 1 [will be fixed soon as long the torch impl got merged into LineageOS].

Fast charge toggle in battery settings is disabled [it's enabled by default on a71, I'll investigate about the issue].

PlayIntegrityFix: don't expect to pass it, since it is a unsigned build, untill got official builds[hope so] then it will work.

VoLTE/VoWIFI.

Credits

:

@Simon1511 for his works on Samsung qcom devices.

@haky 86 for doing the bring up on Samsung SDM730 devices [aka Galaxy A71 and M51].

Galaxy M51 users for testing on their devices.

Source Code

:

Device tree: https://github.com/a71-devs/android_device_samsung_m51

Common device tree: https://github.com/a71-devs/android_device_samsung_a71-common

Kernel: https://github.com/a71-devs/android_kernel_samsung_a71

Blobs: https://github.com/a71-devs/android_vendor_samsung_m51

Common blobs: https://github.com/a71-devs/android_vendor_samsung_a71-common

Downloads:

06/19/2024:

Initial build for the Galaxy M51.

Security Patches: May 2024.

lineage-21.0-20240619-UNOFFICIAL-m51.zip.

Recovery: recovery-21.0-20240619-UNOFFICIAL-m51.tar.

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 /sys/fs/pstore/console-ramoops and /sys/fs/pstore/dmesg-ramoops-0. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)

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.

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: