[Samsung Galaxy Tab A7 Lite] tom.android:
>THIS ALL ABOUT USING LINUX SUB-SYSTEM ON WINS10-11 》No-switch between different platforms (Windows and Linux). >> Extended from my tutorial " CustomAP" "FastbootD" here. https://xdaforums.com/t/customap-2022.4473159/

1.Unlocked BootLoader.

2.-T22X with Stock ROM Or Any GSIs pre-installed.

3.Odin

4.Linux Sub-system wins10,11

5.https://github.com/ChromiumOS-Guy/SuperPatcherGSI :Autmated Script to Patch a Super.img with a GSI in python 3. "SuperPatcherGSI-x64.AppImage"

Releases · ChromiumOS-Guy/SuperPatcherGSI

Autmated Script to Patch a Super.img with a GSI in python 3 - ChromiumOS-Guy/SuperPatcherGSI

github.com

6.Download GSIs (extract *.img file)

7.Extract "super.img.lz4' from AP.tar.md5 (Your Firmware) with zip util.

How2

-Install Ubuntu-18.04 Linux sub-system on Wins10,11

-Create shotcut to Desktop

Open RUN box and type: \\wsl$

install python3

-Launch Ubuntu sub system.

sudo apt update && upgrade
sudo apt install python3 python3-pip ipython3

***Test Python

Create test.py file with this code. Or download from Attachment.

def printList(lst):
for item in lst:
print(item)

lst=[1,2,3,4,5]
printList(lst)

Execute with this command:

python3 test.py

If you saw this output then it works.

1

2

3

4

5

-exit and restart (sub-system)

-ReLaunch Ubuntu sub system.

-put "super.img.lz4" "SuperPatcherGSI-x64.AppImage"

"Any_GSI.img" Into "home/<linux_user_name/"

-install "lz4 package" and extract "super.img" from LZ4 format.

sudo apt install liblz4-tool
lz4 -d super.img.lz4 super.img

-Execute SuperPatcherGSI script

Command flag: [ interactive mode]

./SuperPatcherGSI-x64.AppImage -i super.img (input) -o super.new.img (output) -s 2 (device slots)

./SuperPatcherGSI-x64.AppImage -i super.img -o super.new.img -s 1

*Note: T22X has 1 slot.

EXAMPLE FROM LOG:

# insert GSI into Super partition

(base) tom@DESKTOP-1TAQ2K1:~$ ./SuperPatcherGSI-x64.AppImage -i super.img -o test.img -s 1

flags successfully verified and appear to be correct, error code (OK)

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

unpacking...

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

Sparse image detected.

Process conversion to non sparse image ....[ok]

Extracting partition [system] .... [ok]

Extracting partition [odm] .... [ok]

Extracting partition [product] .... [ok]

Extracting partition [vendor] .... [ok]

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

choose img to replace

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

option number 0 system.img size of (3825119232) bytes

option number 1 product.img size of (1238544384) bytes

option number 2 vendor.img size of (652824576) bytes

option number 3 odm.img size of (4349952) bytes

Please Choose: yaap.img

Please Put a Number In!

Please Choose: 0 《-----------Your choice

Please Input Path To Replacment Partition:

yaap

Please Input a Valid Path to a IMG File!

Please Input Path To Replacment Partition:

yaap.img 《-------------Your choice

Are you sure this is the path to file (Y/n): y

Img replaced!

replace another (Y/n): n 《---------------Your choice

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

device size (super.img size) in bytes must be evenly divisible by 512, default (5319659520) bytes:

metadata size in bytes must be evenly divisible by 512 default=~0.5KiB:

make sparse (flashable with fastboot) ? (Y/n): y 《-------------Your choice

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

using these flags:

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

--device-size=5319659520 --metadata-slots=2 --output test.img --metadata-size 512000 --sparse --partition=system:none:2911940608 --image=system=/home/tom/tmp/system.img --partition=product:none:1238544384 --image=product=/home/tom/tmp/product.img --partition=vendor:none:652824576 --image=vendor=/home/tom/tmp/vendor.img --partition=odm:none:4349952 --image=odm=/home/tom/tmp/odm.img

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

lpmake I 06-25 12:20:44 530 530 builder.cpp:1093] [liblp] Partition system will resize from 0 bytes to 2911940608 bytes

lpmake I 06-25 12:20:44 530 530 builder.cpp:1093] [liblp] Partition product will resize from 0 bytes to 1238544384 bytes

lpmake I 06-25 12:20:44 530 530 builder.cpp:1093] [liblp] Partition vendor will resize from 0 bytes to 652824576 bytes

lpmake I 06-25 12:20:44 530 530 builder.cpp:1093] [liblp] Partition odm will resize from 0 bytes to 4349952 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

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

cleaning...

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

OK

(base) tom@DESKTOP-1TAQ2K1:~$

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

-Final: you will get " super.new.img" ( rename it to " super.img" before -》

Create "tar file of super.img" with zip utility.

-OPEN "ODIN" AND CONNECTED WITH "Download Mode of your SM-T22X

Flash "super.tar" at AP Slot.

View attachment 5940851

(No need to wipe or factory reset)

Errors	Meaning/Fix
Not enough space on device for partition (PARTITION NAME HERE) with size (PARTITION SIZE HERE)	this means that the --device-size flag for lpmake was set with a maximum size which is smaller than all the partitions (unpacked img files + GSI) combined.
Invalid sparse file format at header magic / Invalid sparse file format at header	this is actually a warning and can be ignored its actually a good sign if you get this warning