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

Search This thread

tom.android

Senior Member
Jul 12, 2016
887
285
- For SM-T220
- Region: XAR
- GSI image: CherishOS_v415-arm64-bgS-slim-lite-secure_20220816.img.xz
- Firmware needed: T220XXU1BVGB (Android 12)
- Has GApps and Magisk 25.2
- Security: July 5th, 2022.
- Passes SafetyNet
- Face Unlock available
- MTP working
- microSD exFAT compatible

Note: I am not open to any more GSI building requests for a long while.
! Great work .
Pleases extract T225 framework-res. for me. Thanks. sorry to disturb again.

*** And MTP working. ( Developer option must set USB; for transfer file
 
Last edited:
Hi!
i flashed the cherish OS firmware and now my tab A7 Lite no longer works
i cant even get into odin
can someone help me?
also, i can hear it connecting to the computer, it sounds like a bootloop but nothing shows up on screen

<ID:0/004> Added!!
<ID:0/004> Odin engine v(ID:3.1401)..
<ID:0/004> File analysis..
<ID:0/004> Total Binary size: 5686 M
<ID:0/004> SetupConnection..
<ID:0/004> Initialzation..
<ID:0/004> Get PIT for mapping..
<ID:0/004> Firmware update start..
<ID:0/004> NAND Write Start!!
<ID:0/004> SingleDownload.
<ID:0/004> dtbo.img
<ID:0/004> gz-verified.img
<ID:0/004> recovery.img
<ID:0/004> scp-verified.img
<ID:0/004> spmfw-verified.img
<ID:0/004> sspm-verified.img
<ID:0/004> super.img
<ID:0/004> tee-verified.img
<ID:0/004> tzar.img
<ID:0/004> userdata.img
<ID:0/004> vbmeta.img
<ID:0/004> vbmeta_system.img
<ID:0/004> boot.img
<ID:0/004> RQT_CLOSE !!
<ID:0/004> RES OK !!
<ID:0/004> Removed!!
<ID:0/004> Remain Port .... 0
<OSM> All threads completed. (succeed 1 / failed 0)
 
Last edited:

tom.android

Senior Member
Jul 12, 2016
887
285
Hi!
i flashed the cherish OS firmware and now my tab A7 Lite no longer works
i cant even get into odin
can someone help me?
also, i can hear it connecting to the computer, it sounds like a bootloop but nothing shows up on screen

<ID:0/004> Added!!
<ID:0/004> Odin engine v(ID:3.1401)..
<ID:0/004> File analysis..
<ID:0/004> Total Binary size: 5686 M
<ID:0/004> SetupConnection..
<ID:0/004> Initialzation..
<ID:0/004> Get PIT for mapping..
<ID:0/004> Firmware update start..
<ID:0/004> NAND Write Start!!
<ID:0/004> SingleDownload.
<ID:0/004> dtbo.img
<ID:0/004> gz-verified.img
<ID:0/004> recovery.img
<ID:0/004> scp-verified.img
<ID:0/004> spmfw-verified.img
<ID:0/004> sspm-verified.img
<ID:0/004> super.img
<ID:0/004> tee-verified.img
<ID:0/004> tzar.img
<ID:0/004> userdata.img
<ID:0/004> vbmeta.img
<ID:0/004> vbmeta_system.img
<ID:0/004> boot.img
<ID:0/004> RQT_CLOSE !!
<ID:0/004> RES OK !!
<ID:0/004> Removed!!
<ID:0/004> Remain Port .... 0
<OSM> All threads completed. (succeed 1 / failed 0)
What AP Custom ? A12.?
BOOTLOADER LOCKED itself ALREADY.
During your changed firmware but root remain.
 
Last edited:
What AP Custom ? A12.?
BOOTLOADER LOCKED itself ALREADY.
During your changed firmware but root remain.
- For SM-T220
- Region: XAR
- GSI image: CherishOS_v415-arm64-bgS-slim-lite-secure_20220816.img.xz
- Firmware needed: T220XXU1BVGB (Android 12)
- Has GApps and Magisk 25.2
- Security: July 5th, 2022.
- Passes SafetyNet
- Face Unlock available
- MTP working
- microSD exFAT compatible

Note: I am not open to any more GSI building requests for a long while.
Remember to set "Smallest width" on "Display" settings at 598 if you don't want a toolbar.
Set these and reboot right after.
Samsung Features
-Enable stereo audio mode
-Enable double tap to wake (after a reboot unlock at least once)
-Enable extra sensors
Misc features
-Use alternate way to detect headsets
-Disable audio effects
-Bluetooth workarounds: MediaTek
-Force-disable A2DP offload
Credits to @tom.android
Download the file in the following post, put it on
Code:
/system/product/overlay
and change file permission to 0644 (rw-r--r--) and reboot.
This is the AP I used
 

nirogu325

Senior Member
Oct 15, 2010
3,687
1,913
Hi!
i flashed the cherish OS firmware and now my tab A7 Lite no longer works
i cant even get into odin
can someone help me?
also, i can hear it connecting to the computer, it sounds like a bootloop but nothing shows up on screen

<ID:0/004> Added!!
<ID:0/004> Odin engine v(ID:3.1401)..
<ID:0/004> File analysis..
<ID:0/004> Total Binary size: 5686 M
<ID:0/004> SetupConnection..
<ID:0/004> Initialzation..
<ID:0/004> Get PIT for mapping..
<ID:0/004> Firmware update start..
<ID:0/004> NAND Write Start!!
<ID:0/004> SingleDownload.
<ID:0/004> dtbo.img
<ID:0/004> gz-verified.img
<ID:0/004> recovery.img
<ID:0/004> scp-verified.img
<ID:0/004> spmfw-verified.img
<ID:0/004> sspm-verified.img
<ID:0/004> super.img
<ID:0/004> tee-verified.img
<ID:0/004> tzar.img
<ID:0/004> userdata.img
<ID:0/004> vbmeta.img
<ID:0/004> vbmeta_system.img
<ID:0/004> boot.img
<ID:0/004> RQT_CLOSE !!
<ID:0/004> RES OK !!
<ID:0/004> Removed!!
<ID:0/004> Remain Port .... 0
<OSM> All threads completed. (succeed 1 / failed 0)
Because you were using Android 11 firmware and did not update the whole device to the A12 firmware. It's why I wrote in bold Firmware Needed and put Android 12 also in bold and red.
 

nirogu325

Senior Member
Oct 15, 2010
3,687
1,913
This is the AP I used
Keep trying to get to ODIN. You are just bootlooping. Have the USB cable plugged in the computer. It is tricky because you have to hold both volume buttons, keep holding them and as soon as the screen turns off (it's an LCD display so it's easier to tell when it's actually off), plug the usb cable in the tablet and ODIN should show up (you can now release the volume buttons). Good luck.
 

tom.android

Senior Member
Jul 12, 2016
887
285
Keep trying to get to ODIN. You are just bootlooping. Have the USB cable plugged in the computer. It is tricky because you have to hold both volume buttons, keep holding them and as soon as the screen turns off (it's an LCD display so it's easier to tell when it's actually off), plug the usb cable in the tablet and ODIN should show up (you can now release the volume buttons). Good luck.
How are you today? Auto brightness working ok ?
 

tom.android

Senior Member
Jul 12, 2016
887
285

" Have you ever suffered from using lpunpack & lpmake ?" i wrote​

" Custom AP for install GSI without TWRP Step by Step with "imjtool"( no lpunpack ) Credits to @abg95a

UBUNTU ON WIN10 SUB-SYSTEM. only explain it by an easy way. Nothing new from abg95a post.

Screenshot_20220911_095049_Gallery.jpg

Screenshot_20220911_095448_Gallery.jpg



✓ When you set Smallest-width = 609 (Developer options)

smallest-width-609[1].png


You made it , not rely on someone. Only Win10 .Ubuntu Sub_system & Odin.
Make it yourself , not rely on Fastboot , Custom Recovery, dd , root .

✓✓Download: Step By Step create CustomAP file ( jpg Format) from Attach file.

✓✓PHH TREBLE SETTING:-
Samsung feature:
  • Use alternative audio policy
  • Enable extended brightness range
  • Enable double tap to wake
  • Enable extra sensors ( proximeter sencer for LTE version)
  • Enable workaround for white-ish screen
Misc features:
  • Use alternate way to detect headset. ( test with sony wh1000xm4)
  • Disable audio effect (disable AudioFX app of GSI and uses Dolby ATMOST instead.)
  • Use linear screen brightness slider (if your screen flashing)
  • Force-disable A2DP offload. ( Bluetooth problem fix )

1663093568315.png


horizon-quick[1].png


Special Features on this CherishOS 3.9.5 GSI ( not founded in another GSI ,except SuperiorOS GSI )


- MTP working on Android 12 base. (set default USB configuration = file transfer @ Developer options)

- Offline power charging.
( corrected "Set Warranty bit" break state . ) when powered off, plugging in the charger would make the tablet enter a screen with text `Set Warranty bit', that you couldn't easily get out of by pressing POWER button alone.

Fix ✓ can turnoff device , charging like normal , warning text "set warranty bit" will turn off and uses POWER button turn on tablet normally.

- Auto Brightness (option) -download my Overlay Magisk Module
( if bootloop was happened, uses ' adb wait-for-device shell magisk...' technic)

- eXFat sd-card supported

Quicker than on A11.

-Trick to add shotcut from Drawer
( -Fixed✓ in the launcher dragging apps from drawer to homescreen
doesn't always work. )

- PHH Fixed✓ Bluetooth & headphone, ✓proximeter for phone, etc.,

Howto install

You can try with my Custom AP here: 3.4 GB ( Muti CSC zone OLM )

✓ if you are on Samsung SM-T225 zone CSC OLM , please insert sim before fashing.

( made from CherishOS_v415-arm64-bgS-slim-lite-secure_20220816.img.xz )
✓No root (superuser). ✓No Google assistant

✓ Before your flashing new system , make sure you are already on Android 12 Stock ROM. Bootloader fully unlocked and Enable usb debugging.

✓ After Finishing Flash with ODin , you must select "factory reset" from Recovery Menu Pop up.
( I didn't do magisk-patch new Custom AP file. But create magisk-patch only boot.img.lz4 + vbmeta.img.lz4 separately for flash with odin Userdata slot.)


-another zone: you must make it by yourself with your right zone firmware , cause file size would suffer for upload if you requests me doing.

OLM.PNG


RECOMMEND: Use Magisk if nesessary .
How? extrack Stock AP file for "boot.img.lz4 + vbmeta.img.lz4" create Archive xxxx.tar ( Pack both as a single tar file with 7-zip) and patch with Magisk.

How? install root
flash magisk patch file from step above in USERDATA slot of ODin

✓✓Download: Magisk Patch Boot : Attch File Below or
here: https://mega.nz/file/tLwWmS7D#mMhODopn2zdXu_I58exVOqTutrGySSnW2u4VAOWzj_Y

>>>>>>No request for making Custom AP, Do it youself.<<<<<

✓✓✓ Manual Step by Step "Creating Custom AP file for Odin >>>https://forum.xda-developers.com/t/...stom-ap-overlay-making.4473159/#post-87204333

✓Support DTSx


Screenshot_20220923-114308_AudioWizard.png


✓Support Dolby ATMOS + PowerAmp+ MX player pro (y)(y)(y)
Download:https://www.pling.com/p/1610004/

Screenshot_20220913-151655_Dolby Atmos.png


Wavelet ( legacy mode ) working with Dolby ATMOST



Screenshot_20220916-092303_Wavelet.png


JamesDSP + Wavelet

Screenshot_20220920-190221_Wavelet.png


Set PowerAmp works with Dolby ATMOS

==============

SAFETY NET CHECK PASS.

============

Fix Bug
in the launcher dragging apps from drawer to homescreen
doesn't always work.
1663093115389.png


1663093437014.png

How to update firmware when you already rooted your tablet without losing data.

!! Warning

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

[ try to update without lost data ]​

!!! Don't update with Home_CSC for now.

!! Safety update should be
1. odin flashing back to Stock Firmware.
no Root.
2. Flash Custom AP file with new GSI.
update , UserData slot with magisk-patch (boot.img.lz4 + vbmeta.img.lz4)

+++++++++++++++++++++
Note:- KG 'PRENORMAL' Status

Can't connect internet , then Developer options " OEM Unlock " will not show and can't boot into recovery also.

>>>>>>>>>>>>>

Note:- SamsungAppsPatcher (Wearable App)​


Note:-How to Uninstall All Magisk Modules When in a Bootloop. Cause you don't have TWRP

COMPUTER
Code:
adb wait-for-device shell magisk --remove-modules

 

Attachments

  • magisk_patched-24300_uAGmj.tar
    32 MB · Views: 2
  • T225-A12-overlay-magisk-module.zip
    12.6 KB · Views: 4
  • DolbyAtmos-MagicRevision-MagiskModule-20220830003603 (1).zip
    410.9 KB · Views: 4
  • safetynet-fix-v2.3.1.zip
    93 KB · Views: 2
  • Screenshot_20220913-153939_Yet Another SafetyNet Attestation Checker.png
    Screenshot_20220913-153939_Yet Another SafetyNet Attestation Checker.png
    86.6 KB · Views: 70
  • 1663092975552.png
    1663092975552.png
    832.9 KB · Views: 18
  • StepByStep_CustomAP.jpg
    StepByStep_CustomAP.jpg
    1.9 MB · Views: 18
  • Screenshot_20220915_145747_Vivaldi Browser.jpg
    Screenshot_20220915_145747_Vivaldi Browser.jpg
    283.5 KB · Views: 46
Last edited:

tom.android

Senior Member
Jul 12, 2016
887
285
You sure? I see 3 days old commits from him. He added Galaxy A31 overlays and some other device auto brightness fix. I wonder if there's any way he can officially merge your overlays.
We can merging anyway by public it, but i waiting for fix stat of consuming power befor. And now i have magisk module also.
 

tom.android

Senior Member
Jul 12, 2016
887
285
Update Dolby ATMOS magic revision for GSI CherisOS tab a7 lite

v2.6 stable
DolbyAtmos-MagicRevision-MagiskModule-20220915061119.zip
 
  • Like
Reactions: nirogu325

YACO

Senior Member
Apr 12, 2008
196
123
- For SM-T220
- Region: XAR
- Firmware required: T220XXU1BVGB (Android 12)
DISCLAIMER: FIRMWARE NEEDED IS ANDROID 12. DO NOT FLASH IF YOU HAVEN'T FLASHED THE WHOLE ANDROID 12 FIRMWARE SPECIFIED ABOVE (BOOTLOADER, CSC AND AP FILES). IF YOU DON'T KNOW WHICH FIRMWARE YOUR T220 IS IN, THEN YOU SHOULD *NOT* BE HERE. I AM NOT RESPONSIBLE FOR ANY DAMAGES IF YOU DON'T FOLLOW. GSI image: CherishOS_v415-arm64-bgS-slim-lite-secure_20220816.img.xz
- Has GApps and Magisk 25.2
- Security: July 5th, 2022.
- Passes SafetyNet
- Face Unlock available
- MTP working
- microSD exFAT compatible
Note: I am not open to any more GSI building requests for a long while.
Remember to set "Smallest width" on "Display" settings at 598 if you don't want a toolbar.
Set these and reboot right after.
Samsung Features
-Enable stereo audio mode
-Enable double tap to wake (after a reboot unlock at least once)
-Enable extra sensors
Misc features
-Use alternate way to detect headsets
-Disable audio effects
-Bluetooth workarounds: MediaTek
-Force-disable A2DP offload
Credits to @tom.android
Download the file in the following post, put it on
Code:
/system/product/overlay
and change file permission to 0644 (rw-r--r--) and reboot.
This should be it's own post. Needed Android Auto and both stock AVE1 and BVGB didn't have it. Everything went smooth and running very fast. Thank You!
 
  • Like
Reactions: nirogu325

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    enjoy android 12 partitions extracted from super:https://mega.nz/folder/GJ430ATA#IripVV_yItbgzvcIgIKNTQ

    super.ext4.img 6023020544
    product.img 1184133120
    vendor.img 709328896
    odm.img 4349952
    1
    i just tried lineage 20 gsi on a12 fw and it bootloop
    not supported vndklike.
  • 7
    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.