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

Search This thread

Pleasance

Member
Dec 31, 2021
8
0



Thank you so much for compiling the GSI for me! :D

I got the GSI to sucessfully boot on the tablet SM-T225 and so far everything works great

What's Working:
Wi-Fi
LTE+ works great
Bluetooth
Calls
SMS
Camera
Microphone
Speakers
Proximity Sensor ( Should be enabled within Treble Settings---> Enable additional sensors)
Tap to Wake ( Should be enabled within Treble Settings)

What's not working
MTP

The performance is 2x greater compared to One UI 3.1

Screenshots attached below.
wpUw2vF9OiVTMzKd_JgL8FJtDvyDjnzNze-8AEN9V-GZTJgPPkEEVqQoI-7bQ6QMXHb9yBWZbkr0CgV8bl02jR3pPQVHtN7jSoRk0tnu8JBbfzdhEX1Y5CKFF_UWXwgjK2i-QMzGNPoscwiULWqpVanB1O2_8blojYaNnbClK2TwLSa1b3yFlzlwVJuAC8CRquEfK_3bF3nZ_GGUa_bqO4uagvGS2ljBGL7FgiSQbiwCiYHZLGNK5diFxAbgMwOu3ARS9TRVbeftGRnhajcfxwQcjzkw73kaDvcCKv80kM6ohSqK5upGgGSqXlEai7zNsSsqBTzeZox3yztBB9SgYrZ7ZoMZH81k0gdH4pnuN3SFl9Z0S7RF1HOO668nCDTbhp4E1omZthXbSQptCNpL-Eth8XCjWgxroSZeXtspWu2Jt3yxUCuRGIDfyc3WuBb51QlP2DCT1nbhSh3vd73cMovAXMJYUi0v8o5ruD_If5c9JnDNxw7sdEDDdvXO7PQqxOAkbL8oCO8mW-ldo1mC4oFY1KvE3AHZBkTUhbM76ji8e8r2S6lTUj3wrQZZTmYS5mLyHrpEP1Oq03UnseeIQkDXbJQrWfsevUGBeQGOsISFl1utGaiOfq8vd5vcpphgpQZDtJOe_btEnyOvZvMyAr7OUx91fua7pV5szfB9om69l54zBGBRQx4lRT7_NXhElnS3Hi__JIM0rX9o1UHFv0RxREsvT4WaO1heftgUc_1T9Vsdq-lGwP3Re3NBKO5-MgAQbjCC2Cxd6Vi0_pcuZ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? We have one of these that is really only used as a baby monitor but it is so slow. So looking into this.
 

DanneSwe

Member
Feb 20, 2014
26
10
Sundsvall
Successfully flashed GSI with magisk on my T220 following the OP's procedure. MTP is not working as the OP said. However, I can use my flash drive so I don't really miss MTP.

I chose "system-squeak-arm64-ab-vndklite-gapps-secure.img.xz" for GSI. "Treble Info" app can tell you what image would be compatible with your device.

If you want to use a different launcher like Nova instead of the default one, change the "Smallest width" setting from 600 to 598 in Developer options to hide the annoying taskbar.

AOSP-Mods and "Project Themer - Android 12+" work fine for me.

Here is my build for my device SM-T220 (SM-T220_EUX_T220XXU1AVE1):

GSI: system-squeak-arm64-ab-vndklite-gapps-secure.img.xz
Custom AP: https://www.filehosting.org/file/details/7045394/AP_TAR_MD5_CUSTOM_FILE_ODIN.tar.md5
Custom AP with Magisk patch: https://www.filehosting.org/file/details/7045714/magisk_patched-25101_cauJQ.tar

You can extract BL and Home_CSC from SM-T220_EUX_T220XXU1AVE1.

View attachment 5644663View attachment 5644665View attachment 5644667View attachment 5644669

Notes: My device is actually SM-T220 XAR, but I have been updating it with SM-T220 EUX firmware versions without any issue.
Thanks a lot, flashed it and it works great! Perfect ROM to bring some snappy performance to a low budget tablet. 😃
 

izimen

Senior Member
Apr 8, 2012
248
10
Paris
Successfully flashed GSI with magisk on my T220 following the OP's procedure. MTP is not working as the OP said. However, I can use my flash drive so I don't really miss MTP.

I chose "system-squeak-arm64-ab-vndklite-gapps-secure.img.xz" for GSI. "Treble Info" app can tell you what image would be compatible with your device.

If you want to use a different launcher like Nova instead of the default one, change the "Smallest width" setting from 600 to 598 in Developer options to hide the annoying taskbar.

AOSP-Mods and "Project Themer - Android 12+" work fine for me.

Here is my build for my device SM-T220 (SM-T220_EUX_T220XXU1AVE1):

GSI: system-squeak-arm64-ab-vndklite-gapps-secure.img.xz
Custom AP: https://www.filehosting.org/file/details/7045394/AP_TAR_MD5_CUSTOM_FILE_ODIN.tar.md5
Custom AP with Magisk patch: https://www.filehosting.org/file/details/7045714/magisk_patched-25101_cauJQ.tar

You can extract BL and Home_CSC from SM-T220_EUX_T220XXU1AVE1.

View attachment 5644663View attachment 5644665View attachment 5644667View attachment 5644669

Notes: My device is actually SM-T220 XAR, but I have been updating it with SM-T220 EUX firmware versions without any issue.
hi good job and thanks for your travel if you can make a custom AP with magisk patch with LineageOS please for T220
 

misumisu0048

New member
Jun 27, 2022
1
0
when i try to build the image, i get
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
when i try to build the new super image, i get "block device must have a valid size" have you had this issue
 
Last edited:

themace51

Member
Aug 22, 2020
25
3
Successfully flashed GSI with magisk on my T220 following the OP's procedure. MTP is not working as the OP said. However, I can use my flash drive so I don't really miss MTP.

I chose "system-squeak-arm64-ab-vndklite-gapps-secure.img.xz" for GSI. "Treble Info" app can tell you what image would be compatible with your device.

If you want to use a different launcher like Nova instead of the default one, change the "Smallest width" setting from 600 to 598 in Developer options to hide the annoying taskbar.

AOSP-Mods and "Project Themer - Android 12+" work fine for me.

Here is my build for my device SM-T220 (SM-T220_EUX_T220XXU1AVE1):

GSI: system-squeak-arm64-ab-vndklite-gapps-secure.img.xz
Custom AP: https://www.filehosting.org/file/details/7045394/AP_TAR_MD5_CUSTOM_FILE_ODIN.tar.md5
Custom AP with Magisk patch: https://www.filehosting.org/file/details/7045714/magisk_patched-25101_cauJQ.tar

You can extract BL and Home_CSC from SM-T220_EUX_T220XXU1AVE1.

View attachment 5644663View attachment 5644665View attachment 5644667View attachment 5644669

Notes: My device is actually SM-T220 XAR, but I have been updating it with SM-T220 EUX firmware versions without any issue.

Hey

I tried making my own but it failed in Odinn :(, i tried yours and it worked. Thank you.
I was wondering if you could make one without gapps and with magisk?
Thanks
 

xpdragon

Senior Member
Here is GSI Custom AP that is compiled based on Pixel Experience Plus 12.1 v414 from ponces.
- GSI image: PixelExperience_Plus_arm64-ab-12.1-20220613-UNOFFICIAL.img.xz
- FW: SM-T220_EUX_T220XXU1AVE1

I switched to ponces GSI since Face Unlock works and SafetyNet is also passed with Magisk root.

Custom AP: https://www.filehosting.org/file/details/7328949/GSI-12_SM-T220_EUX_T220XXU1AVE1.zip
Custom AP with Magisk Root: https://www.filehosting.org/file/details/7328948/GSI-12_SM-T220_EUX_T220XXU1AVE1_Magisk_Patched.zip
 
  • Like
Reactions: nirogu325

xpdragon

Senior Member
Last edited:

Difficul

Senior Member
Jul 2, 2021
125
5
It appears your SM-T225 is for TPA region, not EUX and your FW is 2 versions behind from the latest one. I don't know if it will work or not.

If possible, make me and user T225XXU1AUL1 an AP custom gsi file ;) Thank
Update : Has recklessly flashed and successfully booted on T225XXU1AUL1

Community Verified icon
 
Last edited:

xpdragon

Senior Member
  • Like
Reactions: Difficul

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    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
    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
    Successfully flashed GSI with magisk on my T220 following the OP's procedure. MTP is not working as the OP said. However, I can use my flash drive so I don't really miss MTP.

    I chose "system-squeak-arm64-ab-vndklite-gapps-secure.img.xz" for GSI. "Treble Info" app can tell you what image would be compatible with your device.

    If you want to use a different launcher like Nova instead of the default one, change the "Smallest width" setting from 600 to 598 in Developer options to hide the annoying taskbar.

    AOSP-Mods and "Project Themer - Android 12+" work fine for me.

    Here is my build for my device SM-T220 (SM-T220_EUX_T220XXU1AVE1):

    GSI: system-squeak-arm64-ab-vndklite-gapps-secure.img.xz
    Custom AP: https://www.filehosting.org/file/details/7045394/AP_TAR_MD5_CUSTOM_FILE_ODIN.tar.md5
    Custom AP with Magisk patch: https://www.filehosting.org/file/details/7045714/magisk_patched-25101_cauJQ.tar

    You can extract BL and Home_CSC from SM-T220_EUX_T220XXU1AVE1.

    Screenshot_20220624-113012.pngScreenshot_20220624-113035.pngScreenshot_20220624-113131.pngScreenshot_20220624-113205.png

    Notes: My device is actually SM-T220 XAR, but I have been updating it with SM-T220 EUX firmware versions without any issue.
    1
    Can you share screenshot as I think treble projects are only stable on SD chipset.

    System lang is italian but should be easy to understand.

    I found only a couple bugs so far in phhusson's GSI:
    - in the launcher dragging apps from drawer to homescreen doesn't always work (just use another launcher)
    - crashed once while searching in settings app

    I use the tablet only for media consumption and some retrogaming, so there are probably other bugs i haven't noticed.

    This is a generic guide, it won't include a "known issues" section since it largely depends on what GSI you choose.

    I haven't tested this on the LTE version so i can't say for sure if mobile network works or not.

    Unfortunately i don't have the time to make a custom ROM, test it and keep it updated here on the forum but maybe if there is enough interest someone will do it.

    I hope other users will try to flash a GSI and share their experience here so we can gather some info on working/broken stuff, especially on the LTE model since i can't test that.