[Samsung Galaxy A32 4G] Franzyy:
this guide is about to very long. RIP to my hands later on.

Chapter 1: Downloading the stuff.

First, go to this site here

Then type "A325F" in the "Enter device name or model code"

Now look for your country flag and click on it, for me its Austria.

Now you will be redirected to a new site. Download the latest firmware. For me it is "A325FXXU2BVG3"

Click on the "A325FX..", and now click on "Download SamFw server". The download will now start.

After the download has finished, open the file and copy the AP file somewhere

CHAPTER 2 - *REQUIRED*: Installing Debian (or dual boot it)

I'd recommend a old PC that you dont use anymore.

Now go to this site here, and then click on "firmware-11.4.0-amd64-DVD-1.iso" which has non free firmware, which is important for some PC's.

Now, get a USB that is larger than 8GB, download Rufus.

Now open Rufus, plug the USB in.

Now check on the drop down list at the beginning if the USB is selected.

Now click on "CHOOSE" and then choose the debian iso we downloaded.

Then change partiton scheme to "GPT", if your PC has UEFI, else leave the partiton scheme as it be.

Click on "START".

After it says FINISHED, reboot your PC and boot into BIOS. (I dont know what bios you have, but the steps are hopefully the same.)

Go to Boot then enable "F12 opens Boot device selector" (The name may also be "F12 Boot Select")

Then save changes, then press F12, so that it opens a BIOS UI like device selecor. select the USB device.

After you select the usb device, and debian opens its setup, install Debian. Make sure that you click on "All files on one partiton (perfect for beginners)"

After you install debian, boot back into Windows (unless you uninstalled it). Do you still remember the AP file? Format the USB stick to NTFS, then copy the AP file to the USB and then boot back into Debian and copy into the Documents folder, or downloads folder, it is not important for now, just make sure that you remember its location. Now go to this XDA thread and download the repacksuper.sh file. Now downlaod the Phh treble gsi, but please look at the file name at the gsi before you download it.

Open terminal and type "sudo apt install simg2img xz-utils lz4 unzip gzip jq file"

Make sure that there is no "arm32" "vndklite" in the file name. arm64 is allowed, but dont use the vndklite version.

If you wonder what these floss, gapps mean:

"floss" stands for Free Libre Open Source Software, this means open source instead of Google apps

"gapps" is AOSP with Google Apps

"gogapps" is Google Go Apps

"vanilla" is just AOSP without any extensions

I recommend the Floss or GApps version.

Then go and extract repacksuper.sh to any folder (for me it is Documents).

Then put the AP file and the AOSP one into the repacksuper.sh folder.

Right click and press on "Open in terminal"

Now type ./repacksuper.sh . *File name of the phh-treble AOSP* aosp.tar (you can of course put a different name instead of aosp, but make sure that the .tar at the end is ".tar" !)

Example: ./repacksuper.sh . system-squeak-arm64-ab-gapps.img.xz oneuiisamistake.tar

Ignore the Invalid sparse file format at header magic error, this is a false error.

After it is finished (you can see it that it says your username@debian (i think) )

Copy the aosp.tar to your USB stick and boot back into windows.

Now extract the entire A32 firmware folder to a zip folder with winrar.

Example of my folder.

Now download Odin. then open it. Press ok when this message appears.

Then plug in the usb cable

Now put your phone into Download mode. (Shut down, then press volume up and down button at the same time while inserting usb cable into your phone). If there is a blue screen showing, press up button. Then go to this XDA thread and download the VBmeta disabler (and TWRP if you want twrp for your phone too.) direct link

Open ODIN, ,make sure phone is click on Options and disable Auto reboot

click on the AP button and select the vbmeta.tar and click on START. after it says Pass. Press On off button and volume down button to go out of the download mode. did we install the GSI now. Nope not yet. Go to download mode again, then put the contents of your A32 firmware folder which you extracted in these slots:

AP_A325F... = AP slot

BL_A325F... = BL slot

CP_A325F... = CP slot

CSC_A325F... = CSC slot

then click on start one again.

Then press on off button and then go to download mode once again.

Now click on the AP slot button and select the .tar file we made with repacksuper.sh earlier (AOSP.tar) then click on start. If the phone bootloops, do a factory and a cache reset in recovery mode

PROS AND CONS:

Pros:

Looks cleaner

stock android feel

Is faster

IMEI bug fixed

You can choose level of brightness of flashlight in the phh treble settings.

Built in screen recorder

Phh treble settings where you can customize even more things (where some features are important, read down below what id recommend to turn on)

Cons:

Lockscreen bug where the text overlaps the unlock icon.

Has a bad camera app as default, Id recomend PenguinGCam

Status bar is too far up. Go to developer options, then scroll down until you find Display cutout and choose high cutout, reboot, it is fixed, but it has a larger notch. I hope that the larger notch wont annoy you.

Lags on the app switcher and start screen. This is a AOSP issue: Github issue also here *not by me*, you can instead use AOSP android 11 (v313) to stop lagging

It doesnt have a color palette. You can download Repainter from google play to customize material you.

Bugs:

Status bar is too far up. Go to developer options, then scroll down until you find Display cutout and choose high cutout, reboot, it is fixed, but it has a larger notch. I hope that the larger notch wont annoy you.

Lockscreen bug where the text overlaps the unlock icon.

Settings says "about emulated device" even though it is a physical device

Phh treble settings id recommend to turn on

Samsung features:

Enable extended brightness range

Enable glove mode

Enable extra sensors

Misc Features

Use alternate way to detect headsets

Set rounded corners diameter = 50

Set forced/faked rounded corners diameter = 50

Force FPS =90

Expose Aux cameras

Force Enable Camera2API HAL3

Bluetooth workarounds = Mediatek

Force disable A2PD offload

IMS features:

Force the presence of 4G Calling settings

Also you asked: One thing more will we have to say good bye to one ui or gsi will uninstall and back to stock

I think you mean if we can change back from GSI to OneUI, and the answer is yes. Just go to download mode and put the AB file of the samfw firmware which you extracted into the AP slot and click on Start. It will revert back to the normal OneUI

Hope you could understand the tutorial.