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

Search This thread

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,921
3,643
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
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.

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
 
Last edited:

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,921
3,643
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
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
 
Last edited:

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,921
3,643
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
Hi, gr8 to see TWRP for this device.
If my phone is already rooted, can I just install without data loss?
Am a bit also confused with all this files.. i suppose recovery image is the only thing needed for a allready rooted phone right?

Yes, the guide is for those that are starting with an unrooted device. If you already had the old TWRP or have installed a patched vbmeta you can just flash the new recovery.img without any extra steps
 
Yes, the guide is for those that are starting with an unrooted device. If you already had the old TWRP or have installed a patched vbmeta you can just flash the new recovery.img without any extra steps
Ok i was rooted and i passed only the recovery. Now i rebooted in twrp and the phone asks for a password of myne... i tried to put my pin and then it tries to decrypt FBE it says for user 0 but stays there for ever...
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,921
3,643
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
Ok i was rooted and i passed only the recovery. Now i rebooted in twrp and the phone asks for a password of myne... i tried to put my pin and then it tries to decrypt FBE it says for user 0 but stays there for ever...
Seems like decrypt currently works when no lockscreen password/PIN is set. I'm going to look at this
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,921
3,643
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
I changed to pattern and the same is huppening. If i try to change to nothing it will remove my fingerprints etc.. its not biggy but this could be a solution for me?
Unfortunately with the current build you'll have to choose between disabling encryption in your /data partition or remove any kind of lockscreen protection. I'm already working on fixing this issue, found out it's due to gatekeeper not working correctly
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,921
3,643
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
No worries m8, take your time and again thank you for this.
I have some bad news: unfortunately decrypt with password/PIN set in lockscreen is not supported in the TWRP itself, so posting a new build with fixed gatekeeper would be useless anyway. As soon as the android-12.1 TWRP branch fixes this issue I'll be posting a new build for the recovery, hoping this issue will be addressed asap
 

Top Liked Posts

  • There are no posts matching your filters.
  • 30
    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.

    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
    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.
    13
    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
    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.