[Treble-Enabled Device Guides, News, & Discussion] nambavuong:
Hi every one, in this thread, I will guide How to Flashing GSIs for all Android devices (2021).

- A to Z for new babie, just only fastboot guide.

- I'm highly recommend using pHH GSIs image rom. (List here) AND DO NOT ASK ME SGSI ROM.

/*
* Your warranty is... still valid?
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

1. Prepair:

- Brain (to understand what I write below and make sure u will do it right)

- Using this app Treble Info to check your devices is support Treble (A/B, A only or VNDK)

- Unlock your Bootloader devices.

- Payload dumper for extract payload.bin BASE Rom. -> Check this video HOW TO EXTRACT Payload.bin rom

- U must be on stock rom to flashsing GSIs rom (flashing your stock rom on 1 slot, DO NOT FLASH ON BOTH SLOT). If u are on custom rom, then u will need to flash stock rom again.

- ADB driver, fastboot driver (guide for windows)

​

1.1 BASE ROM: Highly recommend using Lineage OS rom for base rom. (and u can try with another base rom, for example, on xiaomi devices, u have MIUI rom and AOSP rom aka OSS, and u can try both of these for BASE ROM)​

All u need in base rom:​

- vendor.img (must be in the same BASE ROM with boot.img) DO NOT try to mix with another boot.img​

- boot.img (must be in the same BASE ROM with vendor.img) DO NOT try to mix with another vendor.img​

- system_vbmeta.img (or vbmeta.img) or u can download this vbmeta.img here​

- patched magisk boot.img (if u want to root your devices)​

- vendor overlays: Some devices with notch/hole need this. (u can extract your stock rom to have this)​

- phh magisk v23 (download here)​

​

1.2 GSI ROM: I'm highly recommend using pHH GSIs image rom. (List here)​

All u need in GSI rom:​

- Yes, GSI rom aka system.img (recommend to rename it system.img)​

- product.img (download here) - credit @kusti420​

​

​

2. Flashing:

- Guide for A/B devices.

- Put your devices on FastbootD (using code adb reboot fastboot or using physical buttons power key and volume down key to make devices go to bootloader, then using code fastboot reboot fastboot to make your devices is on FASTBOOTD mode)

- Using these code instructions below: all in FastbootD

Step1:

fastboot getvar current-slot (see which slot u are using. Ex: a , b)
fastboot --set-active=b (if u are using slot a, change b to a) to make sure u're flashing gsi on 1 slot

Step2: vbmeta.img, vendor.img is from BASE ROM. product_gsi.img is from GSI ROM

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot flash vendor vendor.img
fastboot flash product product_gsi.img

Step3: system.img is from GSI ROM. Some devices is request system.img <3GB, so your choise vanilla or full GAPPS GSI ROM.

fastboot erase system
fastboot flash system system.img

Step4: -w will wipe all data in your devices. boot.img is from BASE ROM.

fastboot -w
fastboot flash boot boot.img
fastboot reboot

Step5: when your gsi rom booted, flash boot patched magisk to have it root.

If it NOT BOOT, try to delete your product.img

fastboot delete-logical-partition product

If it NOT BOOT, change another vendor, boot from another BASE ROM!!!!

Good luck guys!!!!!

Successed boot GSI ROM ON PIXEL 4, PIXEL 3, PIXEL 3XL, XIAOMI REDMI K40.

I will make auto file flashing gsi rom later.

Video prop gsi rom, video guide on post 2.

Bugs + FAQ in #3

CREDIT:

@phhusson for all GSI ROM

@Allexwin50 for product_gsi