5

How To Guide - [Using Fastboot without CustomAP]+(Magisk.Gapps)+(Iconify)+ Howto...

 1 year ago
source link: https://forum.xda-developers.com/t/using-fastboot-without-customap-magisk-gapps-iconify-howto-update-gsi-without-lost-data-include-magisk-aosp-gsi-a13-phhusson.4544863/#post-88062817
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

The Last update..

Flashing Any GSIs​

Using Fastboot without CustomAP any longer.
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
-Stock Firmware Update to "SM-T225XXU1CWA2"

Why? Used Android 13 Base.
1. MTP works
2. Offline Charging works
3. Google Assistant can call for you.
etc.,

Step to install Stock ROM with Fastboot ability.
  1. Extract AP Framework File for "recovery.img.lz4" and patch to add FastbootD ability. [ Download Attach file ] 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 set "Developer options = enable OEM unlocking + USB debugging"
  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/

Set of Command to install GSIs on top of Stock Firmware.
-Connect device with USB cable to Computer.
-Copy&Paste "GSI.img file into platform tools directory.
-Run command inside platform tools directory.
1.

Code:
 adb reboot fastboot

-Device will turn into FastbootD mode
2.

Code:
 fastboot erase system

3.

Code:
 fastboot flash system gsi-filename.img

4.

Code:
 fastboot -w
5. FastootD (pic below)​
Select "Enter recovery menu"
fastd1.jpg
6.Recovery (pic below)
Select "wipe data/factory reset" menu
fastd2.jpg
7. Recovery (pic above)
Select "reboot system now" menu
>>>Finished " Flashing with FastbootD"<<<

You will love battery consuming when no gapps .
I used spark 13.4 launcher.( dt2s ). and dt2w from phh treble setting.
IMG_20230128_192355 (1).jpg
Customized with Iconify.
Screenshot_20230128-200619.png
Screenshot_20230128-220351.png
--f------------------------------------------------------------------​
*Update: Howto update GSI without lost your data include magisk.
(Recommended: use Magisk-Gapps, if you don't want to re-process install gapps again.)
++ Attach: Recovery patch with FastbootD for SM-T225 (225XXU1CWA2)
  • Test if new update GSI was booted or not (with Vega Bobo DSU Sideloader).
  • Flash FastbootD patch-recovery with Odin at AP slot.(only one time as long as you didn't uninstall magisk)
  • 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
fastbootd.PNG
get rid of SU
Code:
 adb shell
Code:
 su 0
Code:
  /system/bin/phh-securize.sh
Note: After this magisk will works again. (with all modules you had installed .)
rm-su.PNG
Scripts by phhusson to automatically build/CI/Release TrebleDroid GSI
2 times per month
Then I write this easy additional way to update without lost your data..

--End update--


Happy Chinese New Year!
Download:
(Read/Write System should uses variant "vndklite".)

New AOSP A13 official
github.com

Releases · TrebleDroid/treble_experimentations

Scripts to automatically build/CI/Release TrebleDroid GSI - TrebleDroid/treble_experimentations
github.com
Installation:
-Flash with FastbootD
IMG_20230123_182152.jpg
Screenshot_20230123-175309.png


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

Changes PHH-SU to Magisk. (you can flash magisk at the same time with gsi.)
- Connect device with your computer. run below command.
Code:
 adb shell     Enter
 su      Enter
 /system/bin/phh-securize.sh    Enter
After get rid of SU , magisk will show up.

√ Default Home Launcher is good, but you can changes it.
- I ve changed my launcher.
IMG_20230123_200416.jpg
Screenshot_20230124-024956.png
You can install "GAPPS" by adb shell or by Magisk-Gapps module.
(Cause we didn't have TWRP, but don't worry about TWRP.) or by magiskGapps.

✓ This is my SM-T225 environment for using Bobo DSU Sideloder , and tab for browsing internet plus a little editable super partition.
(no need Gapps,quick and lightweight)
Screenshot_20230124-022510.png
Screenshot_20230124-023037.png
Default Offline charging.
IMG_20230123_215248.jpg
Power consumption.
IMG_20230128_080151.jpg
Must have
LSPosed (helper for various margisk modules) before install iconify .
Screenshot_20230125-141632.png
IMG_20230125_201026.jpg
Full-supported Vega Bobo DSU Sideloader.
Screenshot_20230125-162119.png

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK