[Samsung Galaxy A32 4G] realacid:
note: i do not take any responsibility of your phone

also note: written for binary 7. might/will not work with binary 6 and older

Ok, so, after a long time of living under the hood of Samsung's OneUI 5.1 (i think?) i was dreading to go back GSI route.

And i did not, in fact, found any up-to-date and full instruction, so i decided to write my own :)

Big GSI guide​

First step: Unlocking and TWRP'ing

First thing you will need to do is unlock bootloader. For this you will need to unlock developers options (i hope you know how), and toggle "OEM unlocking". After this you will need to turn your phone off, hold both volume buttons and plug your phone into PC while holding them. This is what's called Download Mode. Memorize how to get into it, cause you'll need it later. Now hold volume up button to get to bootloader unlocking screen.

Warning: this will factory reset the phone.​

Now, you will need to boot into download mode once again, and now just press volume up instead of holding it. This will throw you into Odin Mode. Now, download Odin to your PC (definitely not random link I pasted from the net). Note: this guide will mostly illustrate Windows approach. If you are Linux user (just like me lol) then you probably know what you are doing.

Open it while your phone is in Odin Mode and download two files: TWRP itself, and vbmeta disabler. First is actual recovery, while second will bypass Samsung's in-house data integrity check. Use AP slot in Odin for TWRP and Userdata for vbmeta disabler. Hit flash - and it will fry your phone install TWRP onto your phone. When it will finish quickly hold vol+ and power button and hold them until phone will go to "ples click power button you installed something without samsung spying onto phone" screen. Then just click power and wait til it boots into TWRP.

Then - and this is pretty important - go to Wiping -> Format Data, type yes and click enter. Then go to Advanced -> Terminal and type multidisabler. And again.

Now that it is done you can move on to

Second step: actually installing GSI

Now that you actually installed custom recovery onto your phone, we will install GSI rom.

First you will need to download rom, either onto pc and then adb push system.img /external_sd it to your phone, or download and unpack it directly on your device. I prefer to do first route so download any GSI you like, for example from here (note: download arm64 A/B non-vndklite images. also: when you see something like bvS it says that image is a/b (b), vanilla (no gapps) (v), and has a superuser baked in (S)). I use ponces'es AOSP rom. It most likely is zipped with either gz or xz, so extract it. I prefer xz -dvv system.img.xz route, but you can use 7z, although im not sure about WinRar. Now copy it to phone, it can even be in recovery: adb push system.img /sdcard # or /external_sd for external sd card. Now go to TWRP, Install -> Install Image, then select image you just copied and select System. Hit flash and wait a bit. Now that it is done go to Wipe -> Advanced Wipe and select first four elements (cache, internal, data, dalvik/art) and swipe to wipe™. Now reboot to system and hope it wont bootloop at the Samsung logo. Also you will probably want root access - just install Magisk either from phone or from sideload.

When it will boot into system you'll probably want to do

Final step: customizing and fine-tuning GSI

So, GSI's have some bugs. Some are fixable, some are to grow over.

1. SMS recieving

Install this module in Magisk, should fix it.

2. Brightness controls

phhTreble settings -> Misc -> Set alternative brightness curve

phhTreble settings -> Misc -> Force alternative backlight scale.

3. 90HZ

phhTreble settings -> Misc -> Force FPS -> 1080x2400@90.0 (xda put a mailto: link here lol)

4. BT Audio

Note: android 13 and higher has this on by default

phhTreble settings -> Misc -> Use alternate way to detect headsets

5. Cameras

phhTreble settings -> Misc -> Force Enable Camera2API HAL3

phhTreble settings -> Samsung -> Enable access to all cameras

Note: tested in OpenCamera. Might not work with GCam.

6. Small launcher lags on Android 14

su -c "setprop debug.sf.enable_gl_backpressure false"

7. Miscellaneous

phhTreble settings -> Samsung -> Enable double tap to wake

There are few another small bugs here and there but everything else is almost usable now - go ahead and use it.

Hope this helped someone. Thanks!