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

Search This thread

GizzyTalksTech

New member
Dec 27, 2022
2
0
Hey i was wondering in the comments Could-Chaplain said they was planning to use PixelExperience GSI but i was wondering when flashing GSI with fastboot the image hits the max downliad size limit target reported max download size of 268435456 bytes so how could i be able to do this
 

elosanta

Senior Member

Platypus Enthusiast

Senior Member
Apr 6, 2021
103
20
Samsung Galaxy A22 5G
Flashed the latest stock firmware on Android 13, then tried flashing 2.00.1, just a bootloop. I can't power it off and I can't boot to recovery. I can boot to download mode, though.

Edit: Flashed the VBMeta, still didn't work.
 
Last edited:

GioDroid99

New member
May 12, 2023
1
0
View attachment 5620035

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. If you are on Android 11 firmware download v1.01.2-alpha if you are on Android 12 firmware 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:
Can I install this unofficial TWRP on my galaxy A226B with A226BXXS5BVI6 firwmare (Android 12) ?
or it can't be done on a different firmware?

thank you.
 
Jul 24, 2015
25
5
It all worked, but I have a problem, when I'm installing the GSI, the terminal says that all went correctly and it says finished, but when I restart the phone only reaches the samsung logo and reboots to recovery again.
I'm trying with the Pixel Experience ab 13.0 20230503.

EDIT:
Somehow i managed to make it work!!
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    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.

    total.png

    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. If you are on Android 11 firmware download v1.01.2-alpha if you are on Android 12 firmware 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​

    total.png

    v2.00.1-alpha

    • bump firmware and touchscreen drivers to A226BXXU4BVF7 and TWRP to TWRP-12.1

    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
    For the brave soles among you, I have a new build for Android 12, based on A226BXXU4BVF7 and TWRP-12.1. You can download it here https://github.com/aHVzY2g/twrp-device-samsung-a22x/releases/tag/v2.00.0-alpha. I did some limiting testing, and it seemed to be working just fine.

    Edit: If you are on android 11 Firmware, don't update.
    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.