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,795
1,973
Update Dolby ATMOS magic revision for GSI CherisOS tab a7 lite

v2.6 stable
DolbyAtmos-MagicRevision-MagiskModule-20220915061119.zip
Thanks for the heads up. I am still using the June build for that excellent module but I couple it with JamesDSP using the Zumreed Sfit Viper-DDC profile. Sounds way better than stock, that's for sure.
 

tom.android

Senior Member
Jul 12, 2016
1,948
470
Thanks for the heads up. I am still using the June build for that excellent module but I couple it with JamesDSP using the Zumreed Sfit Viper-DDC profile. Sounds way better than stock, that's for sure.
Screenshot_20220916-092303_Wavelet.png
 

YACO

Senior Member
Apr 12, 2008
196
123
Yeah, just saying samsung's roms didn't have it for some stupid reason... otherwise I wouldn't have bothered.... though cherishos is very nice.
 

tom.android

Senior Member
Jul 12, 2016
1,948
470

!! CUSTOM AP firmware for install GSI.​

I have founded KG 'Broken' status after Odin fashing with Home_CSC although uninstall Magisk before.​

[ try to update without lost data ]​

May be try to build TWRP for A12.
 

misumisu0048

Member
Jun 27, 2022
7
0
can someone compile Pixel Experience 12.1 for Tab A7 Lite Sm-T220 T220XXU1AVE1 with magisk region canada csc T220OXM1AVE1
 

nirogu325

Senior Member
Oct 15, 2010
3,795
1,973
can someone compile Pixel Experience 12.1 for Tab A7 Lite Sm-T220 T220XXU1AVE1 with magisk region canada csc T220OXM1AVE1
Android 12 firmware is available for your region. I am no longer building using A11 firmware for A12 GSIs due to some important features like MTP (USB connection) not working when using A11 firmware as the base.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    D
    Deleted member 12168841
    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://xdaforums.com/t/guide-custo...sing-odin-without-twrp-phh-lineageos.4114435/
    - https://xdaforums.com/t/editing-system-img-inside-super-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
    Thank you so much for compiling the AP for me bro but when i try to flash it with odin i get this error
    <ID:0/004> Firmware update start..
    <ID:0/004> SingleDownload.
    <ID:0/004> preloader.img.lz4
    <ID:0/004> FAIL!


    For your information the current OS build on my tablet is INS with the baseband version of T225XXU1AVB2 and security patch of 1 Feb 2022 hope this helps you.
    Here is GSI build for SM-T225_INS_T225XXU1AVB2
    https://www.filehosting.org/file/details/7129248/GSI-12_SM-T225_INS_T225XXU1AVB2.zip
    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
    The lpunpack and lpmake step isnt working for me ive been at this for days, no luck.
    Can someone please help me out by uploading custom AP .tar.md5(file with GSI, the modded one) along with BL, CP, CSC from original ROM to google drive?
    thanks!