[Samsung Galaxy Tab A7 Lite] tom.android:
My old tutorial "CustomAP"

CustomAP 2022

The only way to get away from the official firmware. New. https://xdaforums.com/t/july-leos-20-r-w-a13-gsis-de-googled-advanced-privacy-invisible-pro-exfat-leosium-system-webview-kernelsu-new-launcher-dolby-atmos.4602521/ Changes Degoogle...

xdaforums.com

For Dynamic Partition Only

This step by step tutorial is all about

https://xdaforums.com/t/full-guide-...table-the-best-for-now.4627859/#post-89007921

[A13-GSI] DerpFest (July) +Introduction with how to flash a GSI handbook.(fastbootD) p1-p9

# New derpfest here. (DerpFest-13-Tango-2023.07.25 by KoySx) ------------------ The new GSI introduction. * This part (new GSI introduction) will changes from old GSI to the newer features .(except howto part). * Don't worry too much about TWRP...

xdaforums.com

​

*Disable AVB verification when uses "fastbootD' here.

☆☆☆ FastbootD video tutorial : https://m.youtube.com/playlist?list=PLvggR4skCxYzhB3SXxpSx4LvRzGwx9k45

​

Full round-trip of "GSIs flashing process".​

Step to install Stock ROM with Fastboot ability.(need 3in1.tar)

Step to flash GSI on top of Stock ROM.

get rid of SU.which came with "bvS" or "bgS" Variant.(option if you want Magisk)

Step to update GSI without lost your data include magisk.

Step to Recovery back to the First Boot with Magisk (hidden).

<<Additional for PHH AOSP>>

Add Adaptive Auto-brightness for T225 (magisk module) here

Add Face Unlock. here

<< Additional for Stock SAM A13 based>>

Add Restore Samsung Knox features.(had lost from unlocked and root)

Add Advanced Setup New LeOS

ADD DUAL BOOT WITH Vega Bobo DSU Sideloader. (SAM Stock A13 Base) Example here:

**FastbootD Help.

fastboot commands

fastboot commands. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

--info--

Sam did not provided " fastboot mode" for all devices. only "Odin flashing tool".

What is the FasdtbootD?

What is FastbootD? How to Boot to FastbootD Mode

In this tutorial, we will explain you what is FastbootD Mode in Android, how to boot to FastbootD Mode and how to exit this mode.

www.droidwin.com

*Limitation of FastbootD

FastbootD not the same as regular "fastboot", impossible to use fastbootd without " Dynamic partition. etc., dynamic partitions are automatically created, resized, or deleted as needed.

*FastbootD has access in logical partition like Super Partition.

( have odm +product+vendor+system partition inside) , Because dynamic partitions are implemented in userspace, partitions needed by the bootloader can't be made dynamic. For example, boot, dtbo, and vbmeta are read by the bootloader, and so must remain as physical partitions.

then

You can't uses by fastbootD performed

fastboot --disable-verity flash vbmata vbmeta.img

✓ Not enough space to resize partition solution

Solution:

Removing stock system_ext and/or product from fastbootd is enough, like so:

***Don't uses this command

"fastboot delete-logical-partition product"

why ?

the product partition, with around 1.3GB in size isn’t even required by the GSIs.

then you can delete data on product partition.

*(Didn't delete product partition itself but deletes only data inside this partition , then android will auto-resize product'spartition.)

Do this.

adb reboot fastboot

fastboot erase product

set the size of the product partition to 0

fastboot resize-logical-partition product 0x0

To verify if the partition size has become 0.

fastboot getvar all

If one of the lines shows the below code, then the process is a success.

(bootloader) partition-size:product:0x0

View attachment 5848741

or

>fastboot erase system_ext

>fastboot resize-logical-partition system_ext 0x0

---End Info--

Resource:

Basic knownledge.

my customAP tutorial.

** When using FastbootD you should knows

Set of fastbootd command.

-content-​

Flashing Any GSIs​

Using Fastboot without CustomAP 》Save your time.​

Example_use AOSP A13 from phhusson TrebleDroid GSI.

Complete Cycle From Fastboot Flashing >>>ROOT (Magisk,SU)>>Customized UI >>Update without Lost Data and Magisk.​

Requirement:

-Unlocked BootLoader

-(Recommend) Stock Firmware Update to A13 such as

"SM-T225XXU1CWA2" etc.,

Why? Used Android 13 GSIs.

1. MTP works

2. Offline Charging works

3. Google Assistant can call for you. (Ok Google call xxx) Stock A13 didn't do it.

etc.,

>Step to install Stock ROM together with Fastboot ability at the same time.

(clean install with stock firmware)

Extract AP Framework File for "recovery.img.lz4" and patch to add FastbootD ability. [ Download Attach file ] or patch by yourself here https://github.com/Johx22/Patch-Recovery.

Flash Stock Framework File with odin. (AP , BL, CP, CSC_not_home) + Magisk patch-boot & vbmeta & patch-recovery at (USERDATA Slot) ( include 3 patch-files to one tar file) [ Download Attach file ] -After reboot must connects internet and set "Developer options = enable OEM unlocking + USB debugging" View attachment 5830131

(Computer) Download and extract Platform tools to C:\ https://developer.android.com/studio/releases/platform-tools.

(Computer) Download and install Fastboot interface Driver. https://www.droidwin.com/how-to-install-fastboot-drivers-in-windows-11/

Note:

1.you can dirty flash patched fastbootD-recovery at AP slot. When you had any firmware or gsi installed.

2.Howto magisk-patch (boot.img.lz4 + vbmeta.img.lz4). in General Section.

>Step to flash GSI on top of Stock ROM

Set of Command to install GSIs on top of Stock Firmware.

-Connect device with USB cable to Computer.

-Download your GSIs.

-Extract "GSI.img file into platform tools directory.

-open CMD inside the platform-tools folder and then type in the below command

** Check device was already connected with computer.

*** Check bootloader version (patched) is the same as your device's firmware.

0.

adb devices

1.

adb reboot fastboot

-Device will turn display into FastbootD mode

2.

fastboot erase system

option: if you founded ‘Not enough space to resize partition’) error.

fastboot delete-logical-partition product

3.

fastboot flash system gsi-filename.img

4. FastootD (pic below)​

Select "Enter recovery menu"

View attachment 5903705

5.Recovery (pic below)

Select "wipe data/factory reset" menu

View attachment 5903707

6. Recovery (pic above)

Select "reboot system now" menu

​

>>Finished " Flashing with FastbootD"<<​

After installation.

- This variant was included with " PHH-SU".

>Step get rid of SU.(option if you want Magisk) (bvS or bgS variant)

adb shell Enter

su Enter

chmod +x /system/bin/phh-securize.sh Enter

/system/bin/phh-securize.sh Enter

* Device will auto reboot.

After this Magisk icon will show up.

View attachment 5830151

Click Magisk icon to continue setup additional files and reboot.

-----------------------------------------------------------------
​

*Step to update GSI without lost your data include magisk.

*** (Recommended: use Magisk-Gapps, if you don't want to re-process install gapps again.)

Disable all magisk modules. (if you used another Launcher or Port it from another GSI , pleases uninstall it first.)

Flash New-Update-GSI with FastbootD

fastboot flash system new-gsi.IMG

then REBOOT System (No factory reset or wipe data)

fastboot reboot

After get rid of SU , magisk will show up.

get rid of SU

adb shell

su

chmod +x /system/bin/phh-securize.sh

/system/bin/phh-securize.sh

Note: After this magisk will works again. (with all modules you had installed .)

===End of Update Version info===

Scripts by phhusson to automatically build/CI/Release TrebleDroid GSI

more than 2 times per month

Then I write this easy additional way to update without lost your data..

​

>Step to Recovery back toThe First Boot with Magisk (hidden installed).

​

1.Run Factory Reset From Recovery by press and hold (Power+ Vol down)

2. Connect internet and enable Developer options.

3. Enable OEM unlocking & USB debugging.

4. Reboot after that Magisk setting icon will show up again.

--End update--

Happy Chinese New Year!
​

General Section

** Compared 2 projects

** Restore Samsung Knox features.​

✓ How to create Magisk patch for boot.img + vbmeta.img

extract (vbmeta.img.lz4 + boot.img.lz4) from your AP Stock

create compress one file xxx .tar with 7zip

move (vbmeta.img.lz4 + boot.img.lz4).tar (xxx.tar) to tab a7 lite

install magisk.apk on you tab a7 lite

patch the tar file. (with magisk manager)

result magisk-patch file at Tab a7 :-Download folder.

✓ Howto install fastboot driver.

How to Install Fastboot Drivers in Windows 11

In this comprehensive tutorial, we will show you the detailed steps to install the Fastboot Drivers onto your Windows 11 PC

www.droidwin.com

✓ [Add pre-patch-recovery-FastbootD]

*** S2 = can't downgrade (Android version) even firmware version.

SM-T220 A13	SM-T225 A13	SM-T 227U A13	SM-T 225N A13
T220XXS2CWA7	T225XXS2CWA8	T227UVLU3CVLA	T225NKOU1CWA3
T220XXU1CWA2	T225XXS2CWA6
T220XXU1CWA1	T225XXU1CWA2
T220XXU1CVL7	T225XXU1CVL6
T220XXU1CVL5	T225XXU1CVL5
T220XXS2CWA8	T225XXU2CWB3

✓ Howto install "adb &fastboot" on PC

Samsung Android USB Driver | Samsung Developers

You need the driver only if you are developing on Windows and want to connect a Samsung Android device to your development environment over USB.

developer.samsung.com

You should also replace your adb with the latest binaries by Google.

SDK Platform Tools release notes | Android Studio | Android Developers

Android SDK Platform-Tools is a component for the Android SDK.

developer.android.com

Download the platform tools for windows zip file. Find out where your current adb.exe file is located. Extract the zip into that location, overwrite the old file(s).

Note: Don't delete any files from platform-tools

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

√ Download:

Where are New AOSP A13 official?

Releases · TrebleDroid/treble_experimentations

Scripts to automatically build/CI/Release TrebleDroid GSI - TrebleDroid/treble_experimentations

github.com

Note: (Read/Write System should uses variant "vndklite".)

✓Changes PHH-SU to Magisk.

- Connect device with your computer. run below command.

adb shell Enter
su Enter
chmod +x /system/bin/phh-securize.sh Enter
/system/bin/phh-securize.sh Enter

May be didn't found phh-securize.sh only uses root file manager deleted "/system/xbin/su"

√ You can install "GAPPS" by adb shell or by Magisk-Gapps module.

(Cause we didn't have TWRP, but don't worry about TWRP.)

*install Bromite Systemwebview

*Vega Bobo DSU Sideloader (Root mode with magisk)

*this firmware can't downgrade.**S2**​

T225XXS2CWA6 , it will no longer be possible to roll back even to the previous firmware .

( A13"SM-T225XXU1CWA2)

* Add some T220 FastbootD -Recovery-patch