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

Search This thread

Arobase404

Member
Sep 13, 2022
42
9
A new minor version of the recovery is now available in twrp.me for download. Wish you all a Merry Christmas!

Thank you very much for TWRP update !!! (y)

I had to reboot 2 times in recovery mode and then 1 time in working Android system and finally back to recovery before I could do a full and reliable backup of CVL2 version. Yeah !

ATM I'm on the way to restore older CVI6 backup before restoring CVL2 to be sure there is no problem...

Merry Christmas to you and to you all
 

Arobase404

Member
Sep 13, 2022
42
9
Hi BlackMesa,
- The recovery key combo is clear. Unfortunately they often don't work.
- I will love to see your new TWRP version.
Thanks for all the effort you are putting into it.

If you have Magisk installed you can boot directly into recovery mode without caring about physical buttons or the cable attached onto your PC !!! ;)

Hi,

Thank you! I've repeated the installation with the new TWRP file. Installation was no problem.
Then I tried to install the GSI file and got the same error as before:
"Invalid zip file format!
Error installing zip file '/external_sd/AOSP/aosp_arm64-exp-T1B3.221003.003-9173718-7eba5aba.zip'

then it ended with:
updating partition details...
... done

Any suggestions?
Thanks! I made a wrong assumption. I'll investigate and try again.

You can try to uncheck/untick "Skip Digest check before installing zip" option before you install any zip file including your GSI file...
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,921
3,643
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
You can try to uncheck/untick "Skip Digest check before installing zip" option before you install any zip file including your GSI file...

The error clearly says the zip file is “unvalid”, meaning it’s not a flashable zip. Most GSI’s aren’t packed as flashable zips and are instead just compressed archives with the system.img inside them.
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,921
3,643
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
Unfortunately your new TWRP version failed to restore my CVI6 backup and it stops at the Vendor partition (Tried two times)... :(

I'll try to restore the CVL2 backup and I hope it will pass or I'll be in a bad position... ^^

I don’t see how I can help you without any helpful details. Which partitions are you trying to restore exactly? Can you send the “recovery.log” file with the error?
 

Arobase404

Member
Sep 13, 2022
42
9
I don’t see how I can help you without any helpful details. Which partitions are you trying to restore exactly? Can you send the “recovery.log” file with the error?

Well, this latest TWRP is unable to restore both "Vendor Boot" and "Vendor Image" partition and the restore operation just stops at this position with just a "Failed" message.
When I untick both Vendor partitions, looks like all other partitions are restored even though I lost at least my "Color Note" app and its widget on the welcome screen. Don't know how this app and its widget can be related with the Vendor partitions and as the data folder was also not restore in the internal storage... ^^
In fact, some other apps also disapear such as my "Secure Folder" (not very important at this stage as it was empty) but also the "Galaxy Health" and probably some others...
Many other internal folders were also not restore... ^^

I'll try to send you the "recovery.log" file in PM next time I will do a restore.

Merry Christmas once again ;)
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,921
3,643
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
Well, this latest TWRP is unable to restore both "Vendor Boot" and "Vendor Image" partition and the restore operation just stops at this position with just a "Failed" message.
When I untick both Vendor partitions, looks like all other partitions are restored even though I lost at least my "Color Note" app and its widget on the welcome screen. Don't know how this app and its widget can be related with the Vendor partitions and as the data folder was also not restore in the internal storage... ^^
In fact, some other apps also disapear such as my "Secure Folder" (not very important at this stage as it was empty) but also the "Galaxy Health" and probably some others...
Many other internal folders were also not restore... ^^

I'll try to send you the "recovery.log" file in PM next time I will do a restore.

Merry Christmas once again ;)

It seems more like a faulty backup/damaged data partition rather than an issue in the recovery itself, again without more details (such as logs) I can't say for sure.
 

Arobase404

Member
Sep 13, 2022
42
9
It seems more like a faulty backup/damaged data partition rather than an issue in the recovery itself, again without more details (such as logs) I can't say for sure.

I tried with both an older CVI6 backup created with twrp-3.6.2_12-1-a52sxq-20220904.tar and a totally fresh CVL2 backup created with your latest TWRP with the same result.
I ticked the "Enable Digest Verification of backup files" option and all seem to be alright but as I said the restore operation stops at the "Vendor partitions".
If I try to restore only the vendor partitions the "Failed" error appears immediately !

I'm not in a hurry so we can wait for one or two days... :)
 

dornz

Senior Member
Feb 19, 2013
553
102
Screenshot_20221226_183037_Root Checker Basic.jpg
 
  • Like
Reactions: kingman90

kingman90

Member
Nov 6, 2022
10
5
Samsung Galaxy A52s 5G
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
If i do this, will i get twrp and root both?
 
  • Like
Reactions: dornz

Arobase404

Member
Sep 13, 2022
42
9
My device fw is
(A528BXXS1DVL2 / A528BOJM1DVK5 / A528BXXU1DVK5)
Will this twrp (a52sxq) work fine?

Well, depends what you call working fine... ^^

I'm just surprise nobody even truly tested it doing a full backup and then trying to restore the same backup and as nobody reported theses issues !!! :(

Here is the picture of the result when I tried to do a full restore : it just stops with a Failed message when it encounters both "Vendor Boot" and/or "Vendor system" partitions.

After a reboot the Navbar has disappeared until we do reboot the phone.
If we do a backup in the internal storage the TWRP folder can be seen with Samsung filemanager and thus is just invisible !!!

The recovery.log file has been sent to you privately.

Happy New Year 2023 to you and you all
 

Attachments

  • 20230103_190139.jpg
    20230103_190139.jpg
    1.7 MB · Views: 16
  • Like
Reactions: kingman90

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.