How To Guide [GUIDE] [T220/T225] Flash a GSI on the A7 Lite (without TWRP)

Search This thread

nirogu325

Senior Member
Oct 15, 2010
3,787
1,973
Thank you for sharing this! Just rooted and installed on my WA6 XAR T220. Do you have any recommendations for getting Bluetooth headphones to work better? I can get them to work sometimes only. It will either keep playing on device speakers or only play on headphones very quietly until I toggle a bunch of settings or reboot. Advice appreciated, thanks!
No idea, sorry.
 
  • Like
Reactions: the_Victorian

nirogu325

Senior Member
Oct 15, 2010
3,787
1,973
Thanks anyway! If anyone else using this GSI has the same prob and finds a solution please let me know
Or you can just try another GSI using FastbootD in your recovery which is a faster method. Yes, I bundled that custom recovery within the custom AP file -credit goes to tom.android.

1. Enter Fastboot through Stock Recovery 2. Enter "fastboot erase system" in command prompt 3. "fastboot flash system insertGSInameHere.img" 4. "fastboot -w" 5. Reboot to Recovery to do Factory Reset 6. Enjoy
 
  • Like
Reactions: the_Victorian

tom.android

Senior Member
Jul 12, 2016
1,357
401
Samsung Galaxy Tab A7 Lite
Thank you for sharing this! Just rooted and installed on my WA6 XAR T220. Do you have any recommendations for getting Bluetooth headphones to work better? I can get them to work sometimes only. It will either keep playing on device speakers or only play on headphones very quietly until I toggle a bunch of settings or reboot. Advice appreciated, thanks!
because you used "Phh Treble Setting" to configured in Android 13 GSI , Do not set it , All bluetooth fixed errors were patched already.
 
  • Like
Reactions: the_Victorian

infoboxxx

New member
Feb 28, 2023
1
0
- Project Elixir 3.6 (Android 13) For SM-T220 (February 23rd update)
- Region: XAR
- Firmware needed: T220XXS2CWA6 (Android 13)
- Has GApps and Magisk 25.2
- Security: February 5th, 2023.
- microSD exFAT compatible
DISCLAIMER: FIRMWARE NEEDED IS T220XXS2WA6 (Android 13). I'm just sharing, not open to GSI building requests/tutorials and I'm not a developer. DO NOT FLASH IF YOU HAVEN'T FLASHED THE ANDROID 13 FIRMWARE SPECIFIED ABOVE, MEANING BOOTLOADER, THE CSC FILE ALONG WITH THE FOLLOWING LINKED GSI IMAGE IN THE AP SLOT. PREPARE FOR A FACTORY RESET. IF YOU DON'T KNOW WHICH FIRMWARE YOUR T220 IS ON, THEN YOU SHOULD *NOT* BE HERE. I AM NOT RESPONSIBLE FOR ANY DAMAGES BY FLASHING THIS. GSI image: HERE

Remember to enable Double Tap To Wake in Settings > Phh Treble Settings > Samsung features > Enable double tap to wake.
Remember to set "Smallest width" on either "Display" settings or "Developer options" at 598 if you don't want the toolbar.

Hi @nirogu325
Sorry for the noob question, but what is the procedure to flash this build onto a stock T220 , still with stock bl and firmware from samsung. I have the WA6 firmware on it, just don't understand how to flash the downloaded image you provided. thanks for all the help
 

the_Victorian

Senior Member
Apr 12, 2014
403
106
DC
Honor 7X
Apple iPhone 12
Hi @nirogu325
Sorry for the noob question, but what is the procedure to flash this build onto a stock T220 , still with stock bl and firmware from samsung. I have the WA6 firmware on it, just don't understand how to flash the downloaded image you provided. thanks for all the help
Hey! Not OP but I flashed the GSI you mentioned a week ago on my WA6 T220. The GSI file linked goes into the AP slot, and everything else is stock (BL, CSC, etc). You need to have an unlocked boot loader. I also rooted my stock WA6 install before using ODIN to flash the GSI because the directions weren't clear, but I'm not sure if this was needed.
 
Last edited:

chillvibesmushroom

New member
Apr 12, 2023
3
0
Can you share screenshot as I think treble projects are only stable on SD chipset.
Hello it's 3:50 AM here I am currently looking for help regarding the samsung galaxy tab a7 lite SM T220 running Android 11 I was wondering if you would be able to show me how to uninstall AND disable apps using ADB I'm new to this and managed to root the device a while ago I forgot how I did it but I would be grateful for your help
 
Hello it's 3:50 AM here I am currently looking for help regarding the samsung galaxy tab a7 lite SM T220 running Android 11 I was wondering if you would be able to show me how to uninstall AND disable apps using ADB I'm new to this and managed to root the device a while ago I forgot how I did it but I would be grateful for your help
I use a debloater. Here is the Link
 
  • Like
Reactions: chillvibesmushroom

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Are there so many tutorials about SM-T22x here, from history till now from nothing (hard way) to very easy method why don't read and upgrade your skill from it.
    never mind ! i just install fastbootd and a custom gsi from Tutorials ! THX A LOT @tom.android
    1
    Are there so many tutorials about SM-T22x here, from history till now from nothing (hard way) to very easy method why don't read and upgrade your skill from it.
  • 10
    Hi everyone, this is a short guide on how to flash a GSI on the A7 Lite (without TWRP).

    Its a nice little tablet for the price but it doesn't have a very powerful SOC and for me the One UI is barely usable on this device. The launcher and the whole system UI feel extremely laggy, but apps generally run fine.

    I tried phhusson's custom Android 12 GSI and the device was almost resurrected. Much much less UI lag and the battery life is the same as stock ROM. The only thing i found not working is MTP but i don't need it.

    Since i saw a couple users here asking about GSIs i decided to make a very simple guide.

    As always do this at your own risk. You may brick your device. You will void your warranty.

    Follow the guide only if you know what your are doing. Read each step carefully and avoid copy pasting stuff randomly.

    I won't go deep into details as i believe you should have some basic knowledge if you decide to do this.

    The procedure sould work for both T220 and T225 (i tested it on a T220).

    I did this on Windows using WSL for some of the steps.

    Sources


    Thanks to @kkoo and @Brepro1 for the useful info

    - https://forum.xda-developers.com/t/...sing-odin-without-twrp-phh-lineageos.4114435/
    - https://forum.xda-developers.com/t/...r-img-and-flashing-our-modifications.4196625/

    Requirements​


    - Unlocked bootloader

    If you haven't done this already follow the steps in parts 1-2 from:


    - Latest official ROM

    I used T220XXU1AVE1 for EUX region


    - Download your preferred GSI

    I used AOSP 12.1 v414 with gapps from phhusson


    - Clean vbmeta.img from Google


    Tools​


    - lz4


    - simg2img


    - lpunpack and lpmake


    - tar-md5-script-tool

    Use the attached tar-md5-script-tool.zip

    Steps​


    1. Extract official ROM files (BL, AP, CP, CSC)

    2. Extract AP .tar.md5

    3. Decompress the extracted super.img.lz4

    Code:
    lz4 -d super.img.lz4 super.img

    4. Convert the sparse super.img

    Code:
    simg2img super.img super.ext4.img

    5. Unpack super.ext4.img

    Code:
    lpunpack super.ext4.img

    I got 4 partitions in my image (should be the same for all T220/T225 ROMs):

    - odm.img
    - product.img
    - system.img
    - vendor.img

    6. Replace system.img with your GSI (rename it to system.img)

    7. Get the size of all partitions and the size of the original super.ext4.img (not the sparse super.img)

    Code:
    stat -c '%n %s' IMG_FILE.img

    8. Repack super.img

    Code:
    lpmake --metadata-size 65536 \
    --super-name super \
    --metadata-slots 2 \
    --device super:ORIGINAL_SUPER_IMG_SIZE \
    --group main:SUM_OF_ALL_PARTITIONS_SIZES \
    --partition odm:readonly:ODM_PARTITION_SIZE:main \
    --image odm=./odm.img \
    --partition product:readonly:PRODUCT_PARTITION_SIZE:main \
    --image product=./product.img \
    --partition system:readonly:SYSTEM_PARTITION_SIZE:main \
    --image system=./system.img \
    --partition vendor:readonly:VENDOR_PARTITION_SIZE:main \
    --image vendor=./vendor.img \
    --sparse \
    --output ./super_new.img

    Replace ORIGINAL_SUPER_IMG_SIZE, SUM_OF_ALL_PARTITIONS_SIZES, ODM_PARTITION_SIZE, PRODUCT_PARTITION_SIZE, SYSTEM_PARTITION_SIZE, VENDOR_PARTITION_SIZE with the values you obtained in step 7.

    Read lpmake docs for a more detailed expalation of the args used above:


    9. Compress the repacked super_new.img

    Code:
    lz4 -B6 --content-size super_new.img super_new.img.lz4

    10. Compress the clean vmbeta.img

    Code:
    lz4 -B6 --content-size vbmeta.img vbmeta.img.lz4

    11. Extract tar-md5-script-tool.zip

    12. Put all the *.img.lz4 files extracted from AP .tar.gz in tar-md5-script-tool dir

    13. Replace super.img.lz4 and vbmeta.img.lz4 in tar-md5-script-tool dir with your repacked and compressed super_new.img.lz4 (rename it to super.img.lz4) and the clean compressed vbmeta.img.lz4

    14. Run batch.bat in tar-md5-script-tool dir

    You will find the new AP .tar.md5 in the temp-folder subdir

    15. Flash your custom AP .tar.md5 with Odin along with BL, CP, CSC from original ROM

    16. Reboot into recovery and do a factory reset

    17. Done
    2
    Can we boot lineage-19.1 GSI (nogapps, no magisk ) on tab 7 lite ?
    if yes, please compile for test Thank you.
    Device: SM-T225 Regeion: THL
    Happy testing :)

    GSI: lineage-19.1-20220613-UNOFFICIAL-arm64_bvS-vndklite.img

    https://www.filehosting.org/file/details/8249475/GSI-Lineage-19.1_SM-T225_THL_T225XXU1AVB2.zip
    2
    Are there so many tutorials about SM-T22x here, from history till now from nothing (hard way) to very easy method why don't read and upgrade your skill from it.
    never mind ! i just install fastbootd and a custom gsi from Tutorials ! THX A LOT @tom.android
    2
    i flashed this rom but after the factory reset on the recovery, the tablet freezes on the animated logo cherish os.
    maybe the problem is the base firmware ? i used the T220XXS1BVJ2 base firmware Android 12
    No, your base is not the problem. That particular version of A12 CherishOS uses PHH v415 which has issues booting for our devices. Only PHH v414 or v416 GSIs like this one boot for us (it works for VJ2 firmware, tested it myself). Sadly I don't see any other developer releasing an A12 v416 based GSI like the one I linked to so yes, that's what we have for now until the newer A13 GSIs pick up the v416 patches hopefully.