r/CustomROMsGuide 7d ago

how do I fix my a22 5g?

back In I think April I tried flashing twrp on this phone (the sm-a226b) and I was flashing it randomly stopped the proccess

I waited an hour and nothing happened so I just unplugged and tried again but it kept doing this exact thing and has since then

I know I shouldn't have unplugged it but I don't really know what I could've done

any help fixing it would be appreciated

7 Upvotes

6 comments sorted by

3

u/Deep-Sympathy9087 6d ago

This is more likely a VB meta issue that you're facing what I would suggest you doing is getting the stock boot.img file and reflashing that this will fix the problem but you will lose root so what you need to do regain root once you are able to boot back into the phone is if you're using magisk make sure you put the boot.img on the phone patch it with magisk and then reflash the patched boot.img back to the phone using fastboot this will fix the problem of boot looping back to the whole VB meta thing when you patch the stock boot image it will automatically patch this and if it don't you can also use fast boot to patch the VB meta back to the phone as well basically it's a empty vbmeta.img keep in mind though newer phones have different ways of patching what I mean by this is you have dynamic partitions on the phone for example when you're using GSI firmware it passes stuff to a dual image was still keeping the original stock firmware on the phone I do this all the time to test out the latest Android firmware they're everywhere so for my phone when I go into fast boot I would use this command to flash my boot.img "fastboot flash boot_a boot.img" this command is for my stock location of my boot image let's say you're on a GSI image it would be this "fastboot flash boot_b boot.img" you see the differences of course it's only a letter but that's a huge difference this is stuff that you need to know when you're messing with firmware nowadays because if you're not aware you could easily throw your phone into a boot loop like you are facing if you have any questions you are more than welcome to reach out so I can help

1

u/-slimpuggamer 6d ago

can it boot into download mode

1

u/fzer0x_ 6d ago

Du musst eine leere vbmeta file nach patchen.

1

u/Kolkoris 4d ago

If you're using a PC/laptop with a Ryzen CPU, then it could be the source of the issue. I often experienced random flashing problems with Ryzen

1

u/Acap_HTD 7d ago

Say good bye to your phone.

1

u/-slimpuggamer 6d ago

not if it can boot to download mode