This step by step tutorial is all about
☆☆☆ FastbootD video tutorial : https://m.youtube.com/playlist?list=PLvggR4skCxYzhB3SXxpSx4LvRzGwx9k45
☆☆☆ 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:

fastboot commands
fastboot commands. GitHub Gist: instantly share code, notes, and snippets.
--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.

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
Code:
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.
Code:
adb reboot fastboot
Code:
fastboot erase product
set the size of the product partition to 0
Code:
fastboot resize-logical-partition product 0x0
To verify if the partition size has become 0.
Code:
fastboot getvar all
If one of the lines shows the below code, then the process is a success.
Code:
(bootloader) partition-size:product:0x0
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:Complete Cycle From Fastboot Flashing >>>ROOT (Magisk,SU)>>Customized UI >>Update without Lost Data and Magisk.
-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"
- (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/
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.
1.
-Device will turn display into FastbootD mode
2.
option: if you founded ‘Not enough space to resize partition’) error.
3.
4. FastootD (pic below)
Select "Enter recovery menu"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.
Code:
adb devices
1.
Code:
adb reboot fastboot
2.
Code:
fastboot erase system
Code:
fastboot delete-logical-partition product
Code:
fastboot flash system gsi-filename.img
5.Recovery (pic below)
Select "wipe data/factory reset" menu
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.
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
Code:
fastboot flash system new-gsi.IMG
then REBOOT System (No factory reset or wipe data)
Code:
fastboot reboot
After get rid of SU , magisk will show up.
get rid of SU
Code:
adb shell
Code:
su
Code:
chmod +x /system/bin/phh-securize.sh
Code:
/system/bin/phh-securize.sh
===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..
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!
** 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.

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

✓ [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.
You should also replace your adb with the latest binaries by Google.

SDK Platform Tools release notes | Android Developers
Android SDK Platform-Tools is a component for the Android SDK.

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
✓Changes PHH-SU to Magisk.
- Connect device with your computer. run below command.
Code:
adb shell Enter
su Enter
chmod +x /system/bin/phh-securize.sh Enter
/system/bin/phh-securize.sh Enter
√ 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
Attachments
-
fastbootd-recovery_T225XXS2CWA6.tar37 MB · Views: 36
-
fastbootd-recovery_T225XXS2CWA8.tar37 MB · Views: 23
-
fastbootd-recovery_T220XXS2CWA7.tar37 MB · Views: 54
-
fastbootd-recovery_T225NKOU1CWA3.tar37 MB · Views: 12
-
fastbootd-recovery_T227UVLU3CVLA.tar32 MB · Views: 27
-
3in1_THL_T225XXU1CWA2.tar69 MB · Views: 91
-
3in1_225THL_U1CVL5_fastbootD.tar69 MB · Views: 38
-
3in1_A11_THL_T225XXU1AUE3.tar69 MB · Views: 16
-
fastbootd-recovery_T220XXU1CWA1.tar37 MB · Views: 26
-
fastbootd-recovery_T225XXU1CVL6.tar37 MB · Views: 10
-
fastbootd-recovery_T220XXU1CWA2.tar37 MB · Views: 29
-
fastbootd-recovery_T225XXU1CVL5.tar37 MB · Views: 12
-
T225-Adaptive-A13-overlay-magisk-module.zip12.6 KB · Views: 12
-
fastbootD-recovery_T220XXU1CVL5.tar37 MB · Views: 12
-
fastbootd-recovery_T220XXU1CVL7.tar37 MB · Views: 30
Last edited: