Development [RECOVERY][UNOFFICIAL] TWRP for Galaxy A22 SM-a225f

Search This thread

Marcio.RS

Member
Apr 18, 2013
17
2
For those looking for a Magisk patched boot.img, recovery.img and vbmeta.img and stock rom boot.img, recovery.img and vbmeta.img for A225M/DSN, here are the files. They are all ZTO, for Brazil, but I believe it may work on other SM-A225M/DSN from another countries too.
 

Attachments

  • magisk_patched-24300_A225MUBS3AUL5_ZTO_boot.img
    32 MB · Views: 40
  • magisk_patched-24300_A225MUBS3AUL5_ZTO_.img
    32 MB · Views: 39
  • magisk_patched-24300_A225MUBS3AUL5_ZTO_vbmeta.img
    7.9 KB · Views: 15
  • stockrom_A225MUBS3AUL5_ZTO_recovery.img
    32 MB · Views: 23
  • stockrom_A225MUBS3AUL5_ZTO_boot.img
    32 MB · Views: 17
  • stockrom_A225MUBS3AUL5_ZTO_vbmeta.img
    7.9 KB · Views: 11

Marcio.RS

Member
Apr 18, 2013
17
2
UPDATE



Flash at your own Risk !!!

Tested Working:

Backup
Flash zip
Fastbootd support
Flash gsi roms


Not Working:

Usb Otg
You tell me


How to Flash:

1. Reboot Device to Downloadmode
2. Unlock Bootloader
3. Install adb and Fastboot driver and Device Drivers ( Google will Help )
4. Download the VBMeta-disabled.tar and the twrpa22v3.tar from Attachments
5. Download Odin3 from Attachments and start Odin on PC
6. In Odin Press on Options and untick Auto Reboot
7. Flash VBMeta-disabled.tar with Odin ( In Odin click on AP - select the vbmeta-disabled.tar and press start )
8. After flash vbmeta without errors press on AP and select twrpa22v3.tar and press on start
9. If all is Flashed without errors longpress power and vol- on device
10. instantly after device goes Blackscreen press and hold power and vol+ for 5-8 seconds to boot to TWRP
11. In TWRP press on Advanced - than on Terminal - and write " multidisabler " and press on the blue button
12. repeat step 11
13. press on reboot - than on recovery





How to flash gsi:

Use the google platform tools adb/fastboot Download from Attachments

Boot to TWRP

1. In TWRP press Wipe-Advanced Wipe- select Dalvik, data, cache, metadata and swipe to wipe
2. After wipe go back to main screen and press Reboot- than press Fastboot
3. Device reboots to TWRP with Fastboot Interface
4. now plugin Device to PC open platform tools and execute cmd-here.exe
5. Type : fastboot devices - if no output check your Drivers/Usb connection
6. If device is Found by "fastboot devices" command enter " fastboot flash system PATHTOYOURGSI.img"
maybe it writes :Invalid sparse file format at header magic - but this can be ignored
After flash completed without errors type : fastboot reboot and press enter

GSI Download (Tested and bootable ) :
Only Arm64-BGZ Variants are bootable
( BTW gsi imgs with .xz File Format must be extracted ! Don't simple rename it to .img )

CrDroid 11 (Face-unlock and Fingerprint works)
android 12
Bliss 11
caos11

Credits:

afaneh92 For the a32x Devicetree​


View attachment 5409225View attachment 5409227View attachment 5409229
Device Tree base used : https://github.com/mohammad92/android_device_samsung_a32x
Kernelbase is same as my custom Kernel: https://forum.xda-developers.com/t/root-galaxy-a22-sm-a255f--android-11.4329471/


Greetings.

First place, thanks for this how to. I was looking for something like it for my A225M/DS.

But there are some steps, at the first part, that are misleading people to go chasing its own tail.... The part where it says to first download the vbmeta to the device and right after, download the twrp file using the same AP button.

Since you had mentioned the author of the original thread afaneh92, i decided to take a look at his post and i had find out the following...

As written by him on his "how to" for A32x, as follow ...

"
3. Put the TWRP TAR for your device with Odin in the AP slot, vbmeta_disabled_R.tar in USERDATA slot and click start.
4. Reboot to recovery via recovery key combo (Vol up + power + USB connected).
5. 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.
6. Flash magisk apk in twrp.
7. Reboot to system, Enjoy.
"

He says to put the TWRP.tar file in the AP slot and the vbmeta_disable.tar in USERDATA slot, not to put twrp and then vbmeta one after the other using AP. That's why people here, including me, gone confused. I tried lots of times and did it using a diferent way but it did not worked as expected.

Please, I am not trying to create a confusion here with you or with anybody, but I believe you could have checked that before.... I am not a developer nor a wizard with the mighty knowledge, far from it. I am a single user here, trying to put some life on my device.

The other part, worked fine, the part to flash the other firmware into the device using fastboot. About it, If anyone had a problem trying to use fastboot on windows due to the device does not recognizes on windows, i suggest to use 7zip and extract the samsung usb drivers to a separated folder, then go to the Windows Device Manager and check for the A225F device with a Yellow exclamation. If that appears, then people should right click on the A225F device on the list, choose Driver Update and go to the update option... then choose "I want to search on my computer" and right after click on With Disk option. Then go to the folder where you had extracted the drivers and look for a folder called 25_escape. Inside there are all the drivers.inf files. click on open folder and when the devices lists appears, choose the Samsung ADB option and then click update. Windows will complait about those not signed stuff, just ignore and click ok. Driver and Device uptaded and connected.

Now you can perform the fastboot devices command and it will show your device there... and just continue the procedures as described.

I once again say... I am not here to cause any kind of harm.. Just writting what I had found.

By the way, I had installed the "caos-v316-220321-arm64-bvZ-lite.img" on my A225M and it worked fine up to this moment. I had not tested the digital finger stuff, but the system is working good on my wireless.. I will post a print screen of it here... when I have finished to test it and will test the others firmware here too, to check which one will fit better for the A225M.

And thank you once again, Cheese-ass, for your work too!

Peace!
 

Marcio.RS

Member
Apr 18, 2013
17
2
Screenshot_20220425-230949_Trebuchet.png

Caos Worked fast here but some stuffs did not, like Digital Fingerprint, USB file sharing (just on recovery mode) and the cameras do not count, due to a problem on them, so I can't say if it worked or not.

Wireless worked on 2.4 and 5.8 GHz

Dual Sim+SD card worked fine, all at the same time.

Now I am goint to try another rom... this time will be the "lineage-19.1-20220410-UNOFFICIAL-arm64_bvS.img".... Let's see what will happen...
 
Last edited by a moderator:

PaulinoBaslio

Member
Nov 10, 2016
19
3
View attachment 5598531

Caos Worked fast here but some stuffs did not, like Digital Fingerprint, USB file sharing (just on recovery mode) and the cameras do not count, due to a problem on them, so I can't say if it worked or not.

Wireless worked on 2.4 and 5.8 GHz

Dual Sim+SD card worked fine, all at the same time.

Now I am goint to try another rom... this time will be the "lineage-19.1-20220410-UNOFFICIAL-arm64_bvS.img".... Let's see what will happen...
a melhor GSI é a Pixel Experience...funciona super fluida ..mas tem os mesmos bugs
wifi hotspot
usb file
 
  • Like
Reactions: Marcio.RS

Marcio.RS

Member
Apr 18, 2013
17
2
a melhor GSI é a Pixel Experience...funciona super fluida ..mas tem os mesmos bugs
wifi hotspot
usb file
I am testing CrDroid now .... Digital Fingerprint not working; Comes with google stuffs, File Sharing via USB is not working at all, even on linux(I normally have no problems with linux accessing android mobiles). I had not tested the camera because mine is broken so I wasn't able to test it.

I will post the Print Screens of this CrDroid Test. At least it is fast and fluid. If the author of this rom mod could fix the fingerprint digital lock function and file sharing via usb, it would be nice to use.

Estou testando a CrDroid agora ... Bloqueio por impressão digital não funciona; Veio com uns bagulhos do google; Compartilhamento de Arquivos via USB não funciona nem por decreto, até mesmo no linux, não abre (normalmente eu não tenho problemas de acessar nenhum celular android no linux). Não testei a câmera porque a minha tá com problemas então não consegui testar a mesma.

Postarei os prints deste teste do CrDroid. Pelo menos ele é rápido e fluído. Se o autor dessa rom mod pudesse corrigir o problema do Bloqueio por Impressão Digital e o Compartilhamento de Arquivos via Usb, seria ótimo.

CrDroid Version used in the test is >>> crdrom-v316-220330-arm64-boZ


Screenshot_20220427-201504527.jpg
Screenshot_20220427-201525410.jpg
Screenshot_20220427-201536189.jpg
Screenshot_20220427-201552559.jpg
Screenshot_20220427-201605815.jpg
Screenshot_20220427-201618465.jpg
Screenshot_20220427-201738983.jpg
Screenshot_20220427-202226581.jpg
Screenshot_20220427-202304444.jpg
 

Attachments

  • Screenshot_20220427-202154671.jpg
    Screenshot_20220427-202154671.jpg
    415.6 KB · Views: 16

Marcio.RS

Member
Apr 18, 2013
17
2
a melhor GSI é a Pixel Experience...funciona super fluida ..mas tem os mesmos bugs
wifi hotspot
usb file
The usb file is what i want to use. Wifi Hotstop I do not use it, so if it works the usb file sharing and fingerprint digital lock. dual simcard+sd card and normal wifi and have no google crap embedded on it, will be fine
O compartilhamento usb é o que eu quero usar. O Hotspot wifi nem me interessa, já que não faço uso dele. Se o compartilhamento de arquivo usb funcionar e o bloqueio via digital e o dual simcard+sdcard e o wifi normal e sem os bagulhos do google embutidos no mesmo, pra mim tá ótimo! Rsrs
 

Marcio.RS

Member
Apr 18, 2013
17
2
Greetings

Well, Lineage-19.1-20220410-UNOFFICIAL-arm64_bvS is working ok here, with some stuffs not working, for example:

Not Working
--------------------
Usb File Sharing (Just Works in Recovery Mode, showing as A225F, not as A225M/DS
Cameras (I am unable to test due to hardware problems here on my side(camera broken))
Device Encryption not Working (This is a must have, at least for me)
Auto-Brightness not working (Again, camera broken)

And almost all the rest is working fine.. for example

Working
-------------
Fingerprint Lock (100% functional)
Headsets worked after some tweaking in some sets of the Treble Settings and Developer options, you can see a more detailed step-by-step on this article, at the Post Install part
Other buttons are working fine.
Installed Aurora Play Store, Aurora Droid, F-Droid, Root Checker, and other minor apps
Dual Simcard and SD card are working 100%, for both calls and internet at the same time too
(In the prints, you will see it in plane mode because I have no other simcards to use on it)

Working fine I must say, for about 21:00hs non-stop (I had to put it in recovery mode now, so I will be able to download the prints from it, using usb cable)
 

Attachments

  • Not_Working_USBFileSharing.png
    Not_Working_USBFileSharing.png
    28.8 KB · Views: 13
  • Screenshot_20220428-232139_Trebuchet.png
    Screenshot_20220428-232139_Trebuchet.png
    312.3 KB · Views: 13
  • Screenshot_20220428-232249_Trebuchet.png
    Screenshot_20220428-232249_Trebuchet.png
    199.6 KB · Views: 13
  • Screenshot_20220428-232304_Trebuchet.png
    Screenshot_20220428-232304_Trebuchet.png
    318.6 KB · Views: 12
  • Screenshot_20220428-232319_Configurações.png
    Screenshot_20220428-232319_Configurações.png
    111.1 KB · Views: 13
  • Screenshot_20220428-232326_Configurações.png
    Screenshot_20220428-232326_Configurações.png
    119.5 KB · Views: 11
  • Screenshot_20220428-232337_Configurações.png
    Screenshot_20220428-232337_Configurações.png
    111.1 KB · Views: 12
  • Screenshot_20220428-232437_Configurações.png
    Screenshot_20220428-232437_Configurações.png
    89.9 KB · Views: 13
  • Screenshot_20220428-232604_Configurações.png
    Screenshot_20220428-232604_Configurações.png
    126 KB · Views: 14
  • Screenshot_20220428-232400_Configurações.png
    Screenshot_20220428-232400_Configurações.png
    132.2 KB · Views: 12
  • Screenshot_20220428-232417_Configurações.png
    Screenshot_20220428-232417_Configurações.png
    132.8 KB · Views: 10
  • Screenshot_20220428-232501_Configurações.png
    Screenshot_20220428-232501_Configurações.png
    113.4 KB · Views: 12
  • Screenshot_20220428-232701_Configurações.png
    Screenshot_20220428-232701_Configurações.png
    94.1 KB · Views: 13
  • Screenshot_20220428-232808_Trebuchet.png
    Screenshot_20220428-232808_Trebuchet.png
    168 KB · Views: 15
  • Recovery_Mode.png
    Recovery_Mode.png
    32.7 KB · Views: 13

Marcio.RS

Member
Apr 18, 2013
17
2
Well.. that's it for today

If the TeamWin could do a twrp for SM-A225M/DSN, I believe the file sharing stuff would be working fine.

I am not complainting about anything at all. My device is working nice n smooth, so... I believe I will keep the LineageOS for a while....
 
Nov 16, 2021
17
0
UPDATE



Flash at your own Risk !!!

Tested Working:

Backup
Flash zip
Fastbootd support
Flash gsi roms


Not Working:

Usb Otg
You tell me


How to Flash:

1. Reboot Device to Downloadmode
2. Unlock Bootloader
3. Install adb and Fastboot driver and Device Drivers ( Google will Help )
4. Download the VBMeta-disabled.tar and the twrpa22v3.tar from Attachments
5. Download Odin3 from Attachments and start Odin on PC
6. In Odin Press on Options and untick Auto Reboot
7. Flash VBMeta-disabled.tar with Odin ( In Odin click on AP - select the vbmeta-disabled.tar and press start )
8. After flash vbmeta without errors press on AP and select twrpa22v3.tar and press on start
9. If all is Flashed without errors longpress power and vol- on device
10. instantly after device goes Blackscreen press and hold power and vol+ for 5-8 seconds to boot to TWRP
11. In TWRP press on Advanced - than on Terminal - and write " multidisabler " and press on the blue button
12. repeat step 11
13. press on reboot - than on recovery





How to flash gsi:

Use the google platform tools adb/fastboot Download from Attachments

Boot to TWRP

1. In TWRP press Wipe-Advanced Wipe- select Dalvik, data, cache, metadata and swipe to wipe
2. After wipe go back to main screen and press Reboot- than press Fastboot
3. Device reboots to TWRP with Fastboot Interface
4. now plugin Device to PC open platform tools and execute cmd-here.exe
5. Type : fastboot devices - if no output check your Drivers/Usb connection
6. If device is Found by "fastboot devices" command enter " fastboot flash system PATHTOYOURGSI.img"
maybe it writes :Invalid sparse file format at header magic - but this can be ignored
After flash completed without errors type : fastboot reboot and press enter

GSI Download (Tested and bootable ) :
Only Arm64-BGZ Variants are bootable
( BTW gsi imgs with .xz File Format must be extracted ! Don't simple rename it to .img )

CrDroid 11 (Face-unlock and Fingerprint works)
android 12
Bliss 11
caos11

Credits:

afaneh92 For the a32x Devicetree​


View attachment 5409225View attachment 5409227View attachment 5409229KI
Device Tree base used : https://github.com/mohammad92/android_device_samsung_a32x

A22 4g Tree :https://github.com/deader89/galaxy-A22-4g-twrp-Tree
Hello man!! thanks for your work, i've been using your TWRP, but now with the new firmware ONE-UI 4.1 your twrp doesn't work.... or maybe the vbmeta disabler, i'm not an expert; please make an update
 

Marcio.RS

Member
Apr 18, 2013
17
2
Hi so i left the vbmeta disabled on my phone and now it's bricked i think
Hello....

Sorry for take so long to answer you.

Have you tried to enter into download mode?

Press and hold POWER + Volume Down keys at the same time and count till 7, when it turn off the display, press and hold at the same time VOLUME UP + VOLUME DOWN keys and put the usb cabe, previously connected to your computer, connected to your phone.
Then you will see the Bootloader Unlock option, the Download option and the Reset option.
Press and release the VOLUME UP and you will get into download mode.

After that, just use odin to send your stock rom firmware into your mobile


I hope this may help you.
 

[email protected]

Senior Member
Sep 3, 2012
415
76
Vantaa
Samsung Galaxy A22 5G
Hello man!! thanks for your work, i've been using your TWRP, but now with the new firmware ONE-UI 4.1 your twrp doesn't work.... or maybe the vbmeta disabler, i'm not an expert; please make an update
I have same problem in A22 5g. I do not know if it the problem are vbmeta or twrp, but android 12 those doesent work. Can somebody explain how to do vbmeta_disabled. I have android 12
 

nitrolucas

New member
Jan 8, 2011
1
1
I have same problem in A22 5g. I do not know if it the problem are vbmeta or twrp, but android 12 those doesent work. Can somebody explain how to do vbmeta_disabled. I have android 12
Waiting an update for android 12 too. Did not update to stock a12 firmware because of this. A little frustrated about A22 threads not been discussed for a long time. But still have hope on developers to start working on it as soon they can
 
  • Like
Reactions: Platypus Enthusiast
Nov 16, 2021
17
0
I have same problem in A22 5g. I do not know if it the problem are vbmeta or twrp, but android 12 those doesent work. Can somebody explain how to do vbmeta_disabled. I have android 12
I have had the same problem with the a72, and I fixed it, with the a22 it happens in one ui 4.1; I haven't tried the method on my a22 4g yet, since I'm going to sell it I didn't mind updating it anymore, but I'll play experiments with it and report my results, my theory is that: you have to force entry into recovery mode in the first boot, because in the next boots, the stock recovery will be overwritten over the flashed twrp; as soon as you get out of download mode you must press the keys to manually enter recovery mode, "it's the only way I know"; then you probably want to root it, you should run "multidisabler", but I'm afraid it won't be enough, search for "disable dm verity forcencrypt.zip" and "services disabler.zip". in case you brickees it, just reflah stock recovery with odin, and stock boot, and reboot and try again.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I have same problem in A22 5g. I do not know if it the problem are vbmeta or twrp, but android 12 those doesent work. Can somebody explain how to do vbmeta_disabled. I have android 12
    Waiting an update for android 12 too. Did not update to stock a12 firmware because of this. A little frustrated about A22 threads not been discussed for a long time. But still have hope on developers to start working on it as soon they can
  • 4
    UPDATE



    Flash at your own Risk !!!

    Tested Working:

    Backup
    Flash zip
    Fastbootd support
    Flash gsi roms


    Not Working:

    Usb Otg
    You tell me


    How to Flash:

    1. Reboot Device to Downloadmode
    2. Unlock Bootloader
    3. Install adb and Fastboot driver and Device Drivers ( Google will Help )
    4. Download the VBMeta-disabled.tar and the twrpa22v3.tar from Attachments
    5. Download Odin3 from Attachments and start Odin on PC
    6. In Odin Press on Options and untick Auto Reboot
    7. Flash VBMeta-disabled.tar with Odin ( In Odin click on AP - select the vbmeta-disabled.tar and press start )
    8. After flash vbmeta without errors press on AP and select twrpa22v3.tar and press on start
    9. If all is Flashed without errors longpress power and vol- on device
    10. instantly after device goes Blackscreen press and hold power and vol+ for 5-8 seconds to boot to TWRP
    11. In TWRP press on Advanced - than on Terminal - and write " multidisabler " and press on the blue button
    12. repeat step 11
    13. press on reboot - than on recovery





    How to flash gsi:

    Use the google platform tools adb/fastboot Download from Attachments

    Boot to TWRP

    1. In TWRP press Wipe-Advanced Wipe- select Dalvik, data, cache, metadata and swipe to wipe
    2. After wipe go back to main screen and press Reboot- than press Fastboot
    3. Device reboots to TWRP with Fastboot Interface
    4. now plugin Device to PC open platform tools and execute cmd-here.exe
    5. Type : fastboot devices - if no output check your Drivers/Usb connection
    6. If device is Found by "fastboot devices" command enter " fastboot flash system PATHTOYOURGSI.img"
    maybe it writes :Invalid sparse file format at header magic - but this can be ignored
    After flash completed without errors type : fastboot reboot and press enter

    GSI Download (Tested and bootable ) :
    Only Arm64-BGZ Variants are bootable
    ( BTW gsi imgs with .xz File Format must be extracted ! Don't simple rename it to .img )

    CrDroid 11 (Face-unlock and Fingerprint works)
    android 12
    Bliss 11
    caos11

    Credits:

    afaneh92 For the a32x Devicetree​


    Screenshot_2021-09-14-00-27-42.png
    Screenshot_2021-09-14-00-28-21.png
    Screenshot_2021-09-14-00-28-50.png
    KI
    Device Tree base used : https://github.com/mohammad92/android_device_samsung_a32x

    A22 4g Tree :https://github.com/deader89/galaxy-A22-4g-twrp-Tree
    2
    Thank you for following your tutorial, successfully rooting, and flashing the system
    Screenshot_20211206-063119376.jpg
    1
    Hi there, I'm a noob regarding to this, but I was able to follow this guide successfully for my A225m.

    But I'd like to understand what's going on here, can you give an explanation about each step and what does it do?

    Also, can the vbmeta flashing be done _without_ Odin? For example using only fastboot (which works on Linux unlike Odin).
    https://android.googlesource.com/platform/external/avb/+/master/README.md this is documentation about vbmeta

    i think it cant be flashed without odin before twrp is installed
    1
    Otg work in twrp


    (tested with usb keyboard)
    1
    View attachment 5598531

    Caos Worked fast here but some stuffs did not, like Digital Fingerprint, USB file sharing (just on recovery mode) and the cameras do not count, due to a problem on them, so I can't say if it worked or not.

    Wireless worked on 2.4 and 5.8 GHz

    Dual Sim+SD card worked fine, all at the same time.

    Now I am goint to try another rom... this time will be the "lineage-19.1-20220410-UNOFFICIAL-arm64_bvS.img".... Let's see what will happen...
    a melhor GSI é a Pixel Experience...funciona super fluida ..mas tem os mesmos bugs
    wifi hotspot
    usb file