Development [RECOVERY][UNOFFICIAL][EXPERIMENTAL][ALPHA] TWRP for Galaxy A22 5G SM-A226B

Search This thread

[email protected]

Senior Member
Sep 3, 2012
416
76
Vantaa
Samsung Galaxy A22 5G
even if I put twrp ap slot and vbmeta_disabled to userdata in odin, I can't boot into twrp recovery. will bootloop. is that vbmeta_disabled r for android 11 firmware? How to do that vbmeta disabled? If i try to do that it myself?
 
Last edited:

fede2782

Member
Jun 28, 2022
31
4
Moto G7
Xiaomi Mi A3
Hi, I would like to install a GSI on my A22 5G. But I have a question. Does this twrp works on Android 12, if yes does the VBmeta disabler works too, because I saw that the name says Android R (11). Thanks for the help
 
Apr 9, 2022
40
20
Nexus 7
HTC EVO 3D
Hi, I would like to install a GSI on my A22 5G. But I have a question. Does this twrp works on Android 12, if yes does the VBmeta disabler works too, because I saw that the name says Android R (11). Thanks for the help
It's based on the android 11 firmware, which has to be installed. But you are fine installing a Android 12 GSI. So Android 11 Firmware for TWRP and Android 12 in the GSI.
 

a0963655966

Member
May 25, 2022
21
1
But is Gsi usually unstable? Worried about more trouble in the future, or how do I downgrade the version? You are very professional, I must consult you
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    unnamed.png


    It took me sometime, but I can now share with you a TWRP with basic functionality. You of course flash at your own risk. I am not responsible for lost warranty, lost data or any other damage to your device.



    This Build of TWRP is based on:​

    Working:​

    • flash of zips
    • fastbootd
    • flashing of GSI images (via fastbootd)
    • MTP

    Not working:​

    • Probably a lot of stuff ...

    What you need:​

    • Unlocked bootloader.
    • Odin3 v3.13.1
    • android platform-tools and device driver.
      • adb and fastboot
    • Magisk or GSI depending on what you want to do.
    • Patience, the device can be very tricky to get to download mode.

    How to flash:​

    Be advised that this build is a work in progress and is not ready as a daily driver. Only flash if you know what you are doing.
    1. First read all points below, without doing anything. Warning, you will lose all your data!
    2. Download the recovery.tar from here.
    3. You start off in Odin, put recovery.tar in AP slot and the vbmeta_disabled_R.tar in the USERDATA slot, uncheck auto-reboot.
    4. After the flash is completed hold down power + volume down, instantly after device goes Black screen press and hold power + vol up to boot to TWRP
      1. if you didn't get to TWRP, you have to flash again.
    5. In TWRP, go to Advanced → terminal.
    6. Type multidisabler two times.
    7. Now go to Wipe → Format Data (not wipe) → and type yes.
    8. You can boot to system now.

    Hot to install Magisk:​

    Method 1, Micro-SDCard​

    1. Download Magisk from here, rename the file from .apk to .zip
    2. Save the file to a Mico-SDCard
    3. Reboot the phone to TWRP.
    4. Go to Install → Select Storage → Micro-SDCard. In the file system, choose Magisk-vXX.X.zip and swipe to confirm flash.
    5. You can now Reboot to System

    Method 2, sideload​

    1. Download Magisk onto your PC from here, rename the file from .apk to .zip.
    2. Reboot the Phone into TWRP. Go to Advanced → ADB Sideload → Swipe to start Sideload.
    3. On your PC, type in a Terminal adb sideload Magisk-v24.3.zip
    4. You can now Reboot to System. adb reboot system

    How to install GSI:​

    1. Go to Wipe → Format Data (not wipe) → and type yes.
    2. Now reboot to fastboot.
    3. Connect the phone to your pc and startup a terminal of your choice.
    4. In the terminal type fastboot flash system name-of-your-gsi-iamge.img (it has to be a .img file, extract .img.xz files do not just rename them).
    5. You should now be good to go and can reboot to system.

    Thanks and credits to:
    5

    Changelog​

    v1.02.2-alpha

    • added drivers for himax touch screens.

    v1.02.1-alpha

    • added drivers for novatek touch screens.

    v1.01.2-alpha

    • added patch with improved multidisabler

    v1.01.1-alpha

    • update multidisabler

    v1.01.0-alpha

    • fix permission for mkbootimg

    v1.00.0-alpha

    • Initial Release
    2

    How to get TWRP log files:​

    recovery.log
    adb pull /tmp/recovery.log
    OR
    Advanced -> Copy Log -> Swipe to copy log to default storage

    dmesg
    adb shell dmesg > dmesg.log
    OR
    Advanced -> Copy Log -> check "Include kernel log" -> Swipe to copy log to default storage

    logcat
    adb logcat -d > logcat.txt
    OR
    Advanced -> Copy Log -> check "Include Logcat" -> Swipe to copy log to default storage
    2
    There is new release candidate which include the drivers for himax touchscreens. If you still have no touch input in twrp, try out this release v1.02.2-alpha-rc. Let me know if it works for you.

    EDIT: Confirmed working.
    1
    it does work with android 12, but only if you use a GSI.
    I'm planning to build a custom rom for the A22