Development [Recovery] [A325x] [Stable-ish, Unofficial] TWRP 3.7.0_12.1 - Galaxy A32 4G

Search This thread

Prove N.

Senior Member
Aug 23, 2015
242
230
teamwin-recovery-project-twrp-logo.jpg

Code:
#include <not_my_phone.h>
#include <std_disclaimer.h>
/*
* Your warranty is... still valid?
*
* 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 Recovery
* 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.
*/

TWRP 3.7.0_12.1 - Samsung Galaxy A32 4G




Current Status: Stable-ish

Supported Models:
  • SM-A325F: tested by @Long266 .
  • SM-A325M: tested by @Melky777 .
  • SM-A325N: not tested.
Bugs known so far:
  • TWRP cannot decrypt userdata if you set lockscreen. (one said it works, other it doesn't, so idk I'll just leave it here, YMMV)
  • Flashing anything shows many "unlock" red lines. (They are currently harmless by our knowledge).
  • USB-OTG
<!> There can be many more bugs unknown to me and testers. Report as soon as you face problem. ;)

<!> PSA: I don't have the device to verify some of these bugs.


Download:

Install:

If you have TWRP or any custom recovery installed and bootable, you can upgrade instead; Look below.

<!> the installation will require WIPING DATA. You will also lose access to all Knox-based solutions like Secure Folder.
Backup every precious data you have on your phone.

<!> PC is required. Windows is preferred. (You probably know what you are doing when using Linux/Heimdall. We don't talk about Macs)
  • Unlock Bootloader:
    1. Go to Settings > About Phone > About Software. Tap build number (10 times) until "you are now a developer" toast shows up.
    2. Go back, go to Developer Settings.
    3. Turn on OEM unlock toggle.
    4. Turn off your phone, hold vol-up + vol-down, then plug in charging cable (please don't use 3rd-party charging-only cable, it must have data transfer capability).
      Your device will boot into download mode with a warning. Accept it.

    5. Hold volume-up until the phone shows the bootloader unlock panel "Unlock Bootloader?".
    6. Press volume-up again. Now your phone bootloader is unlocked.
      <!> It will now begin the process of wiping data. Let it do its job.
    7. When it reboots to OS, finish setting up your device.
      Double check to make sure OEM Unlock is still ON.
      ‎ ‎
  • Preparing for the installation:
    1. Download everything above onto your PC.
    2. Install Samsung USB Driver.
    3. Open Odin.
    4. Connect your phone to your PC. There should be a COM entry on the top.
    5. Make sure your phone is in Download Mode. (see step 4 of section Unlock Bootloader)
    6. Make sure that OEM LOCK and REACTIVATION LOCK on your screen show "OFF". If it's not off, DO NOT PROCEED ANY FURTHER.

      <!> For those with lock ON, use your device for 7 days without rebooting once. Then check the locks above again.
      ‎  
  • Installing:
    1. Ensure phone is in Download mode.
    2. In Odin:
      • Load in Userdata: VBMeta_disabler.tar file.
      • Load in AP: TWRP TAR file.
    3. Prepare yourself. keep your hand on Volume-up and Power button (don't press yet).
    4. In Odin, press Start. It will flash, then reboot. When the screen turned off, quickly press Vol-up and Power button to boot to recovery (this should take about 20~30 seconds).
      <!> You should have TWRP up and running now.
      ‎  
  • Post-Installation:
    • MUST: Trigger Multi-disabler.
      1. In TWRP, go to Advanced > Terminal.
      2. Type multidisabler, then enter. If it fails with something about vendor free space, run it again.
      3. Run multidisabler again.
      4. Go to main screen. go to Wipe > Format Data, type yes then swipe.
      5. Reboot to Recovery. Now you can do other stuff.
    • Should: Backup all vital partitions:
      1. In TWRP, go to Backup
      2. Backup: EFS, Modem, NVRAM.

  • Enjoy: Reboot your phone to have a rooted stock, install custom stuff or do whatever you want.


Upgrade:

<!> Use when you already have any custom recovery installed (TWRP, SHRP, Ofox and the likes)
  • Download the tar recovery image, then extract it to get recovery.img
  • Copy it to phone, then reboot to TWRP (Combo is Power + Volume-up)
  • Go: Install > Install image > select recovery.img file > select Recovery
  • Swipe to confirm flashing.
  • If success, reboot to recovery.
<!> You can also use Odin to upgrade, the steps similar to the Install section. All Post-installation, if already done, is unnecessary to do again.

GSI and related stuff:

GSI should be directly flashable now. Big credit to @Long266
  • Install TWRP, do all the instructions.
  • Download a GSI. Phh's is a good start.
  • If downloaded a compressed file (the extension is not .IMG; e.g: `gsi.img.gz` ), extract it to get an IMG file. Copy the IMG file to your phone.
  • Reboot into TWRP.
  • Tap Install > Install Image > Select your GSI .img file.
  • Select System Image, then flash.
  • If previously you were on stock, Wipe > Format data.
  • Reboot System.
  • Profit.


Source codes:

Credits:
  • Devs involved in the making and maintaining of TWRP, twrpdtgen, Magisk and base software.
  • All the Testers.
  • @Long266 as tester, collab-dev.
  • @ianmacd for multidisabler.
  • @afaneh92 for a32x base tree and MTK-Samsung multidisabler.
  • @dronkit and @Mighty_Rearranger for Magisk-IMEI fix on MTK devices.
  • @klfld for GSI installation guide.

Older Release(s):


Footer Infos:

Status: Beta
Current Stable Version: 3.7.0_12.1
Created: 2022-03-24
Last Updated: 2022-07-03
 
Last edited:

Prove N.

Senior Member
Aug 23, 2015
242
230
I can't install large IMG files to internal memory? For example a gsi?
I should clarify that I don't own the device and all the testing was/is done by @Long266 .
These specific questions should be inquired to him instead (on his thread here: https://forum.xda-developers.com/t/...hawk-recovery-project-3-1-2021-03-24.4420469/ ).


Anyways, the bug that you are mentioning means that you can't flash images FROM internal SD card. GSI and image stuff should be flashable from other places like external SD or cache. Zip files are so far working as intended (as is they are flashable from anywhere).

To be fair, there could be flaws in his testing methodology and you should try it yourself.
 
  • Like
Reactions: CodeX1 and Melky777

Prove N.

Senior Member
Aug 23, 2015
242
230
Build 2022-03-25 changes:
  • Add backup entry for NVRAM, so in case Magisk messes up you still have a working copy intact.
  • Fix flashing image causing file size exceeded limit.
 

Melky777

Member
Dec 11, 2021
25
7
Brazil
It worked fine on the A325m, but I had NULL errors when I went to do some actions, and the USB OTG is not working!
 

YellowSM

New member
Mar 26, 2022
2
0
How to update the TWRP version if it is already installed?
Is it enough to just flash the new TWRP version in Odin?
Or do I need to do the same steps as with the first installation (i.e. multidisabler, etc)?
 

Prove N.

Senior Member
Aug 23, 2015
242
230
How to update the TWRP version if it is already installed?
Is it enough to just flash the new TWRP version in Odin?
Or do I need to do the same steps as with the first installation (i.e. multidisabler, etc)?

You can use the "install Image" under TWRP.
From the <!> For more info part, download .img file instead, copy it to your phone. Then go to TWRP > Install > Install Image > select TWRP img > select Recovery to flash.


If you've done, Post-installation steps are unnecessary to do again.


edit: upgrade section added to main post.
 
Last edited:

Mayann04

New member
Mar 30, 2022
1
0
How to deactive KC Client and
Knox Enrollment Service?
 

Attachments

  • Screenshot_20220330-103106_Settings.jpg
    Screenshot_20220330-103106_Settings.jpg
    149.4 KB · Views: 158

klfld

Member
Dec 12, 2021
13
37
Hi, I wanted to try a GSI with this, is it safe to try it? Thanks for developing this TWRP, I can help with testing too.
 

klfld

Member
Dec 12, 2021
13
37
Okay, I tested flashing phh's AOSP GSI, TWRP doesn't have the entry to flash to the dynamic partitions (system, vendor, product, etc). It can flash only to the super partition. Tried to flash the GSI there just in case, but i get a bootloop obviously. Restored successfully through ODIN. I wont test magisk because I don't want to lose IMEI.
 

Melky777

Member
Dec 11, 2021
25
7
Brazil
Okay, I tested flashing phh's AOSP GSI, TWRP doesn't have the entry to flash to the dynamic partitions (system, vendor, product, etc). It can flash only to the super partition. Tried to flash the GSI there just in case, but i get a bootloop obviously. Restored successfully through ODIN. I wont test magisk because I don't want to lose IMEI.
try flashing via fastboot!
I saw a video of a Brazilian doing it on the A22
 

klfld

Member
Dec 12, 2021
13
37
try flashing via fastboot!
I saw a video of a Brazilian doing it on the A22
I could install the Lineageos 19.1 GSI! I had to use this zip as a workaround ChonDoe_Flasher.zip, that allows flashing dynamic partitions even if the TWRP doesn't. I also made a treble overlay for this device (vendor.img), that fixes power profiles and all this stuff, ill upload it now if anyone is interested.

To flash the GSI you have to rename the .img file to system.img, put it in the same location than the zip and flash the zip. I have the scripts inside the zip to check if it didnt do anything weird and the source code seems safe, tried two GSIs today.

What doesnt work with the Lineage GSI or phh's AOSP is MTP and the fingerprint reader. Also i can't get encryption to work, the GSI crashes if i don't use multidisabler to remove encryption from the fstab. Everything else works flawlessly from my testing.

For file transfer i'm using ADB with this tool, it's even faster than MTP somehow Python ADB File Explorer

EDIT: Uploaded vendor.img with the overlay for this device, ill push the changes to github later.
Download here: vendor.img
 
Last edited:

Melky777

Member
Dec 11, 2021
25
7
Brazil
I could install the Lineageos 19.1 GSI! I had to use this zip as a workaround ChonDoe_Flasher.zip, that allows flashing dynamic partitions even if the TWRP doesn't. I also made a treble overlay for this device (vendor.img), that fixes power profiles and all this stuff, ill upload it now if anyone is interested.
What doesnt work with the Lineage GSI or phh's AOSP is MTP and the fingerprint reader. Also i can't get encryption to work, the GSI crashes if i don't use multidisabler to remove encryption from the fstab. Everything else works flawlessly from my testing.
Very good job!!!
Makes a topic, I think I'm not the only one who wants to install a GSI.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    teamwin-recovery-project-twrp-logo.jpg

    Code:
    #include <not_my_phone.h>
    #include <std_disclaimer.h>
    /*
    * Your warranty is... still valid?
    *
    * 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 Recovery
    * 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.
    */

    TWRP 3.7.0_12.1 - Samsung Galaxy A32 4G




    Current Status: Stable-ish

    Supported Models:
    • SM-A325F: tested by @Long266 .
    • SM-A325M: tested by @Melky777 .
    • SM-A325N: not tested.
    Bugs known so far:
    • TWRP cannot decrypt userdata if you set lockscreen. (one said it works, other it doesn't, so idk I'll just leave it here, YMMV)
    • Flashing anything shows many "unlock" red lines. (They are currently harmless by our knowledge).
    • USB-OTG
    <!> There can be many more bugs unknown to me and testers. Report as soon as you face problem. ;)

    <!> PSA: I don't have the device to verify some of these bugs.


    Download:

    Install:

    If you have TWRP or any custom recovery installed and bootable, you can upgrade instead; Look below.

    <!> the installation will require WIPING DATA. You will also lose access to all Knox-based solutions like Secure Folder.
    Backup every precious data you have on your phone.

    <!> PC is required. Windows is preferred. (You probably know what you are doing when using Linux/Heimdall. We don't talk about Macs)
    • Unlock Bootloader:
      1. Go to Settings > About Phone > About Software. Tap build number (10 times) until "you are now a developer" toast shows up.
      2. Go back, go to Developer Settings.
      3. Turn on OEM unlock toggle.
      4. Turn off your phone, hold vol-up + vol-down, then plug in charging cable (please don't use 3rd-party charging-only cable, it must have data transfer capability).
        Your device will boot into download mode with a warning. Accept it.

      5. Hold volume-up until the phone shows the bootloader unlock panel "Unlock Bootloader?".
      6. Press volume-up again. Now your phone bootloader is unlocked.
        <!> It will now begin the process of wiping data. Let it do its job.
      7. When it reboots to OS, finish setting up your device.
        Double check to make sure OEM Unlock is still ON.
        ‎ ‎
    • Preparing for the installation:
      1. Download everything above onto your PC.
      2. Install Samsung USB Driver.
      3. Open Odin.
      4. Connect your phone to your PC. There should be a COM entry on the top.
      5. Make sure your phone is in Download Mode. (see step 4 of section Unlock Bootloader)
      6. Make sure that OEM LOCK and REACTIVATION LOCK on your screen show "OFF". If it's not off, DO NOT PROCEED ANY FURTHER.

        <!> For those with lock ON, use your device for 7 days without rebooting once. Then check the locks above again.
        ‎  
    • Installing:
      1. Ensure phone is in Download mode.
      2. In Odin:
        • Load in Userdata: VBMeta_disabler.tar file.
        • Load in AP: TWRP TAR file.
      3. Prepare yourself. keep your hand on Volume-up and Power button (don't press yet).
      4. In Odin, press Start. It will flash, then reboot. When the screen turned off, quickly press Vol-up and Power button to boot to recovery (this should take about 20~30 seconds).
        <!> You should have TWRP up and running now.
        ‎  
    • Post-Installation:
      • MUST: Trigger Multi-disabler.
        1. In TWRP, go to Advanced > Terminal.
        2. Type multidisabler, then enter. If it fails with something about vendor free space, run it again.
        3. Run multidisabler again.
        4. Go to main screen. go to Wipe > Format Data, type yes then swipe.
        5. Reboot to Recovery. Now you can do other stuff.
      • Should: Backup all vital partitions:
        1. In TWRP, go to Backup
        2. Backup: EFS, Modem, NVRAM.

    • Enjoy: Reboot your phone to have a rooted stock, install custom stuff or do whatever you want.


    Upgrade:

    <!> Use when you already have any custom recovery installed (TWRP, SHRP, Ofox and the likes)
    • Download the tar recovery image, then extract it to get recovery.img
    • Copy it to phone, then reboot to TWRP (Combo is Power + Volume-up)
    • Go: Install > Install image > select recovery.img file > select Recovery
    • Swipe to confirm flashing.
    • If success, reboot to recovery.
    <!> You can also use Odin to upgrade, the steps similar to the Install section. All Post-installation, if already done, is unnecessary to do again.

    GSI and related stuff:

    GSI should be directly flashable now. Big credit to @Long266
    • Install TWRP, do all the instructions.
    • Download a GSI. Phh's is a good start.
    • If downloaded a compressed file (the extension is not .IMG; e.g: `gsi.img.gz` ), extract it to get an IMG file. Copy the IMG file to your phone.
    • Reboot into TWRP.
    • Tap Install > Install Image > Select your GSI .img file.
    • Select System Image, then flash.
    • If previously you were on stock, Wipe > Format data.
    • Reboot System.
    • Profit.


    Source codes:

    Credits:
    • Devs involved in the making and maintaining of TWRP, twrpdtgen, Magisk and base software.
    • All the Testers.
    • @Long266 as tester, collab-dev.
    • @ianmacd for multidisabler.
    • @afaneh92 for a32x base tree and MTK-Samsung multidisabler.
    • @dronkit and @Mighty_Rearranger for Magisk-IMEI fix on MTK devices.
    • @klfld for GSI installation guide.

    Older Release(s):


    Footer Infos:

    Status: Beta
    Current Stable Version: 3.7.0_12.1
    Created: 2022-03-24
    Last Updated: 2022-07-03
    5
    try flashing via fastboot!
    I saw a video of a Brazilian doing it on the A22
    I could install the Lineageos 19.1 GSI! I had to use this zip as a workaround ChonDoe_Flasher.zip, that allows flashing dynamic partitions even if the TWRP doesn't. I also made a treble overlay for this device (vendor.img), that fixes power profiles and all this stuff, ill upload it now if anyone is interested.

    To flash the GSI you have to rename the .img file to system.img, put it in the same location than the zip and flash the zip. I have the scripts inside the zip to check if it didnt do anything weird and the source code seems safe, tried two GSIs today.

    What doesnt work with the Lineage GSI or phh's AOSP is MTP and the fingerprint reader. Also i can't get encryption to work, the GSI crashes if i don't use multidisabler to remove encryption from the fstab. Everything else works flawlessly from my testing.

    For file transfer i'm using ADB with this tool, it's even faster than MTP somehow Python ADB File Explorer

    EDIT: Uploaded vendor.img with the overlay for this device, ill push the changes to github later.
    Download here: vendor.img
    2
    TWRP-12.1 for A32 4G is out. Bugs are mostly the same but at least this is bootable on stock OneUI 4. :v


    I did make a change to TWRP flags (here),
    Would've love if someone can test installing GSI without needing additional mods like in the guide.
    (of course, don't do this if you don't have backups of everything)
    2
    I can't install large IMG files to internal memory? For example a gsi?
    I should clarify that I don't own the device and all the testing was/is done by @Long266 .
    These specific questions should be inquired to him instead (on his thread here: https://forum.xda-developers.com/t/...hawk-recovery-project-3-1-2021-03-24.4420469/ ).


    Anyways, the bug that you are mentioning means that you can't flash images FROM internal SD card. GSI and image stuff should be flashable from other places like external SD or cache. Zip files are so far working as intended (as is they are flashable from anywhere).

    To be fair, there could be flaws in his testing methodology and you should try it yourself.
    2
    I could install the Lineageos 19.1 GSI! I had to use this zip as a workaround ChonDoe_Flasher.zip, that allows flashing dynamic partitions even if the TWRP doesn't. I also made a treble overlay for this device (vendor.img), that fixes power profiles and all this stuff, ill upload it now if anyone is interested.
    What doesnt work with the Lineage GSI or phh's AOSP is MTP and the fingerprint reader. Also i can't get encryption to work, the GSI crashes if i don't use multidisabler to remove encryption from the fstab. Everything else works flawlessly from my testing.
    Very good job!!!
    Makes a topic, I think I'm not the only one who wants to install a GSI.