Development [ROM][13.0][ENCRYPTION] Official LineageOS 20 for M52 5G

Search This thread
2okPze5.png


LineageOS is a free, community built, aftermarket firmware distribution of Android 13, 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.
Code:
/*
* 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.
*/

Supported devices
All variations of M52 5G (M526B, M526BR) should be supported, but only M526B is well tested and guaranteed to work.

Working
  • RIL
  • 5G
  • Audio
  • Wifi
  • Hotspot
  • Calls
  • WifiDisplay
  • Bluetooth
  • OMX
  • Camera
  • NFC
  • Fingerprint
  • Fingerprint gestures
  • Mobile data
  • GPS
  • DT2W
  • ...

Bugs
  • VoLTE/VoWIFI (Samsung's implementation doesn't work on AOSP)
  • Touch in Lineage recovery only works when constantly tapping the screen while booting into recovery

Installation instructions

Make sure you are on OneUI 5 firmware (C bootloader or newer) before flashing this ROM, otherwise the installation might fail or not boot!

NOTE:
Usually, installing a custom recovery and vbmeta requires you to use Odin (Windows) or Heimdall (Linux/Mac). However, as Heimdall is often troublesome, you can also use Odin4 (Linux) which works by far better and easier than Heimdall. See the Odin4 XDA thread here.

Recommended
Follow the guide on the LineageOS wiki.

Alternative way (TWRP)
  1. Make sure your device's bootloader is unlocked.
  2. Make sure to have the latest available version of TWRP installed.
  3. If wanted, backup all your necessary partitions (super, boot, vendor_boot, data, EFS) before flashing this in case something goes wrong.
  4. Download the lineage build for M52 from the link below and optionally download your preferred GApps package too.
  5. Flash the LineageOS zip using the "Install" button.
  6. Optionally, flash Gapps right after.
  7. Wipe metadata and cache partitions. This only has to be done once when you install LineageOS.
  8. Format data in TWRP as the very last thing, otherwise you may end up in a bootloop if coming from stock ROM.
  9. Reboot

Downloads
Download: download.lineageos.org
Wiki: wiki.lineageos.org

Gapps (choose arm64 and 13.0):
MindTheGapps

Support
Donations
They aren't necessary, but if you like my work feel free to send me or LineageOS a donation to keep me/us motivated.

Credits
To...
  • Me, for spending my time on this
  • Huge thanks to @PauloWesley for testing everything on his M52
  • @BlackMesa123 for general help
  • Maybe more, feel free to tell me if I forgot someone

Source Code: https://github.com/LineageOS/android_kernel_samsung_sm7325
 

Attachments

  • Screenshot_20230419-185025_Settings.png
    Screenshot_20230419-185025_Settings.png
    107.9 KB · Views: 218
  • Screenshot_20230419-185051_Trebuchet.png
    Screenshot_20230419-185051_Trebuchet.png
    117.9 KB · Views: 216
  • Screenshot_20230419-185054_Trebuchet.png
    Screenshot_20230419-185054_Trebuchet.png
    124.4 KB · Views: 207
  • Screenshot_20230419-185057_Trebuchet.png
    Screenshot_20230419-185057_Trebuchet.png
    561.8 KB · Views: 212
  • Screenshot_20230419-185059_Trebuchet.png
    Screenshot_20230419-185059_Trebuchet.png
    161.9 KB · Views: 200
Last edited:
Great news!

M52 5G is now officially supported by LineageOS!

What does that mean?
There will be a new build once per week that you will be able to download and install using the ROM's Updater in Settings -> System -> Updater.
If you are still using an UNOFFICIAL build you will need to install an official build before being able to get OTA's.

When?
The first build will approximately release on Monday (26th June) and new builds will most likely keep releasing on Mondays too.

Changes over current unofficial builds
  • Bootloader rev4 support
  • Fully working BT and VoIP audio
  • Slightly better performance
  • 60FPS recording in camera

Some useful links:
LineageOS wiki
LineageOS downloads
 

lakhssas

Member
Oct 25, 2019
41
9
Lakhssas
Thanks mr simon , im watching the a52s 5g thread until we got the stable edition to install this great light rom , i have a m52 5g but i need a stable version on my primary phone
 
Hello, I have the SM-M526BR & unfortunately I can't get Wifi activated :(
Which bootloader revision / firmware version are you on? I assume its M526BRXXU3CWF3?

If so, I've already uploaded the needed patches yesterday. However the next build will arrive only on Monday, so you would have to wait a little til then.
 

philidinator

Member
Jun 20, 2013
7
2
Which bootloader revision / firmware version are you on? I assume its M526BRXXU3CWF3?

If so, I've already uploaded the needed patches yesterday. However the next build will arrive only on Monday, so you would have to wait a little til then.
Thanks for your reply. Yes, it's M526BRXXU3CWF3. I tried other roms here yesterday - wifi doesn't work with PixelExtended or PixelExperience_Plus either. I then went back to Stock - Wi-Fi off and on a few times, I left Wi-Fi on & flashed LineageOS again. However, again no Wi-Fi :(
 
Thanks for your reply. Yes, it's M526BRXXU3CWF3. I tried other roms here yesterday - wifi doesn't work with PixelExtended or PixelExperience_Plus either. I then went back to Stock - Wi-Fi off and on a few times, I left Wi-Fi on & flashed LineageOS again. However, again no Wi-Fi :(
This happens due to the firmware files mismatching your currently installed firmware.

In other words: M526BRXXU3CWF3 was only released like 2 days ago and is simply too new. As you can see here, I've already prepared the needed patch to add support for it.

Tomorrow there will be a new build available for M52 on the LineageOS download page. With that one Wifi will work just fine for you too.
 

philidinator

Member
Jun 20, 2013
7
2
This happens due to the firmware files mismatching your currently installed firmware.

In other words: M526BRXXU3CWF3 was only released like 2 days ago and is simply too new. As you can see here, I've already prepared the needed patch to add support for it.

Tomorrow there will be a new build available for M52 on the LineageOS download page. With that one Wifi will work just fine for you too.
Perfect. Thank you! I'll try it again tomorrow evening & report :)
 
  • Like
Reactions: Simon1511

leyaniv

Member
Nov 12, 2007
6
1
Can someone please confirm if call recording is available? I plan to buy this phone, but must be able to record phone calls. Thanks
 

hesham.sma

Member
Dec 6, 2012
30
19
Xiaomi Poco F3
Hello .
THANK YOU FOR THE GREAT ROM. Love it sooooooooooooooo much

I have the SM-M526BR
I have two issues

1- When receiving call and answer the proximity sensor closes the screen but when I make the phone away it doesn't light the screen again even I have to press the power button to light screen and close the call from my side

2- If I disabled the 2nd (or the first) sim card the slider doesn't move and the sim is not disabled except if I press the slider (even with it not moving) then restart. this is not a big deal though

THANK YOU AGAIN AND KEEP THE NICE WORK

I flashed the rom on last stock update and my firmware M526BRXXU3CWF3
 
  • Like
Reactions: Simon1511

lammpat

Senior Member
Apr 9, 2013
563
266
How is the picture quality of camera? I am planning to switch to Lineage, have been using cynogenmod/lineage since Galaxy S2 era, used on OP1, OP3. Any reply will be greatly appreciated.

And a big thanks to @Simon1511 for supporting m52.
 
How is the picture quality of camera? I am planning to switch to Lineage, have been using cynogenmod/lineage since Galaxy S2 era, used on OP1, OP3. Any reply will be greatly appreciated.

And a big thanks to @Simon1511 for supporting m52.
The image quality is definitely worse than on stock ROM, since Samsung's Camera app (and the underlaying framework) process images differently.

GCam however takes fairly good pictures even on LineageOS/AOSP.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Great news!

    M52 5G is now officially supported by LineageOS!

    What does that mean?
    There will be a new build once per week that you will be able to download and install using the ROM's Updater in Settings -> System -> Updater.
    If you are still using an UNOFFICIAL build you will need to install an official build before being able to get OTA's.

    When?
    The first build will approximately release on Monday (26th June) and new builds will most likely keep releasing on Mondays too.

    Changes over current unofficial builds
    • Bootloader rev4 support
    • Fully working BT and VoIP audio
    • Slightly better performance
    • 60FPS recording in camera

    Some useful links:
    LineageOS wiki
    LineageOS downloads
    5
    2okPze5.png


    LineageOS is a free, community built, aftermarket firmware distribution of Android 13, 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.
    Code:
    /*
    * 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.
    */

    Supported devices
    All variations of M52 5G (M526B, M526BR) should be supported, but only M526B is well tested and guaranteed to work.

    Working
    • RIL
    • 5G
    • Audio
    • Wifi
    • Hotspot
    • Calls
    • WifiDisplay
    • Bluetooth
    • OMX
    • Camera
    • NFC
    • Fingerprint
    • Fingerprint gestures
    • Mobile data
    • GPS
    • DT2W
    • ...

    Bugs
    • VoLTE/VoWIFI (Samsung's implementation doesn't work on AOSP)
    • Touch in Lineage recovery only works when constantly tapping the screen while booting into recovery

    Installation instructions

    Make sure you are on OneUI 5 firmware (C bootloader or newer) before flashing this ROM, otherwise the installation might fail or not boot!

    NOTE:
    Usually, installing a custom recovery and vbmeta requires you to use Odin (Windows) or Heimdall (Linux/Mac). However, as Heimdall is often troublesome, you can also use Odin4 (Linux) which works by far better and easier than Heimdall. See the Odin4 XDA thread here.

    Recommended
    Follow the guide on the LineageOS wiki.

    Alternative way (TWRP)
    1. Make sure your device's bootloader is unlocked.
    2. Make sure to have the latest available version of TWRP installed.
    3. If wanted, backup all your necessary partitions (super, boot, vendor_boot, data, EFS) before flashing this in case something goes wrong.
    4. Download the lineage build for M52 from the link below and optionally download your preferred GApps package too.
    5. Flash the LineageOS zip using the "Install" button.
    6. Optionally, flash Gapps right after.
    7. Wipe metadata and cache partitions. This only has to be done once when you install LineageOS.
    8. Format data in TWRP as the very last thing, otherwise you may end up in a bootloop if coming from stock ROM.
    9. Reboot

    Downloads
    Download: download.lineageos.org
    Wiki: wiki.lineageos.org

    Gapps (choose arm64 and 13.0):
    MindTheGapps

    Support
    Donations
    They aren't necessary, but if you like my work feel free to send me or LineageOS a donation to keep me/us motivated.

    Credits
    To...
    • Me, for spending my time on this
    • Huge thanks to @PauloWesley for testing everything on his M52
    • @BlackMesa123 for general help
    • Maybe more, feel free to tell me if I forgot someone

    Source Code: https://github.com/LineageOS/android_kernel_samsung_sm7325
    1
    Can anyone confirm if banking apps and other similar apps that require avoiding root are working on this?
    Since you need root to pass safetynet/Play Integrity your banking apps will most likely not work.

    However, Magisk's DenyList in combination with Shamiko do a great job here.
    1
    This happens due to the firmware files mismatching your currently installed firmware.

    In other words: M526BRXXU3CWF3 was only released like 2 days ago and is simply too new. As you can see here, I've already prepared the needed patch to add support for it.

    Tomorrow there will be a new build available for M52 on the LineageOS download page. With that one Wifi will work just fine for you too.
    Perfect. Thank you! I'll try it again tomorrow evening & report :)