How To Guide ( Rewrite).Using FastbootD .

Search This thread

tom.android

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

this firmware can't downgrade​

T225XXS2CWA6
bootloader version has changed to 2.

I will stop update my firmware at T225XXU1CWA2.

Warning!
Don't try to downgrade from new T225XXS2CWA6 it will no longer be possible to roll back even to the previous firmware .
 
Last edited:

ktdt00

Senior Member
May 23, 2006
173
38
update-Feb 1-2023
Download-overlay Adaptive brigness for SM-T225 (A13).(Magisk module) (Attachment)
Adaptive brightness is an Android feature that adjusts your display's brightness levels based on the surrounding lighting and your preferences.

Don't forgot to enable Adaptive Brightness.
View attachment 5825353
View attachment 5825355

You can check this by covering the top ear piece portion of the tab. if your sensor works perfectly screen brightness will get reduced.
Any chance this will work on T220?
 

ktdt00

Senior Member
May 23, 2006
173
38
I'm using latest Google Android 13 w/GSM GSI. I thought this thread was generic for "any" GSI? Which GSI already has the overlay? Treble?
 

TFutoMaki

Senior Member
Sep 7, 2013
106
39
First of all, ty for the guide. It worked on my SM-T227U (Canadian Cellular Variant)

However, I am struggling with the launcher crashing for the PixelExtended GSI. I cannot access the homescreen and system navigation (gesture nav, 2-button nav, 3-button nav)
I just want to check what you mean by 'same launcher as before'. Is it a special launcher you installed?

Thank you in advance :)
 

tom.android

Senior Member
Jul 12, 2016
1,348
401
Samsung Galaxy Tab A7 Lite
I'm using latest Google Android 13 w/GSM GSI. I thought this thread was generic for "any" GSI? Which GSI already has the overlay? Treble?
"phh treble patch gsis" i means, for the other you must creates overlay. (checks in "product/overlay")


overlay in product/overlay t220 = gta7litewifi.apk
Screenshot_20230205-102516.png

howto

@ktdt00 try to test overlay for T220 A13 magisk module
 
Last edited:
  • Like
Reactions: ktdt00

tom.android

Senior Member
Jul 12, 2016
1,348
401
Samsung Galaxy Tab A7 Lite
First of all, ty for the guide. It worked on my SM-T227U (Canadian Cellular Variant)

However, I am struggling with the launcher crashing for the PixelExtended GSI. I cannot access the homescreen and system navigation (gesture nav, 2-button nav, 3-button nav)
I just want to check what you mean by 'same launcher as before'. Is it a special launcher you installed?

Thank you in advance :)
try to set display smallest width = 598 dpi.

(Developer options or Setting >> display ) you can access menu from this way if home launcher crash. (Setting menu down below)

Screenshot_20230205-092324.png



if not ok then must uses another Launcher or port from another gsi.

try sparkos 13.4 launcher here


I can't test for T227U.
 
Last edited:
  • Like
Reactions: TFutoMaki

isc0ttyathon

Member
Sep 10, 2022
7
0
Can you tell me why "battery stats" aren't available in the ROM in the OP?
It's great, apart from this.
 

tom.android

Senior Member
Jul 12, 2016
1,348
401
Samsung Galaxy Tab A7 Lite
warning:
FastbootD useful Trip.

***Don't uses this command
"fastboot delete-logical-partition product"
if you didn't found " not enough space to resize partition.

and if "delete-logical-partition" not success then need to flash back original stock A13 with fastbootD-recovery via odin .
( Safety First )
 

tom.android

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

UniversalAuth: Face Unlock for all ROMs (y)(y)(y)(y)(y)

IMG_20230209_162913_676.jpg

1. Enable magisk setting zygisk.
2. Flash via magisk manager "Zygisk-LSPosed" restart
3. Run universalauth-xposed-release-fixA13.apk & Face unlock release.apk
restart
4. Activate UniversalAuth.xposed

Screenshot_20230209-091822.png


5. Open face unlock app >permissions> Click 3-dots top-right corner.>>to grant permission ( see picture )

Screenshot_20230209-092850.png

Screenshot_20230209-093202.png

6. Run face unlock app , it will ark you to download data does not accept the approval of the download. Click on the MANUAL IMPORT and select the apk file named (Don't install Com.Motolora.Faceunlock.xxx.apk)

7. Now the application will switch you to (Accessibility), then choose FaceUnlock and activate it.

8. set up facial recognition : you can register your face inside the app below.
Screenshot_20230209-084101.png

Start setup and configured along with this picture. Finally Test Auth.
* Disable Even faster face unlock only.

Set screen lock.
Screenshot_20230209-095214.png


Close screen when it locked try to test your face-unlock.

Note:
You will see a camera (green icon) notification at the top right corner of locked screen.

This indicates that the face unlock app is using camera to recognise your face. For that ,the app needs to have accessibility permission.
 

Attachments

  • faceunlock-release.apk
    34.4 MB · Views: 11
  • universalauth-xposed-release-fixA13.apk
    1.9 MB · Views: 12
  • Zygisk_-_LSPosed-v1.8.6(6712).zip
    2.3 MB · Views: 5
  • com.motorola.faceunlock_01.03.0312-31030312_minAPI26(arm64-v8a).apk.zip
    25.8 MB · Views: 12
Last edited:

TheFranker

Member
Aug 30, 2018
15
3
hi, when i try to install the GSI it shows "Invalid sparse file format at header magi" and then it seems to install normally. But when I try to start the system, the bootloop comes.
 

Attachments

  • Screenshot_2.png
    Screenshot_2.png
    17.8 KB · Views: 11

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