Development [UNOFFICIAL][ROM][12.1][ENCRYPTION] LineageOS 19.1 for A52 4G and A72

Search This thread

King'z

New member
Dec 31, 2021
3
0
It works just fine for me here if I do it in that exact order. Possibly check if it boots for you without encryption enabled (it did just fine for me too).
I have the same issue, I already had the previous version of the rom installed then through TWRP I just flashed the the latest version, formatted data and rebooted and the same thing happened, reboots in vain then reboots again into recovery. I tried to wipe the caches but in vain as well, although it boots successfully without encryption.
 
I have the same issue, I already had the previous version of the rom installed then through TWRP I just flashed the the latest version, formatted data and rebooted and the same thing happened, reboots in vain then reboots again into recovery. I tried to wipe the caches but in vain as well, although it boots successfully without encryption.
In the meantime I figured out what the issue is with encryption and came up with the following fix:

In addition to formatting the data partition you also need to wipe the metadata partition. Since our TWRP doesn't have an option for that I released new TWRP builds for A52 an A72 today with that feature enabled.

So install latest TWRP, install lineage, format data and wipe metadata. After that booting with encryption enabled will succeed.
 

xinouch

Member
May 3, 2022
12
11
So, I just tried to install with the last TWRP with wiping metadata after the install, and it works! Device is encrypted :D

Thanks a lot!!!

Also, it works well with Magisk 25.1

BTW the problem I have with the calls (no possibilities to answer) is still here, even after the reinstall and default settings... Am I the only one?
I've found a work around: when I get called, I call someone. Thus I have a popup saying I can't call now (because I am being called), and it makes the call notification appear, so I can answer \o/
 
Last edited:
  • Like
Reactions: Simon1511
Hey people, I've been working on another update with some great changes!

The biggest changes in this build are the following ones:
1. I finally got audio with 2nd Sim card in calls to work!
2. The fingerprint sensor on Galaxy A72 is now working, thanks to...
3. Fingerprint dimming combined with Samsung's HBM!

Some may remember that I said earlier that it's likely not possible to make Samsung's fingerprint implementation in-kernel work on AOSP, though after spending my past few weeks on this I finally got it to work! The screen will now only light up the area around the fingerprint sensor instead of the whole screen (which was pure pain before, I know) and will partially dim the screen. Thanks to this the sensor on A72 works now! However you may need to hold your finger a bit tight to the sensor sometimes.
Also, the screen may flicker a little bit during fingerprint setup or unlocking, but I'm sure I'll get this sorted out in the future.

Downloads: A52 | A72

Changelog:
Code:
-June security patch
-Switched to using Samsung's HBM implementation instead of lighting up the whole screen when touching the fingerprint sensor
-Dim the screen if touching the fingerprint sensor
-Wake the screen if touching the fingerprint sensor during screen off or AOD instead of killing doze
-Fixed fingerprint sensor on A72 by dimming the screen (You may need to hold your finger a bit tight on the sensor)
-Correctly reset brightness on fingerprint errors
-Fixed the screen not turning on again if removing the phone from your ear during a phone call
-Added custom audio impl to fix audio in calls with Sim 2
-Disabled Dolby again (doesn't seem to work correctly for us)
-Re-enabled doze/deepsleep support
-Show correct fast-charging values
 

xinouch

Member
May 3, 2022
12
11
Congratulations and thanks a lot for the new release!

Just some dumb questions about how to install:
- If we do the update from an already encrypted 19.1, do we need to wipe / format /data and metadata?
- Is it possible, with encryption enabled, to do a backup of /data anyway and restore it with TWRP? (I know TWRP can't mount data, but maybe it can sort of memcopy it?)
 
  • Like
Reactions: Simon1511
Congratulations and thanks a lot for the new release!

Just some dumb questions about how to install:
- If we do the update from an already encrypted 19.1, do we need to wipe / format /data and metadata?
- Is it possible, with encryption enabled, to do a backup of /data anyway and restore it with TWRP? (I know TWRP can't mount data, but maybe it can sort of memcopy it?)
No need to wipe anything.

In terms of backups, they should work once TWRP supports decryption for Android 12, which should hopefully not take very long.
 

Ryzen5950XT

Senior Member
Mar 16, 2022
114
99
Samsung Galaxy A52 4G
Hey people, I've been working on another update with some great changes!

The biggest changes in this build are the following ones:
1. I finally got audio with 2nd Sim card in calls to work!
2. The fingerprint sensor on Galaxy A72 is now working, thanks to...
3. Fingerprint dimming combined with Samsung's HBM!

Some may remember that I said earlier that it's likely not possible to make Samsung's fingerprint implementation in-kernel work on AOSP, though after spending my past few weeks on this I finally got it to work! The screen will now only light up the area around the fingerprint sensor instead of the whole screen (which was pure pain before, I know) and will partially dim the screen. Thanks to this the sensor on A72 works now! However you may need to hold your finger a bit tight to the sensor sometimes.
Also, the screen may flicker a little bit during fingerprint setup or unlocking, but I'm sure I'll get this sorted out in the future.

Downloads: A52 | A72

Changelog:
Code:
-June security patch
-Switched to using Samsung's HBM implementation instead of lighting up the whole screen when touching the fingerprint sensor
-Dim the screen if touching the fingerprint sensor
-Wake the screen if touching the fingerprint sensor during screen off or AOD instead of killing doze
-Fixed fingerprint sensor on A72 by dimming the screen (You may need to hold your finger a bit tight on the sensor)
-Correctly reset brightness on fingerprint errors
-Fixed the screen not turning on again if removing the phone from your ear during a phone call
-Added custom audio impl to fix audio in calls with Sim 2
-Disabled Dolby again (doesn't seem to work correctly for us)
-Re-enabled doze/deepsleep support
-Show correct fast-charging values
Ultra pro max dev.
 
  • Like
Reactions: Simon1511

Moritz_pro

Member
Jun 27, 2022
22
2
The Rom won't start, the start sign appears but doesn't finish loading.
What can I do please help me.
 

Moritz_pro

Member
Jun 27, 2022
22
2
Did you flash the disabler immidiately after the rom or did you reboot between the 2 things

I flashed the twrp but it didn't work so i installed a new image I don't know the name but then I could boot into recovery mode then I couldn't boot to the system amore so i flashed service disabler now I can boot but I doesn't load.
 

Moritz_pro

Member
Jun 27, 2022
22
2

I flashed the twrp but it didn't work so i installed a new image I don't know the name but then I could boot into recovery mode then I couldn't boot to the system amore so i flashed service disabler now I can boot but I doesn't load.
I installed this file with Odin
 

Attachments

  • vbmeta.tar
    2 KB · Views: 2

I flashed the twrp but it didn't work so i installed a new image I don't know the name but then I could boot into recovery mode then I couldn't boot to the system amore so i flashed service disabler now I can boot but I doesn't load.
Well, I would suggest you to follow the installation steps properly.
If you do that then you won't have any problems installing this ROM.
 
Aug 6, 2016
19
3
Hello together and hello Simon1511!

After so many years with our GS5 G900F (my family and me) we switched to the A52/4G 6GB/128GB, bacause it is a very good smartphone with a recognized developer for LOS in the background.
Thanks for your work and support!

Questions:
- in TWRP there is no 'system' partition, how do i do a full wipe to installiert LOS 'clean'?
- i update LOS 19.1 20220530 to 20220704 and after that, everytime i reboot i got back to TWRP. Do i habe to wipe data and metadata (updated TWRP) or only metadata?
- do you planning a support for the original Samsung S-View Cover? (GS5 it called flip-flap)

Bugs!?
- everytime i sit in the sun the display switches between brightness max to brightness min continously

That's enough for the first time...

WBR
Danny
 
Hello together and hello Simon1511!

After so many years with our GS5 G900F (my family and me) we switched to the A52/4G 6GB/128GB, bacause it is a very good smartphone with a recognized developer for LOS in the background.
Thanks for your work and support!

Questions:
- in TWRP there is no 'system' partition, how do i do a full wipe to installiert LOS 'clean'?
- i update LOS 19.1 20220530 to 20220704 and after that, everytime i reboot i got back to TWRP. Do i habe to wipe data and metadata (updated TWRP) or only metadata?
- do you planning a support for the original Samsung S-View Cover? (GS5 it called flip-flap)

Bugs!?
- everytime i sit in the sun the display switches between brightness max to brightness min continously

That's enough for the first time...

WBR
Danny
1. There is no system partition because this device uses dynamic partitions that can't be wiped directly. However dirty flashing any ROM on top of LineageOS will have the same effect as wiping system.
2. You don't have to wipe neither data nor metadata if updating from an older build. I can't blindly say why it's bootlooping for you, but for me dirty flashing worked fine.
3. Thanks for reminding me about that one, I'll hopefully get it fixed later on.
 

Top Liked Posts

  • 1
    This is intended to make sure the correct sim card is being picked for audio output. Can't do it any better at the moment.
    I also noticed the delay. Since I have and use dual-sim capability, I really appreciate that it works at all.

    I did notice, however, that if the phone is hooked to my vehicle through Android Auto, the calls go through almost immediately, with no noticeable delay at all compared to making a call with just the phone itself. I haven't tested with just a bluetooth hook-up.
  • 6
    Hey, just released another update with some nice fixes.
    Also, you can find unofficial builds of TWRP with en-/decryption support in the download section!

    Downloads: A52 | A72

    TWRP: A52 | A72

    Changelog:
    Code:
    -Updated blobs to A525FXXU4BVG1 respectively A725FXXU4BVE3
    -Implemented proper screen-off-fod support (Settings->Display->Lockscreen->Long press fingerprint sensor....)
    -Improved FOD dimming values
    -Imported HotwordEnrollment blobs to fix "OK Google"
    -Switched to OSS camera provider
    -Slightly decreased vibrator intensity
    -Enable correct reading mode in LiveDisplay
    -Add Dolby audio effect (Actually works this time)
    -Excluded AudioFX to improve Dolby effect
    -Built FlipFlap to fix flip covers (Thanks for reporting @Peter_Petersen
    -Corrected brightness for SunlightEnhancement mode in LiveDisplay
    -Built AdvancedDisplay for advanced display modes
    -Set ZRAM size to 5GB to improve performance
    -Switched to CAF USB audio configuration to fix audio in phone calls with USB headphones/headsets
    -Enabled pickup gesture support
    2
    I installed the VBMeta disabler but it still not works
    Sorry I am supid andI can't read sorry for wasting your time.
    2
    Are there - besides the "my data is more safe/unsafe" - any disadvantages if i choose to encrypt (or the other way around, not to encrypt)?
    Not really, the additional security is the only advantage.
    To be more precise: TWRP (and i will use the A52 version of it from SImon1511): Can i backup and restore my phone with an encrypted phone ?
    Currently not since TWRP hasn't officially been updated for Android 12 encryption yet. If you're seeking to heavily backup and restore I would advise you to not use encryption.
    2
    Hey Simon1511,

    does split screen work for you?

    In my case, double tap on home button, nothing happend. Long press on recent button, the same.

    Settings are made in button menu.

    WBR
    Danny
    So, this is what I do:
    1. press on the "recent" button (the square)
    2. long press on the icon of the app I want to split
    3. tap on "show on top" or "free format" (I have it in French, may not be the exact English terms)
    I think this behavior comes with the new gesture / no button feature.
    1

    Not really, the additional security is the only advantage.

    Currently not since TWRP hasn't officially been updated for Android 12 encryption yet. If you're seeking to heavily backup and restore I would advise you to not use encryption
    I already thought that this would be the answer. Thanks for the confirmation.. I will (sadly) stay un-encrypted ...
  • 17
    2okPze5.png


    LineageOS is a free, community built, aftermarket firmware distribution of Android 11, 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
    Both variations of A52 4G and A72 (A525F and A525M and A725F and A725M) 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)

    Installation instructions
    • Make sure your device's bootloader is unlocked.
    • If not done before, flash disabled VBMeta with Odin in AP slot (originally posted here).
    • Make sure to have the latest available version of TWRP or lineage recovery installed.
    • If wanted, backup all your necessary partitions (super, boot, data, EFS) before flashing this in case something goes wrong.
    • Download the lineage build for your device from the link below and optionally download your preferred Gapps package too.
    • Flash the LineageOS zip using "Install" (TWRP) or "Apply update" (Lineage recovery).
    • Optionally, flash Gapps right after.
    • Optionally, also flash Magisk v24 or newer right after
    • Format data in TWRP or factory reset in lineage recovery as the very last thing, otherwise you may end up in a bootloop if using encryption or coming from stock ROM.
    • Wipe metadata and cache partitions (TWRP only).
    • Reboot.

    Downloads
    06-08-2022: A52 | A72
    Gapps (choose arm64 and 12.1/12L): MindTheGapps | OpenGapps canary | FlameGapps Canary | NikGapps Canary

    TWRP with En-/Decryption support: A52 | A72

    Lineage recovery: A52 (MEGA) | A72 (MEGA)

    Old builds:
    Lineage 18.1

    Support
    Donations
    It's not necessary, but if you like my work feel free to send me 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/Simon1511/android_kernel_samsung_sm7125
    8
    Hey people, again thanks for waiting patiently and reporting bugs. Lineage 19.1 is now available with some more bugfixes and improvements!

    Apart from that, SeLinux is now enforcing!

    Also, this build has encryption enabled by default. That means that your data will be encrypted right on boot. If you don't want encryption to be enabled flash something like services disabler before first boot.
    If your phone keeps rebooting after flashing lineageOS 19.1 with encryption enabled make sure to format data in recovery instead of only wiping it.

    Downloads: A52 | A72

    Changelog:
    Code:
    -Updated to Lineage 19.1
    -May security patch
    -Enabled freeform windows
    -Build SamsungDAP for dolby audio
    -Fixed color calibration in livedisplay settings (Please note that not all display modes support color calibration)
    -Show download mode instead of bootloader in advanced restart menu
    -Re-enabled FM-Radio
    -Enabled night display/bluelight filter
    -Fixed audio with USB headphones/speakers/etc
    -Correctly detect phone variant and set props accordingly
    -Enabled encryption (FBE)
    -Removed unused partitions from fstab
    -Fixed USB mode not being select-able
    -Enabled MAC randomization for WiFi
    -SeLinux enforcing
    -Use correct default network mode (4G)
    -Enabled adoptable storage to work with FBE
    -Set props from stock ROM to make Netflix select DRM L1
    -Fixed proximity sensor not working at all
    -Updated kernel to A525FXXS4BVA2
    -Enabled burn-in protection
    8
    Hey people, thanks for waiting patiently and reporting bugs. Lineage 19 is now available with a long list of bugfixes and improvements!

    Before installing, make sure to be on OneUI 4 firmware and have OrangeFox or TWRP 3.6 or newer installed, otherwise you will end up in a bootloop.

    Also, this build contains an unofficial implementation of monet. Feel free to give me feedback on this.

    In addition the device trees are now available on my Github!

    Downloads: A52 | A72

    Changelog:
    Code:
    -Updated to Lineage 19.0
    -February security patch
    -Updated all blobs and configs to A525FXXS4BVA2 (Android 12)
    -Updated kernel to A525FXXU4BUL8 (Android 12)
    -Unified more blobs
    -Fixed screen rotation on A72
    -Switched to AOSP WifiDisplay implementation
    -Corrected status bar padding
    -Built more blobs from source
    -Switched to Clang r383902
    -Disabled APEX compression
    -Switched to UDFPS
    -Fixed FOD on AOD
    -Make FOD stay always on for working FOD on AOD
    -Increased the amount of time the screen lights up when touching the fingerprint sensor
    -Switched to stock health blobs
    -Overall cleanup
    -Enabled F2FS support for system partition
    -Switched to newer AIDL libperfmgr power HAL
    -Updated vibrator to AIDL to switch to manifest level 5 and match stock
    -Fixed audio in bluetooth phone calls on A52 (for somehow still broken on A72)
    -Imported APTX BT encoder from Pixel 5
    -Enabled unofficial monet implementation
    8
    Update

    13-01-2022: A52 (MEGA) | A72 (MEGA)

    Lineage recovery: A52 (MEGA) | A72 (MEGA)

    Changelog
    Code:
    -Latest lineage sources with december security patch (january one wasn't released yet)
    -Updated blobs to A525FXXU4AUJ2
    -Added initial A72 support -- see more information below
    -Switched to OSS fingerprint HAL by @Grarak
    -Cleaned up unused config files
    -Built lineage recovery for both devices
    -Added missing overlay for the system to know that we have a notch
    -Built more blobs from source
    -Fixed A2DP offload and switched to AOSP bluetooth audio implementation
    -Correctly boost brightness when the fingerprint sensor is touched
    -Fixed fingerprint sensor not working when screen brightness is low
    -Corrected size and position of the fingerprint sensor (And yes, the sensor is REALLY that big)
    -Disabled screen off FOD for now since it doesn't work anyway
    -Limit fingerprints to max 4 per user
    -Temporary disabled FMRadio since it somehow broke with latest sources
    -Built QCOM audio effects from source

    Some notes regarding A72 support
    Since I don't have an A72 here it was kinda hard to blindly support it. But first I wanna thank @madseason.live and Leo on Telegram for testing my builds on their A72's. Even though both of them did good testing, we didn't succeed in getting the fingerprint sensor to work. A72 uses a different sensor and driver than A52 does and without having the device here by myself it's hard to fix that without knowing what the actual issue is. It only works for setting up a fingerprint, but actually unlocking the phone with it doesn't work. Additionally, for somehow screen rotation is flipped by 90° which makes no sense at all since A52 and A72 use the same sensors except for fingerprint and camera. If someone has an idea or wants to contribute, feel free to contact me.
    7
    Hey people, I've been working on another update with some great changes!

    The biggest changes in this build are the following ones:
    1. I finally got audio with 2nd Sim card in calls to work!
    2. The fingerprint sensor on Galaxy A72 is now working, thanks to...
    3. Fingerprint dimming combined with Samsung's HBM!

    Some may remember that I said earlier that it's likely not possible to make Samsung's fingerprint implementation in-kernel work on AOSP, though after spending my past few weeks on this I finally got it to work! The screen will now only light up the area around the fingerprint sensor instead of the whole screen (which was pure pain before, I know) and will partially dim the screen. Thanks to this the sensor on A72 works now! However you may need to hold your finger a bit tight to the sensor sometimes.
    Also, the screen may flicker a little bit during fingerprint setup or unlocking, but I'm sure I'll get this sorted out in the future.

    Downloads: A52 | A72

    Changelog:
    Code:
    -June security patch
    -Switched to using Samsung's HBM implementation instead of lighting up the whole screen when touching the fingerprint sensor
    -Dim the screen if touching the fingerprint sensor
    -Wake the screen if touching the fingerprint sensor during screen off or AOD instead of killing doze
    -Fixed fingerprint sensor on A72 by dimming the screen (You may need to hold your finger a bit tight on the sensor)
    -Correctly reset brightness on fingerprint errors
    -Fixed the screen not turning on again if removing the phone from your ear during a phone call
    -Added custom audio impl to fix audio in calls with Sim 2
    -Disabled Dolby again (doesn't seem to work correctly for us)
    -Re-enabled doze/deepsleep support
    -Show correct fast-charging values