[Samsung Galaxy A02s] Ragekill3377:
#DISCLAIMER

Your warranty is now void.

I am not responsible for bricked devices, dead SD cards,

thermonuclear war, or your getting fired because the alarm app failed. Please

do some research if you have any concerns about features included in this ROM

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.

If your device DOES get bricked, just flash old ROM, then patched vbmeta.img (you can compress to tar format with 7-zip easily), both in AP slot, then reflash twrp and to keep TWRP after reboot, turn off auto reboot in odin, use the key combination to exit to recovery from download, and flash the provided magisk.zip in twrp. after that, click "reboot" and reboot to system.

If you still do not understand how to do this, or know basic commands or have knowledge about omni and android AOSP, best to leave this before you turn your phone into a useless brick.

#FOR DEVELOPERS WHO WANT DEVICE TREE# I have made a device tree for a02q OS 12. I did not use @afaneh92 ‘s files or kernel source. All of it is built and generated from source. (ONLY for SM-A025F!) D.T: <<<https://github.com/Ragekill3377/a02q_twrp_tree_omni.git>>>

[**My GitHub page link where the file is uploaded in releases in a .tar format, along with magisk.zip and a patched vbmeta_disabled.tar**]

<<<<<<<<<<https://github.com/Ragekill3377/TWRP-SM-A025F-OS12/>>>>>>>> {Build steps and README.md}

<<<<<<<<<https://drive.google.com/file/d/1Q7AG4ckGsgWmuac-0bxmvf2dVkh5Ee2A/view?usp=drivesdk>>>>>>>> {Pre-Built TWRP for SM-A025F on latest android 12.}

****#DO NOT FLASH THIS ON ANYTHING OTHER THAN ANDROID 12 ON A SAMSUNG GALAXY A025F, OR IT WILL CAUSE A SOFTBRICK!#***

Other points:~

Unlock your bootloader.

Download Galaxy A02s Stock firmware for unbricking or building purposes. firmware can be downloaded from Sam mobile or samfw. I like to use samfw

Reboot to download mode and flash in AP slot and reboot. Device will reboot to stock recovery mode prompting you to wipe data so wipe data and reboot to download mode again.

Put the TWRP tar for your device with Odin in the AP slot and click start.

Reboot to recovery via recovery key combo.

Disable encryption:

Go to Advanced > Terminal, type: multidisabler.

If vendor complain about free space left on device, will attempt to resize vendor. and it ask to - Run multidisabler again!.

Type: multidisabler again. will see - Finished. when done.

Go back to Wipe > Format Data > type yes.

Reboot to recovery.

Flash magisk.zip in twrp.

Reboot to system, Enjoy.

If device replaces twrp with stock recovery, you need to reflash without auto reboot in Odin, and quickly boot to twrp first time.

Note:

To disable encryption manually: (this is still a bug. Encryption / decryption may not work properly)k

You need to replace fileencryption=ice with encryptable=ice only in userdata line (maybe rest lines) in vendor/etc/fstab.qcom

To avoid stock recovery restoration manually:

Rename system/recovery-from-boot.p to recovery-from-boot.p.bak

File is 60-70mb, so I will provide a google drive link. Remember, Android 12 support only.

Upcoming ROM: RageOS 64-bit for SM-A025F ( Just for this purpose as this phone has 32-bit OS. )

#I AM NOT RESPONSIBLE FOR BRICKED DEVICES! IF YOU BRICK IT AND BLAME ME I WILL LAUGH AT YOU!