[Samsung Galaxy Tab A7 Lite] tom.android:
GSI Handbook. p1

How to flash a GSI. with (fastbootD)

Note:

#Step.1-5 for fresh Stock installation. (Required one-time)

note: GSI always changes your System partition only.

#Step.6-13 for new GSI installation. (Required for the new changes of the System partition only)

# Step 0.

-Check your BootLoader had already completely unlocked.

such as KG status= "Completed" or "Checking"

-Developer options had " OEM unlocking in enable selected " or enable with gray screen. maybe need connected with internet first.

( if not then stop here. And read howto unlock bootloader here.)

Unlock Bootloader and Root Samsung Galaxy Tab A7 10.4 using Magisk

A comprehensive guide on how to unlock the bootloader and root Samsung Galaxy Tab A7 10.4 usign Magisk. Compatible with SM-T500 (WiFi) and SM-T505 (LTE).

www.thecustomdroid.com

-Howto unlock bootloader.

must flash full stock ROM only first.

must uses only The Samsung official way.

( from download mode > press "Volum up long press" : Device unlock mode )

View attachment 5970873

1. Get Platform Tools. (Don't uses another adb tool.)

* Fastboot Driver for Win10,11. Look here.

2. Get boot.img , vbmeta.img from Stock ROM.

Note:

To disable AVB verification vbmeta.img when uses fastbootD.​

https://xdaforums.com/t/to-disable-...mg-when-uses-fastbootd.4609215/#post-88795533

* Download Firmware from https://samfw.com/

* Extract (APxxx.tar.md5) From Firmware file by Zip util.

* Get lz4 app from https://github.com/lz4/lz4/releases

lz4 -d vbmeta.img.lz4 vbmeta.img

3. Get desired GSI. https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list

4. Create 3in1 tar file from 4.1 ) 4.2 ) 4.3 ) with 7zip utility.

- 4.1 patched "boot.img" with Magisk.

or Uses " kernelsu" (Optional)

-Download my new compile kernelsu image & manager and

replace (boot.img from magisk's boot patch)

- 4.2 patched " vbmeta.img with Magisk or use Disable AVB verification with Android boot image editor.

https://xdaforums.com/t/to-disable-...mg-when-uses-fastbootd.4609215/#post-88795533

- 4.3 patched " Recovery.img from Johx22 /Patch-Recovery for access "FastbootD"

*( Can't do it , learn from https://m.youtube.com/playlist?list=PLvggR4skCxYzhB3SXxpSx4LvRzGwx9k45 )

* Basic you should known. https://droidwin.com/patch-samsung-ap-firmware-magisk/

5. Uses Odin for flashing original Samsung Firmware. (AP , BL , CP, CSC , + USERDATA ) - this requirement need device has already unlocked BootLoader before.

* And You can not downgrade from latest current BootLoader version. ( xxxxx4xxxxx) such as T225XXS4CWG4 to 3 or 2 or 1.

( This step your device must go into "Download mode" for flashing.)

DOWNLOAD MODE. ( press Vol up )

View attachment 5965481

6. After reboot from step 5. Must open "USB Debugging from Developer mode" and

6.1 test connecting "adb mode" with your Computer.

adb devices

6.2 ( very important )

- All partition at the first boot in this step will RW (Read/Write).

- you can mod your system, vendor etc., that you want, such as i will modify " vendor/overlay/xxxx " for auto-brightness screen.

7. Boot into fastbootD mode.

adb reboot fastboot

8. Test detection Computer with your tab in fastbootD mode.

fastboot devices

9. Remove Stock's System Partition.

fastboot erase system

10. Flash new GSI system. (Don't forgot put GSI.IMG in platform-tool folder.)

fastboot flash system newGSI-name.img

11. Look at your tab at fastbootD menu select 》Enter Recovery

12. Device changes to " Recovery mode" Select 》wipe data / Factory reset.

13. After finished then Reboot system.

FASTBOOTD MODE

View attachment 5965483

RECOVERY MODE.

View attachment 5965485

Trouble shooting

-------> If founded "No spaces to resize partition error"

fastboot erase product

fastboot resize-logical-partition product 0x0

fastboot getvar all

-------> (bootloader) partition-size:product:0x0