[Samsung Galaxy Tab A7 Lite] tom.android:
LeaOS-GSI is a project which based on AOSP with trebledroid patches and personal patch. This is the GSI version of LeaOS for Huawei. It is available on a lot of variant

( But your SM-T22x can uses.)

**so many file structures, please select "ext4" if you don't known about its.

Download

: 2022-12-23

Here

https://sourceforge.net/projects/altairfr-huawei/files/TrebleDroid-GSI/

Variant: (explain)

1. arm64_bvN : ARM64 A/B ext4 read-only - Vanilia with no SU

2. arm64_vvN : ARM64 A/B vndklite read-write - Vanilia with no SU

3. arm64_evN : ARM64 A/B erofs lz4 compression read-only - Vanilia with no SU

4. arm64_bgN : ARM64 A/B ext4 read-only - Google Apps with no SU

*5. arm64_vgN : ARM64 A/B vndklite read-write - Google Apps with no SU

6. arm64_egN : ARM64 A/B erofs lz4 compression read-only - Google Apps with no SU

Pre-installation

-Sam Stock Android 13. (Based ROM)

-Bootloader unlocked.

Flash Tools

-Odin

-Linux Sub-system for Win10, Win11 (WSL1 , WSL2)

Howto (Step-for-installation)

Note: my example was No2.

0.preparing (ubuntu environment) from my full tutorial here.

Part 1: Create CustomAP framework file For GSI Flashing with Odin.

1. Download: GSI

2. Open Ubuntu from Start Menu

3. Extract "TrebleDroid-A13-20221223-treble_arm64_vvN.IMG" from step 1 to folder /home/username/ and rename it to system.img

4.

stat -c '%n %s' *.img

output:

odm.img 4349952

product.img 1238544384

system.img 1999273984

vendor.img 652816384

5.

stat -c '%n %s' *.raw

output

super.raw 6094323712

6. check filesize of odm.img , product.img , vendor.img and super.raw

7. calculate groupmain summary ( odm + product + vendor + system)

Note: only system.IMG will changes, the other are static file size.

8. specific formular of new super image partition.

sudo ./otatools/bin/lpmake --metadata-size 65536 \
--super-name super \
--metadata-slots 2 \
--device super:6094323712 \
--group main:3894984704\
--partition odm:readonly:4349952:main \
--image odm=./odm.img \
--partition system:readonly:1999273984:main \
--image system=./system.img \
--partition vendor:readonly:652816384:main \
--image vendor=./vendor.img \
--partition product:readonly:1238544384:main \
--image product=./product.img \
--sparse \
--output ./super_new.img

[sudo] password for tom: <input your password>

output

lpmake I 01-02 15:41:30 29 29 builder.cpp:1012] [liblp]Partition odm will resize from 0 bytes to 4349952 bytes

lpmake I 01-02 15:41:30 29 29 builder.cpp:1012] [liblp]Partition system will resize from 0 bytes to 1999273984 bytes

lpmake I 01-02 15:41:30 29 29 builder.cpp:1012] [liblp]Partition vendor will resize from 0 bytes to 652816384 bytes

lpmake I 01-02 15:41:30 29 29 builder.cpp:1012] [liblp]Partition product will resize from 0 bytes to 1238544384 bytes

Invalid sparse file format at header magic

Invalid sparse file format at header magic

Invalid sparse file format at header magic

Invalid sparse file format at header magic

9. compress your new super.img

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

output

using blocks of size 1024 KB

Compressed 3807893192 bytes into 2236324749 bytes ==> 58.73%

10. exit ubuntu terminal

11. open folder " C:\tar-md5-script-tool"

11.1 transfer output-file (super_new.img.lz4) from ubuntu step 9 to this folder and rename it to " super.img.lz4"

11.2 copy & paste "vbmeta.img.lz4"

11.3 transfer all files from Stock AP framework dot tar

View attachment 5799325

12. run batch.bat

View attachment 5799329

13. test ouput file by dubble click open if.

if file not open or error

View attachment 5799331

must redo again.

13.1 Don't rename it from " AP_TAR_MD5_CUSTOM_FILE_ODIN.tar.md5" then remove it to your framework files extraction folder.

14. open odin connect your tab from download mode

if you want magisk , patch boot + vbmeta and flash it at USERDATA slot.

View attachment 5799343

15. your tab reboot with prompt to factory reset data.

View attachment 5799345

Trouble shooting

1. Install patch-magisk after finished flashing at AP slot.

- Data reset will happened.

2. Offline-charger must be fixed.(its for huawei charger)