[Samsung Galaxy A22 5G] ttritium:
DEPRECATED GUIDE

INSTEAD USE Could-Chaplain's TWRP 12.1 v2.00.1-alpha+

This is a solution for those, like me, who let their phone upgrade to Android 12 and can't downgrade to A11.

It's base on Could-Chaplain's TWRP for A11 firmware (great thanks to you sir). I'm not a developer, it's just a makeshift job.

Base on :

TWRP v1.02.2-alpha

Firmware ("Build version") : A226BXXU5BVH2 (works even if you have another firmware version in your phone as long as it's an A12)

Of course, all of this is at your own risk. I am not responsible for lost warranty, lost data or any other damage to your device, neither for blowing the bridge on the river Kwaï.

How to root and flash TWRP :

Prerequisites :

Unlock Bootloader

Odin on PC

1. Reboot device to Download Mode (longpres vol+ / vol- and plug USB cable)

2. Download the magisk_a226b_boot.tar and the twrp12_a226b_recovery.tar from attachments

3. Start Odin on PC

4. In Odin press on Options and untick Auto Reboot

5. Flash magisk_a226b_boot.tar with Odin (In Odin click on AP, select the magisk_boot.tar and press start)

(It roots you phone, if you don't want go directly to step 7 with blank vbmeta.img (in magisk_a226b_boot.tar) in USERDATA slot (don't forget to TAR vbmeta.img).)

6. After flash magisk_a226b_boot.tar without errors press in Odin on Reboot download if possible, device reboots to Download Mode

7. Flash twrp12.1_a226b_recovery.tar with Odin (In Odin click on AP, select the twrp12.1_a226b_recovery.tar and press start)

8. If all is flashed without errors longpress power and vol- on device

9. (The most complicated part, if it doesn't work restart from step 1. For me it seems to be easier if Auto Reboot is tick in Odin Options before step 7, in this case no step 8, be quick.)

Instantly after device goes Blackscreen press and hold power and vol+ for 5-8 seconds to boot to TWRP

10. In TWRP press on Advanced, than on Terminal, write "multidisabler" and press on the blue button

11. Repeat step 10

12. Go back in TWRP main menu, press on Wipe then on Format data, type "yes" and press on the blue button.

12. Go back in TWRP main menu, press on Reboot, then on Recovery

How to flash GSI :

Prerequisites :

TWRP on your phone

adb/fastboot on your PC

1. Boot to TWRP

2. In TWRP press Wipe, Advanced Wipe, select Dalvik, data, cache and swipe to wipe

2. After wipe go back to main screen and press Reboot, then press Fastboot

3. Device reboots to TWRP with Fastboot Interface

4. Now plugin device to PC and open a terminal

5. Type : fastboot devices

6. If device is found type : fastboot flash system PATH/TO/YOUR/GSI.img

Ignore "Invalid sparse file format at header magic" message

7. After flash completed without errors type : fastboot reboot

Tested GSI (list) : crDroid 8.10 (A12) and LineageOS 20 TD-based (A13) both vanilla with MinMicroG release, work fine (but no 5G and no VoLTE/VoWifi).

After GSI installation, if you haven't internet on apps, refer to this post for explanation/workaround of a MediaTek-specific kernel bug.

If you want to hide unlocked bootloader warning (rooted phone only) go here AND here.

Feel free to report your failures and successes for everyone's benefit.

Credits (thanks to all of you) :

Could-Chaplain for TWRP11 A226B (special thanks for your work)

Williamtung for the guide to Magisk's root boot.img here

SoftnGeek for explanations to transform TWRP11 to TWRP12 here

osm0sis for Android Image Kitchen here

Cheese-ass for this guide here

AndyYan for apps internet problem solving

razs.originals and kevinARIAN21 for warning bootloader hiding solution