Development [RECOVERY][OFFICIAL] TWRP 3.7.0-3 for Galaxy A52s 5G

Search This thread

ShaDisNX255

Senior Member
Apr 3, 2014
2,816
1,853
Matamoros
Samsung Galaxy A52 4G
You both are pretending you didn't encounter any issues with whatever partitions so I suspect you are both using a custom kernel as @BlackMesa123 released his own custom kernel in this A528B section and you're probably using a custom kernel with your custom ROM either... ^^
As I've said, TWRP uses it's own kernel so we're pretty much using the exact same kernel by using TWRP.

And from now we/you didn't get any feedbacks from any other users , but me since the release of A13...
Strange, don't you think so ???
This can all be fixed if you publicly share a new recovery log. It should show your problem more precisely without having to assume 90% of what your problem actually is. There's nothing personal on your recovery file afaik there's no reason why you couldn't share it
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,985
3,715
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
I have no idea what @BlackMesa123 did and changed in his custom recovery kernel...
Was it a stock kernel or a custom permissive kernel ? I don't know !

You both are pretending you didn't encounter any issues with whatever partitions so I suspect you are both using a custom kernel as @BlackMesa123 released his own custom kernel in this A528B section and you're probably using a custom kernel with your custom ROM either... ^^

Every Samsung device to my knowledge uses a custom kernel built specifically for TWRP since it is necessary in order to disable some Samsung security drivers that may cause issues. Kernel source code for the A52s TWRP can be found in OP (GitHub) and it's basically a stock kernel with permissive SELinux and other important adjustments such as the touch screen drivers fix required for this specific device. I can assure you either kernel or SELinux has nothing to do with your issue, also the TWRP internal testing were also done when my custom kernel wasn't still a thing...
 

PalmerBE

Member
Nov 11, 2021
30
4
Samsung Galaxy A52s 5G
Hi there,
I have the TWRP 3.7.0-3 installed but I do not see a way to resize the /system partition via the Advanced Wipe menu.
Am I missing something? As the name changed ?

My issue is that on LinOS19 I am not able to install OpenGapp-(anysize) nor MindtheGapp.
I get Error 70 and apparently this is solvable only increasing the size of the /systems partition.
Any suggestion?
 

Attachments

  • IMG_20230320_120730.resized.png
    IMG_20230320_120730.resized.png
    797.1 KB · Views: 20

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,985
3,715
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
Hi there,
I have the TWRP 3.7.0-3 installed but I do not see a way to resize the /system partition via the Advanced Wipe menu.
Am I missing something? As the name changed ?

My issue is that on LinOS19 I am not able to install OpenGapp-(anysize) nor MindtheGapp.
I get Error 70 and apparently this is solvable only increasing the size of the /systems partition.
Any suggestion?
Resizing dynamic partitions works differently than resizing physical ones, I suggest you to install a GSI with included GApps or use a systemless method (Magisk module) to install them.
 

jxmodi

Senior Member
Jul 18, 2012
161
15
Pune
Asus Zenfone Max Pro M2
i am able to flash GSI PE13+ rom , 5g/4g internet working. but calling & Sms not working...
i change setting
RIL
Misc > Automatic restart RIL > Enable it.
but atill not working.
So want proper guidence from you to make one tutorial on Flashing GSI rom that works perfectly.
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,985
3,715
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
i am able to flash GSI PE13+ rom , 5g/4g internet working. but calling & Sms not working...
i change setting
RIL
Misc > Automatic restart RIL > Enable it.
but atill not working.
So want proper guidence from you to make one tutorial on Flashing GSI rom that works perfectly.
This is unrelated to TWRP, please post this in a proper thread.
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,985
3,715
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
& one proper guide on
Bootloader/Modem collection:
GitHub
which have 9 files. please explain how to use each file.
Those files are extracted from the stock firmware to avoid users downloading a 9GB file each time a new firmware is out, each GH release contains bootloader/modem/csc Odin tar, patched vbmeta Odin tar, stock kernel binaries Odin tar and stock vendor.img partition.
 

PalmerBE

Member
Nov 11, 2021
30
4
Samsung Galaxy A52s 5G
Resizing dynamic partitions works differently than resizing physical ones, I suggest you to install a GSI with included GApps or use a systemless method (Magisk module) to install them.
Hi BlackMesa,
I tried with the Magisk( 25.02) GappCore but I get Googleplay stopping avery few minutes.
I guess I need to ask help there. of fond a Lin19 with a pico gapp in it.

Cheers
 

batam

Senior Member
Oct 27, 2006
173
23
Hello !
May I ask what is missing to have decryption working with pin/fingerprint/scheme ?

Thanks.
 

batam

Senior Member
Oct 27, 2006
173
23
Hi,
Me again. Does backup / restore work ?
Which partitions should be backed up exactly, please ?

Thanks.
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,985
3,715
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
Hello !
May I ask what is missing to have decryption working with pin/fingerprint/scheme ?

Thanks.
Samsung has added additional code in their vold service which is Knox related, the only way to fix decrypt with One UI with TWRP is by adding the required code in the TWRP vold service (https://github.com/TeamWin/android_system_vold), so far my attempts were unsuccesful. Decrypt with PIN/password does work fine on AOSP-based ROM's.
 
  • Like
Reactions: batam

batam

Senior Member
Oct 27, 2006
173
23
It all depends on what are you trying to backup.
- Kernel (Boot, DTBO, Vendor_boot)
- OS (Super)
- Data
- CSC (OMR, Prism, Optics)
- Device-specific data (EFS, Sec_EFS)
Thanks.
Just trying to have a way to revert back to NCX + MCK kernel easily after trying AOSP.

Last time I tried to restore all partitions after trying LineageOS I ended up either stuck on Samsung Logo or in a bootloop.
Restore log showed one of the partitions could not be restored because of an encryption error (default password not accepted or something). Unfortunately, as I do not want to bother people here, I did not keep the logs... and I had to format everything and reflash stock and reconfigure everything.
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,985
3,715
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
Thanks.
Just trying to have a way to revert back to NCX + MCK kernel easily after trying AOSP.

Last time I tried to restore all partitions after trying LineageOS I ended up either stuck on Samsung Logo or in a bootloop.
Restore log showed one of the partitions could not be restored because of an encryption error (default password not accepted or something). Unfortunately, as I do not want to bother people here, I did not keep the logs... and I had to format everything and reflash stock and reconfigure everything.

A backup of boot, vendor_boot, dtbo, super and data should be enough to achieve what you wanted to do. Remember you must disable PIN/password in One UI when booting in TWRP in order to mount and backup your data partition correctly.
 

batam

Senior Member
Oct 27, 2006
173
23
A backup of boot, vendor_boot, dtbo, super and data should be enough to achieve what you wanted to do. Remember you must disable PIN/password in One UI when booting in TWRP in order to mount and backup your data partition correctly.
I'll give a try with those partitions then.
Thanks a lot for your help.
 

HahaShampoo

Member
Apr 25, 2023
13
3
Australia
Thanks.
Just trying to have a way to revert back to NCX + MCK kernel easily after trying AOSP.

Last time I tried to restore all partitions after trying LineageOS I ended up either stuck on Samsung Logo or in a bootloop.
Restore log showed one of the partitions could not be restored because of an encryption error (default password not accepted or something). Unfortunately, as I do not want to bother people here, I did not keep the logs... and I had to format everything and reflash stock and reconfigure everything.
I've put this in @ShaDisNX255 thread for NcX, coming from AOSP to NcX WILL require a re-flash of stock firmware or you will get a bootloop I've found out.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hello !
    May I ask what is missing to have decryption working with pin/fingerprint/scheme ?

    Thanks.
    Samsung has added additional code in their vold service which is Knox related, the only way to fix decrypt with One UI with TWRP is by adding the required code in the TWRP vold service (https://github.com/TeamWin/android_system_vold), so far my attempts were unsuccesful. Decrypt with PIN/password does work fine on AOSP-based ROM's.
    1
    Hi,
    Me again. Does backup / restore work ?
    Which partitions should be backed up exactly, please ?

    Thanks.
    It all depends on what are you trying to backup.
    - Kernel (Boot, DTBO, Vendor_boot)
    - OS (Super)
    - Data
    - CSC (OMR, Prism, Optics)
    - Device-specific data (EFS, Sec_EFS)
    1
    A question comes to my mind : Do you format data before restoring the backup (going from crDroid back to NCX) ?
    Yes, I format data (because it gets encrypted if I input a password) then reboot to recovery and proceed to restore my NcX backup
    1
    Tks... @BlackMesa123 all good now... had to flash stock rom first though since I had sone multiple things earlier and had some bootloop issues. But now all good and custom rom etc installed. Tks again. Cheers!
    1
    Hello I'm having an issue while trying to enter TWRP after I updated my one ui to may update I can't enter twrp recovery mode I can enter it while doing a format
    Even on lineage os and crdroid I still can't enter twrp I'm doing volume down + power button they don't work I'm lucky that I flashed magisk to enter recovery mode can you please check this issue if I'm the only one who's having it
    You have to connect your phone to pc with usb cable. Then, press and hold VOLUME UP + POWER KEY. When the bootloader unlocked warning appear , release the power button, keep hold Volume Up 15s
  • 31
    Team Win Recovery Project

    Code:
    #include <std_disclaimer.h>
    
    /*
    * 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 doing this to your device
    * 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.
    */

    home.png
    backupname.png


    Disclaimer:
    • I am not responsible about any damage of any kind that this custom binary may cause.
    • Please pay attention to this post & related ones before proceeding and follow the guide correctly. I will not offer support for any issues that have been already stated.
    • Your Knox Warranty Bit will be blown once you flash this or others custom binaries, preventing you to use Knox features. It can't be resetted in any way, so think twice before flashing this.
    • Bugs can be reported here in XDA or via the community's Telegram Group. Please be more clear as possible and make sure you provide detailed info when reporting bugs.

    What's TWRP?

    Oh come on, you know what it is - don't try to fool me!
    In case you're serious, though...

    Team Win Recovery Project is a custom recovery for Android devices.
    It allows you to back up and restore your data, flash custom ROMs to your device, repair broken file systems, root your device and more.

    Read more about TWRP here: https://twrp.me/about/

    How do I flash and set it up correctly?


    Please notice that the following guide is meant for full stock devices, if you've already rooted your device you can skip it and flash directly the recovery without any extra steps.

    Before starting, make sure to backup all your data and important files stored in your phone, since this procedure will format your data partition.

    • Open the Settings app, enter Developer Options and enable OEM unlocking (If you don't see Developer Options, enter into About phone>Software info and tap "Build number" 10 times to show it).
    • Enter Download Mode: to do so power off your device, connect it to a computer via an USB cable and hold both volume up and volume down buttons.
    • Long press volume up to unlock the bootloader. This will wipe your data and your phone will automatically reboot.
    • Go through the initial setup. Skip through all the steps since data will be wiped again later. Make sure to connect the device to Internet during the setup.
    • Enter Developer Options and check that the OEM unlocking option exists and is grayed out. This means our bootloader is unlocked and your phone has no KnoxGuard lock set.
    • Connect your phone to your PC and boot in Download Mode (power off your device and hold both volume up and volume down buttons).
    • Open Odin3, select the TWRP tar by clicking the "AP" button and the patched vbmeta tar by clicking "USERDATA", then press the Start button.
    • Reboot your phone in recovery mode: while it still plugged in your PC, hold both the power and volume up buttons.
    • Once TWRP has booted you need to format again your data partition in order to be able to boot in system again. To do so touch Wipe>Format Data and follow the instructions in screen.

    Bugs:
    • Decryption will only work if no password/PIN/pattern is set in Android (One UI).

    Download:

    Galaxy A52s 5G (a52sxq):
    twrp.me

    Bootloader/Modem collection:
    GitHub


    Sources:


    Kernel source code: https://github.com/BlackMesa123/android_kernel_samsung_sm7325/tree/sep-14/twrp-12.1
    Device tree: https://github.com/TeamWin/android_device_samsung_a52sxq


    Changelog:


    Check Post #2.

    A52s 5G Community Telegram Groups:


    General
    Development

    Credits:

    Samsung for the kernel source code
    TeamWin for their awesome recovery
    @Captain_Throwback for his help and troubleshooting
    @ShaDisNX255 & @ronardnx for testing out the recovery
    14
    Changelog:

    Please note that this only includes device-specific changes. For global TWRP changes, go to twrp.me.

    20230104 (3.7.0_12-3)
    - Fix /vendor backup restoring

    20221224 (3.7.0_12-2)
    - Updated kernel to DVK5
    - Support Android 13 decrypt with no password
    - Fix /efs, /sec_efs backup

    20221208 (3.7.0_12-1)
    - Fix fastbootd
    - Disable stock recovery patching in /vendor

    20221012 (3.7.0_12-0)
    - First release
    14
    Really proud to announce that my request to became the official TWRP maintainer for Galaxy A52s has been accepted! Link in the main thread has been updated to now redirect directly to the twrp.me page of this device.
    9
    It's been a while since I released something here in XDA. I'm happy to join the modding train again with this custom recovery, hoping to see more cool stuff come out for this device soon 😄
    5
    A new minor version of the recovery is now available in twrp.me for download.