Development [ROM][13.0][ENCRYPTION] Official LineageOS 20 for A52 4G and A72

Search This thread

Flyos

Member
Nov 8, 2014
19
5
From time to time i use my mobile for phone calls ;)
Everytime i choose a phone number from any contact, i have to wait few seconds until the dialing dialog appears. Does anybody have the the same experience?
I use only one sim card, second slot is for sd card..
I used another phone call app, it solves the issue. There's one on F-Droid, "Simple phone" I guess it's called, worked very smoothly. Google Phone works well also.
 
Hi Simon,

I appreciate the great job you have done to get this build running and your clear communication in this small bug.

As I'm travelling often by car, Bluetooth is important for me. Do you expect a solution soon or should I look for another phone?

Best regards, Mario
Im really not sure if i'll ever figure it out or not.
 

la3ev

New member
Jan 29, 2012
1
0
Probably a dumb question, but in the guide it states phone needs to be downgraded to android 12 before installing lineage 20, why is that ?
 
Last edited:

ethical_haquer

Senior Member
Jan 30, 2023
241
63
Samsung Galaxy A52 4G
Thanks for developing this ROM, Simon! I have been using it for a little while now and it works well. There is only one problem: the camera app doesn't appear to know the size of certain photos it takes. For example, every photo taken with the 64 MP main camera is supposedly exactly 73.22 MB large. All of the following info is from my A52 4G running your first official build of Lineage OS 20. When I copy the photos to my Linux computer I get the same results. Notice how the italicized cameras create photos that are both ginormous and the same exact size. As far as I know, each photo should be slightly different (as the 12MP and 5MP photos, and all videos demonstrate). Anyone else noticing this?

Camera App (Aperature) Settings: Ratio 4:3, Capture Mode - Minimize Latency, Enable OIS

All images are JPGs

12MP Ultra Wide:

Photo1:
Width 4000
Height 3000
File Size: 3.63 MB
Photo2:
Width 4000
Height 3000
File Size: 3.71 MB

64MP Main(Shown as 12.2MP):
Photo1:
Width 4032
Height 3024

File Size: 73.22 MB
Photo2:
Width: 4032
Height: 3024

File Size: 73.22 MB
Video1(5 Seconds):
Width: 1920
Height: 1080
File Size: 12.41 MB
Video2(5 Seconds):
Width: 1920
Height: 1080
File Size: 12.10 MB


5MP Macro:

Photo1:
Width: 2675
Height: 1932
File Size: 1.20 MB
Photo2:
Width: 2576
Height: 1932
File Size: 1.12 MB

32MP Back(Shown as 8.0MP):
Photo1:
Width: 3264
Height: 2448

File Size: 47.94 MB
Photo2:
Width: 3264
Height: 2448

File Size: 47.94 MB
Video1(5 Seconds):
Width: 1920
Height: 1080
File Size: 12.30 MB
Video2(5 Seconds):
Width: 1920
Height: 1080
File Size: 12.55 MB

UPDATE:
I just installed the "Open Camera" app on F-Droid, to see what the filesize was of photos taken from a different app, and...they are even bigger! Every photo I take with the Open Camera app is 96.22 MB large. Interesting how they also end in ".22".
 
Last edited:

Rampler

Senior Member
Nov 12, 2011
162
27
Bavaria
Which steps i have to do for installing again original samsung stockrom (coming from LOS 20.0) ?
Is it enough to install the complete firmware from sammobile via ODIN ?
(A525FXXU4CWA2_A525FOXM4CVL4_EUX.zip)
 

ethical_haquer

Senior Member
Jan 30, 2023
241
63
Samsung Galaxy A52 4G
Just ran into another problem. A few days ago I updated to the latest official build (1-27-23). I used some apps after I updated it, and put it away. Then, a day latter, my phone is temporarily bricked! The problem is when I press the power button, the phone display turns on, but I can only see the top bar; the rest of the display is black with a little white digital clock and time displayed. When I drag down from the top I can see the info expanding, but everything seems to be blocked by the black area. I thought I could reboot to fix the problem, but the power button isn't even fully working. I can press it to turn the screen on and off, but when I press and hold it the phone vibrates, the top bar dims, and the display turns off, not the phone. Apparently I'm not the only one that's had this happen, a quick search brings up this and this. Anyone have any ideas, only thing I can think of is let the phone die and reboot...

UPDATE (2-25-23):
It just happened again! This time I was granting Easer permissions, turned the pone off, go to use it a few minutes later and...the screen had the same issue as before! Look below at the second screenshot; you can tell it is different because the wallpaper and time/date are different. Thanks to @Ryzen5950XT I knew how to reboot it by holding voldown+power.
 

Attachments

  • What_It_Looked_Like.png
    What_It_Looked_Like.png
    51.5 KB · Views: 27
  • What_It_Looked_Like_The_Second_Time.png
    What_It_Looked_Like_The_Second_Time.png
    113.3 KB · Views: 2
Last edited:

Ryzen5950XT

Senior Member
Mar 16, 2022
270
222
Samsung Galaxy A52 4G
Just ran into another problem. A few days ago I updated to the latest official build (1-27-23). I used some apps after I updated it, and put it away. Then, a day latter, my phone is temporarily bricked! The problem is when I press the power button, the phone display turns on, but I can only see the top bar; the rest of the display is black with a little white digital clock and time displayed. When I drag down from the top I can see the info expanding, but everything seems to be blocked by the black area. I thought I could reboot to fix the problem, but the power button isn't even fully working. I can press it to turn the screen on and off, but when I press and hold it the phone vibrates, the top bar dims, and the display turns off, not the phone. Apparently I'm not the only one that's had this happen, a quick search brings up this and this. Anyone have any ideas, only thing I can think of is let the phone die and reboot...
force a reboot by holding power and volume down
 
  • Like
Reactions: ethical_haquer

ethical_haquer

Senior Member
Jan 30, 2023
241
63
Samsung Galaxy A52 4G
@Simon1511 When I originally went to follow your instructions here, I was pretty surprised to see them say "Note: The following instructions require a machine running Windows 10 build 17063 or newer." I don't have a device running Windows, so I started searching for a workaround. I tried all kinds of things, including heimdall, JOdin3CASUAL, and WINE, but eventually found a solution here. I saw you were looking at this post, and I just recently posted this thread on using Odin on Linux, so I thought I would share it with you and anyone else here who doesn't have a Windows machine and needs to use Odin.
 
  • Like
Reactions: Simon1511

atahanacar

Member
May 19, 2012
6
1
Ankara
@Simon1511 When I originally went to follow your instructions here, I was pretty surprised to see them say "Note: The following instructions require a machine running Windows 10 build 17063 or newer." I don't have a device running Windows, so I started searching for a workaround. I tried all kinds of things, including heimdall, JOdin3CASUAL, and WINE, but eventually found a solution here. I saw you were looking at this post, and I just recently posted this thread on using Odin on Linux, so I thought I would share it with you and anyone else here who doesn't have a Windows machine and needs to use Odin.

I used Heimdall to get the pit file, and JOdin3 to flash. No need to use virtual machines and such. Just use their git versions, as older versions may not support "newer" phones.
 
  • Like
Reactions: Simon1511

SuperUser008

Member
Jan 31, 2023
8
0
Since upgrade to LOS 20 the phone screen quite often remains active during phone calls, resulting in unwanted touches of buttons with the cheek.

Everything else seems to work good so far.
 

fartyfart

Member
Oct 9, 2022
9
0
Important notice:

in order to have data roaming, it absolutely has to be enabled in the stock OS before switching to LineageOS.

Yes, the instructions say
Make sure that you can send and receive SMS and place and receive calls (also via WiFi and LTE, if available), otherwise it won’t work on LineageOS either! Additionally, some devices require that VoLTE/VoWiFi be utilized once on stock to provision IMS.

but it doesn't mention data roaming specifically.
 

JohnnyZin72

New member
Feb 17, 2023
2
1
2okPze5.png


LineageOS is a free, community built, aftermarket firmware distribution of Android 12.1/12L, 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 A52 4G and A72 (A525F, A525F/DS, A525M, A525M/DS, A725F, A725F/DS, A725M and A725F/DS) are supported, but only A525F (6/128 variant) is well tested as I have this device.

Working
  • Audio
  • Wifi
  • Hotspot
  • Calls
  • WifiDisplay
  • Bluetooth
  • OMX
  • Camera
  • NFC
  • Fingerprint
  • Screen-Off-FOD
  • Mobile data
  • GPS
  • DT2W
  • ...

Bugs
  • VoLTE/VoWIFI (Samsung's implementation doesn't work on AOSP)
  • Audio output in VoIP calls is swapped (WhatsApp, Discord, etc)
  • On some bluetooth Watches/Earphones In-Call sound is played from the phone's speaker/earpiece

Installation instructions

Make sure you are on OneUI 5 firmware before flashing this ROM, otherwise the installation will fail!

Recommended
Follow the guide on the LineageOS website: A52 4G | A72

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

Downloads
A52 4G: download.lineageos.org
A72 4G: download.lineageos.org

Gapps (choose arm64 and 13.0):
FlameGapps Canary | NikGapps Canary | MindTheGapps

Old builds:
LineageOS 20

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

Credits
To...
  • Me, for spending my time on this project
  • Whoever made the VBMeta disabler
  • @Grarak for his fingerprint fix for A70 and DT2W fix
  • @TheLeo2307 for testing on his A72
  • @miamighost for testing on his A52
  • Maybe more, feel free to tell me if I forgot someone

Source Code: https://github.com/LineageOS/android_kernel_samsung_sm7125
pls help, i have a samsung galaxy sm-a325m and sl try to root it, the odin gives me the following error: "CUSTOM BINARY BLOCKED BY OEM LOCK . vbmeta", but when putting the file that was not altered by magisk if it lets me, does anyone have a solution?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    My 5 cents: I use LOS20 and most annoying bug's are:
    - Bluetooth doesn't work with my headset (known bug)
    - During a phone call, the display does not switch off, which is why I regularly get muted, or hang up etc. (known bug)
    - The hands-free button on Whatsapp, Signal etc are inverted. Hands-free calling during native calls (SIM) works (known bug)
    - The call setup takes an extremely long time (known bug)
    There are only four bugs, but still annoying.

    The developers may still find solutions, until then I have chosen the Samsung as my backup cell phone and bought a Motorola (without LOS)
    Hopefully I'll be happy with the Motorola.

    best regards Klaus
    We have found a fix for bluetooth calling and also inverted audio output/inputs on voip calls, it just needs to be properly implemented now, which is turning out to be quite tricky and will likely take us some more time.

    As for the display not turning off during calls, samsung just gave us a crappy sensor, so you need to touch the portion of the screen near the camera punch hole to your ear for it to work, or just click the power button after picking up the call.
    3
    I know, it's crazy, are we really the only ones having this issue?
    No, seeing this too. I guess people just haven't noticed. I ran magick -quality 100 original.jpg new.jpg, and found that new.jpg is much smaller (48Mb vs. 2.2Mb, for the new one). Perhaps that indicates that there's a lot of compressable data somewhere?

    EDIT:
    Just ran git diff -a on those two files. I found that the original jpg contains tons and tons of the string "^@", espcially towards the end. Maybe that accounts for the size difference?
    2
    Dear Simon,

    do you maybe have any news regarding the problem with the BT connection?

    Best regards, Mario
    Im working on it.
    2
    @Simon1511, @Flyos, and @rien333:

    I am glad some progress is being made with the photo size issue, and I hope that the cause of the issue will be found. However, I am sadly not going to be able to help anymore, because I am in the process of going back to stock due to voLTE. I will be back to help with testing in a couple months or so after I get a different phone for calling (Perhaps the Volla Phone 22). Best regards, @ethical_haquer
    2
    Perhaps eventually there will be a solution to using voLTE on a custom ROM for Samsung devices, but until then, I will try my hand at De-googling and rooting the stock ROM.
    Honestly from what I know VoLTE on Samsung devices running AOSP has been an issue for a loooong time (>6 years), and nothing has changed in that time. So the chances for VoLTE being supported in the future are.. low.

    Take a look at my post on this thread:
    I honestly totally forgot about this.. Will check soon.
  • 12
    2okPze5.png


    LineageOS is a free, community built, aftermarket firmware distribution of Android 12.1/12L, 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 A52 4G and A72 (A525F, A525F/DS, A525M, A525M/DS, A725F, A725F/DS, A725M and A725F/DS) are supported, but only A525F (6/128 variant) is well tested as I have this device.

    Working
    • Audio
    • Wifi
    • Hotspot
    • Calls
    • WifiDisplay
    • Bluetooth
    • OMX
    • Camera
    • NFC
    • Fingerprint
    • Screen-Off-FOD
    • Mobile data
    • GPS
    • DT2W
    • ...

    Bugs
    • VoLTE/VoWIFI (Samsung's implementation doesn't work on AOSP)
    • Audio output in VoIP calls is swapped (WhatsApp, Discord, etc)
    • On some bluetooth Watches/Earphones In-Call sound is played from the phone's speaker/earpiece

    Installation instructions

    Make sure you are on OneUI 5 firmware before flashing this ROM, otherwise the installation will fail!

    Recommended
    Follow the guide on the LineageOS website: A52 4G | A72

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

    Downloads
    A52 4G: download.lineageos.org
    A72 4G: download.lineageos.org

    Gapps (choose arm64 and 13.0):
    FlameGapps Canary | NikGapps Canary | MindTheGapps

    Old builds:
    LineageOS 20

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

    Credits
    To...
    • Me, for spending my time on this project
    • Whoever made the VBMeta disabler
    • @Grarak for his fingerprint fix for A70 and DT2W fix
    • @TheLeo2307 for testing on his A72
    • @miamighost for testing on his A52
    • Maybe more, feel free to tell me if I forgot someone

    Source Code: https://github.com/LineageOS/android_kernel_samsung_sm7125
    5
    FAQ

    Can I root my phone with this ROM?
    Yes, just install the latest version of Magisk.

    How can I pass safetynet?
    Follow this guide.

    Automatic camera flash doesnt work!
    That's an issue with Lineage's camera app. Use GCam or any other camera app instead.
    4
    @Simon1511 I've used this build now for a while and once again I'm amazed how smooth it works.
    Thanks for your work, carry on and good luck in making it offical
    4
    Good news, LineageOS 20 just hit Official!
    The first build for A52 4G was released just this morning, the first A72 build will approximately release tomorrow (Saturday, 21 January).
    This means that there will be no more LineageOS 19.1 builds.

    If you are currently using official 19.1 you should be able to just upgrade to official 20 through Settings -> System -> Updater. If you are currently using unofficial 20 you will have to flash the first official build manually to get OTA's.

    Downloads:
    A52 4G
    A72 (tomorrow)
    4
    Update!

    These will most likely be the last unofficial builds of LineageOS 20 since LineageOS upgraded a lot of their devices officially to 20 yesterday. A52 and A72 haven't been officially moved to 20 yet, but I'm working on it!

    Downloads:
    A52: MEGA
    A72: MEGA

    Changelogs:
    • The camera app (Aperture) now supports using the aux cameras (Ultrawide/Macro/Telephoto)
    • Enabled multiple vibration strength levels
    • Enabled colour modes in settings instead of using LiveDisplay's display modes
    • Better ZRAM management
    • NightLight and ExtraDim are now toggled off/back on when unlocking with fingerprint
    • Support for OneUI 5 firmware
    • OneUI 5 firmware is required now, otherwise installing the ROM will fail