How To Guide ( Rewrite).Using FastbootD .

Search This thread

tom.android

Senior Member
Jul 12, 2016
1,348
401
Samsung Galaxy Tab A7 Lite
Classic powermenu

IMG_20230213_202048.jpg


Screenshot_20230213-201716.png
 

Attachments

  • ClassicPowerMenu-v1.6.apk
    18.5 MB · Views: 17

tom.android

Senior Member
Jul 12, 2016
1,348
401
Samsung Galaxy Tab A7 Lite
Howto Build Dual Boot GSI ROM.
For compared 2 GSI.

Tool: Vega Bobo DSU Sideloader v2.01 with system mode.(Custom gsid binary ) (Obtained by installing this Magisk module>>module_DSU_Sideloader-gsid.zip ) + Root Mode (Magisk or SUI new root method)

1.PHH AOSP A13 GSI. >> bvN
2.SparkOS A13 v13.5 GSI. >> bvN
( sharing "Magisk" from 1'GSI)

20230214_000133.jpg

# Version 13.5 #FEB Sucurity patch

- Merged February security patch
- Merged crowdin translations
- Refractored the standard wifi icon impl
- Added support for lockscreen quick shortcuts
- Updated some ui sounds from nothing and one Ui
- Added a toggle for Android P system animations
- Added a toggle to always force expand notifications
- Added a seekBar to control the visibility of heads-up based on their importance
- Added customization for ls clock format , top margin and size
- Introduced spark system manager (Replaces spark idle manager)
- Added customization for qs page transitions
- Added Xperia icon pack
- Added an option to toggle notification headers
- Introduced customization for statusbar max visible icons , padding
- Added smart CutOff
- Implemented firewall status bar indicator
- Added screenshot tile
- Added support for locking apps on recents
- Added lockscreen date font customization
- Fixed a bug that would make fireworks back gesture redirect to settings menu
- Added support for qs footer data usage
- Added new qs styles
- Fixed safetynet
- Improved ripple animation
- Improved coloring on the volume panel
- Address some force closes and npes
- Added support for quick tap and many more pixel exclusive features
- Redesigned our vanilla dialer and messages
- Fixed some font issues on email and etc
- Added more fonts
✓- Implemented lock and hidden apps on Launcher3
- Improved quick space spacing
- Improved quick sb on Launcher3
- Some bug fixes and optimizations aimed to improve system stability and battery

Download: (i used bvN variant.)

Screenshot_20230214-023206_Spark Launcher.png

Screenshot_20230214-024210_Spark Launcher.png



How to switch between GSI. (Dual boot)
-enable Sticky Mode
-toggle Restart on Dynamic System Updates
Screenshot_20230214-025316_Spark Launcher.png


Want more detail...
-DSU-supported root (sharing magisk for all GSIs)

-DSU supported is depened on your Base firmware (Sam Stock) and your GSIs. both of them.

-Howto support "System mode: + Root mode."

-Set up Vega DSU environment for Tab A7 lite.

>>comment here.
 

Attachments

  • module_DSU_Sideloader-gsid.zip
    4.6 MB · Views: 8
Last edited:

isc0ttyathon

Member
Sep 10, 2022
7
0
Howto Build Dual Boot GSI ROM.
1.PHH AOSP A13 GSI
2.SparkOS A13 v13.5 GSI
( sharing "Magisk" from 1'GSI)

View attachment 5835495
# Version 13.5 #FEB Sucurity patch

- Merged February security patch
- Merged crowdin translations
- Refractored the standard wifi icon impl
- Added support for lockscreen quick shortcuts
- Updated some ui sounds from nothing and one Ui
- Added a toggle for Android P system animations
- Added a toggle to always force expand notifications
- Added a seekBar to control the visibility of heads-up based on their importance
- Added customization for ls clock format , top margin and size
- Introduced spark system manager (Replaces spark idle manager)
- Added customization for qs page transitions
- Added Xperia icon pack
- Added an option to toggle notification headers
- Introduced customization for statusbar max visible icons , padding
- Added smart CutOff
- Implemented firewall status bar indicator
- Added screenshot tile
- Added support for locking apps on recents
- Added lockscreen date font customization
- Fixed a bug that would make fireworks back gesture redirect to settings menu
- Added support for qs footer data usage
- Added new qs styles
- Fixed safetynet
- Improved ripple animation
- Improved coloring on the volume panel
- Address some force closes and npes
- Added support for quick tap and many more pixel exclusive features
- Redesigned our vanilla dialer and messages
- Fixed some font issues on email and etc
- Added more fonts
- Implemented lock and hidden apps on Launcher3
- Improved quick space spacing
- Improved quick sb on Launcher3
- Some bug fixes and optimizations aimed to improve system stability and battery

Download: (i used bvN variant.)

The "UI" is broken. Had to flash DerpFest again.
 

tom.android

Senior Member
Jul 12, 2016
1,348
401
Samsung Galaxy Tab A7 Lite
HOWTO DUAL BOOT GSIs
De-google with
(PHH AOSP GSI + LeOS GSI) A13

Download LeOS FEB (test supported exFAT sdcard ?)


PHH AOSP

FULL tutorial will come later if test pass.
LeOS now supported exFAT sdcard.
Screenshot_20230214-232415_Settings.png
Screenshot_20230214-233456_Spark Launcher.png
 
Last edited:

tom.android

Senior Member
Jul 12, 2016
1,348
401
Samsung Galaxy Tab A7 Lite
Thank you tom.android for sharing the updated recovery fastbootD. I was just wondering, is there a need to update the boot.img in your 3-in1.tar in this new version? Pardon me for asking too much.
should uses both of your (boot.img.lz4 + vbmeta.img.lz4) firmware and patch it with magisk. don't used my 3in1.tar cause my firmware was -T225XXU1CWA2

but if you used T225XXU1CWA2 then you can uses my 3in1.tar
 
  • Like
Reactions: jtrakx

tom.android

Senior Member
Jul 12, 2016
1,348
401
Samsung Galaxy Tab A7 Lite
Tweak Knox On A Rooted Tab A7 Lite.

(Restore Samsung Knox features which lost when you root device.)​


Thank to BlackMesa123

Resource: https://forum.xda-developers.com/t/...v0-4-1-restore-samsung-knox-features.4549179/

info
Once you unlock the device’s bootloader, the Knox gets tripped and there’s no way through which you could bring it back to its default state, even if you relock the bootloader! As a result, numerous features that are dependent on Knox might not function at all. These include the likes of Galaxy Wearable, Samsung Flow, Samsung Health, Samsung Health Monitor, Secure Folder, Secure Wi-Fi, Private Share, Samsung Pass, and Samsung Wallet (Pay).

Step
1. Flashing Stock ROM A13 with Magisk- patch (boot.imh.lz4 + vbmeta.img.lz4 ) at USERDATA Slot.

Screenshot_20230219_225339.jpg


2.Flash magisk module "Zygisk-LSPosed" and reboot.

3. install the latest KnoxPatch apk.

Screenshot_20230220_094943_One UI Home.jpg


4.Open the LSPosed Manager app from your quick panel notifications and enable the KnoxPatch module in the "Modules" tab, leave the selected applications list as it is.
Screenshot_20230220_095008_Shell.jpg


5.reboot.

Screenshot_20230220_024311_KnoxPatch.jpg


Task List to restore Knox features.

Galaxy Wearable (i tested with galaxy buds 2)​

1. Wearable downloading.(update) (From SAM Server)

Samsung Flow
2. https://www.samsung.com/uk/apps/samsung-flow/
Screenshot_20230220_110256_Samsung Flow.jpg

sam-flow.PNG


3. Samsung Health (need SAM Watch)
 

Attachments

  • Zygisk_-_LSPosed-v1.8.6(6712).zip
    2.3 MB · Views: 4
  • KnoxPatch-v0.4.2.apk
    2.5 MB · Views: 4
  • KnoxPatch-Enhancer-v0.2.zip
    9 KB · Views: 6
  • KnoxPatch-v0.4.3.apk
    2.5 MB · Views: 4
  • KnoxPatch-v0.4.4-sep-lite.apk
    2.5 MB · Views: 4
Last edited:

tom.android

Senior Member
Jul 12, 2016
1,348
401
Samsung Galaxy Tab A7 Lite

[GSI][13] LineageOS 20 TrebleDroid-based​


Filename: lineage-20.0 20230218-UNOFFICIAL-arm64_bvN-vndklite.img

The N variants also have the ability to run adb as root...even though there is no su binary to be found in the gsi image.

adb root
adb shell
whoami

This root is also shell-only and can't be utilized by normal apps.
 
Last edited:

nirogu325

Senior Member
Oct 15, 2010
3,787
1,973
New recovery fastbootD patch for
T225XXS2CWA8

Note : you can not downgrade any version.
Can you please patch the WA6 (most recent US firmware) for T220? I attached the recovery file for you. I wish patching that thing was easier.

Edit: Going to use the one you already built for another region (WA7). Hopefully it works for WA6.
 

Attachments

  • recovery.zip
    21.4 MB · Views: 9
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    This step by step tutorial is all about

    ☆☆☆ 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.

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

    What is the FasdtbootD?

    *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
    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

    partition-product.PNG

    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)

    1. 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.
    2. 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"
      flash-FM+3in1.PNG
    3. (Computer) Download and extract Platform tools to C:\ https://developer.android.com/studio/releases/platform-tools.
    4. (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.
    Code:
     adb devices

    1.
    Code:
     adb reboot fastboot
    -Device will turn display into FastbootD mode
    2.
    Code:
     fastboot erase system
    option: if you founded ‘Not enough space to resize partition’) error.
    Code:
      fastboot delete-logical-partition product
    3.
    Code:
     fastboot flash system gsi-filename.img
    4. FastootD (pic below)​
    Select "Enter recovery menu"
    fastd.jpg


    5.Recovery (pic below)
    Select "wipe data/factory reset" menu
    edit-fac.jpg

    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.
    Screenshot_20230207-214508.png

    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
    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
    1. extract (vbmeta.img.lz4 + boot.img.lz4) from your AP Stock
    2. create compress one file xxx .tar with 7zip
    3. move (vbmeta.img.lz4 + boot.img.lz4).tar (xxx.tar) to tab a7 lite
    4. install magisk.apk on you tab a7 lite
    5. patch the tar file. (with magisk manager)
    6. result magisk-patch file at Tab a7 :-Download folder.
    ✓ Howto install fastboot driver.



    ✓ [Add pre-patch-recovery-FastbootD]
    *** S2 = can't downgrade (Android version) even firmware version.
    SM-T220 A13SM-T225 A13SM-T 227U A13SM-T 225N A13
    T220XXS2CWA7T225XXS2CWA8T227UVLU3CVLAT225NKOU1CWA3
    T220XXU1CWA2T225XXS2CWA6
    T220XXU1CWA1T225XXU1CWA2
    T220XXU1CVL7T225XXU1CVL6
    T220XXU1CVL5T225XXU1CVL5
    T220XXS2CWA8T225XXU2CWB3


    ✓ Howto install "adb &fastboot" on PC

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


    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?
    Note: (Read/Write System should uses variant "vndklite".)

    ✓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
    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
    2
    20230320_002708.jpg

    SparkOS 13.5.5
    Detail here
    - Retuned the ui of the ls affordance icons
    - Reworked the app lock implementation
    - Added support for desktop mode
    - Retuned seekbar design
    - Made night light transition more gradual
    - Improved the ripple animation
    - Improved some ui animations
    - Updated oos clear all button design
    - Addressed some lags and issues that were caused of SparkSystemManager
    - Reworked Parallel space
    - Added support for toggling gms
    - Reworked edge haptics
    - Added support for clo boost fwk
    - Updated the colors and functionality of work profiles
    - Reworked the power menu implementation and added support for power Menu Styles
    - Merged crowdin translation updates
    - Updated SparkThemedIcons
    - Updated the lock app feature
    - Added support to set hotseat opacity in launcher
    - Reworked the recents ui style
    - More under the hood changes aimed to improve battery life and performance

    The interesting new feature is support desktop mode and toggling GMS.

    Waitting for GSI.

    20230319_235530.jpg

    20230319_235545.jpg

    20230319_235539.jpg
    1
    Reserved:
    Option tools for customize your AOSP GSI.

    Install Gapps modules with Magisk. ( For Android 13)

    DOWNLOAD: https://litegapps.site/index.html
    Screenshot_20230227-225157_Magisk.png


    CLICK NAME FOR DOWNLOAD
    1. [MAGISK]LiteGapps_Nano_arm64_13.0_v2.8_official.zip (Base)

    2. GoogleSearch_LiteGapps_Addon_arm64_13.0.zip. (add-on)

    3. GoogleAssistant_LiteGapps_Addon_arm64_13.0.zip. (add-on)

    Note: you can add add-on mod from here.

    STEP. ( with magisk manager )
    Flash 1 and Reboot
    Flash 2 and Reboot
    Flash 3 and Reboot

    How to configure Google Assistant . ( For make a call )
    -Set Default Digital Assistant.
    Open Setting and Search with keyword " digital assistant or assistant"

    -Configure OK Google.
    Open Setting 》Google 》Setting for Google apps 》Search Assistant & Voice 》 Google Assistant 》Hey Google & Voice match
    ENABLE Hey Google.
    1
    The readme only leads me to the package's website which does not tell me which specific command I have to run after adb shell. I then went to the Telegram group which basically tells me this: "adb root then adb shell or adb shell then su" and then "just run the script" Uh-huh. How do I run the script? "running it".

    The readme only leads me to the package's website which does not tell me which specific command I have to run after adb shell. I then went to the Telegram group which basically tells me this: "adb root then adb shell or adb shell then su" and then "just run the script" Uh-huh. How do I run the script? "running it".
    1. install root explorer app. (such as Mixplorer)
    2. create directory "gapps" or anyname at /data
    such as /data/gapps
    3. extract archrive " TitaTheGapps.zip" to dir from 2
    4. open terminal adb shell ----then su then
    cd /data/gapps/tita
    chmod +x ./installer.sh
    5. add more space for new gapps by delete some unuseful from "/system/system_ext/apex"
    Del "android.vndk.v.28,29,30,32 keep only v31
    6. run script---> sh ./installer.sh

    note you can use command "mount -o rw,remount /system" or used root explorer do it. (changes RO to RW) before mod system.
    1
    The readme only leads me to the package's website which does not tell me which specific command I have to run after adb shell. I then went to the Telegram group which basically tells me this: "adb root then adb shell or adb shell then su" and then "just run the script" Uh-huh. How do I run the script? "running it".
    Here is what I did to install GApps on AOSP A13:

    Get TheGappsInstaller-Tita archive here: https://github.com/ChonDoit/TheGappsInstaller/releases/tag/Tita (specifically: TitaTheGapps_Terminal_20221225.tar.xz)

    Extract the tar archive from the tar.xz file

    Follow instructions below (credits: ozmage)

    adb push TitaTheGapps_Terminal_20221225.tar /sdcard/Download
    adb root
    adb shell
    cd /data
    mkdir GAPPS
    mv /sdcard/Download/TitaTheGapps_Terminal_20221225.tar GAPPS
    cd GAPPS
    tar xvpf TitaTheGapps_Terminal_20221225.tar
    cd TitaTheGapps_Terminal_20221225
    chmod a+x ./installer.sh
    sh ./installer.sh