Treble/GSI Megathread

andythedev

Senior Member
Aug 9, 2016
242
86
0
London
andythedeveloper.com
About
I've found information about flashing GSI's on this phone to be fragmented so here's a collection of resources that have worked for me.

If you have any suggestions or issues with popular GSI ROMs, drop them here and I'll do my best to update the thread.

Note: This guide is for users who have already flashed custom ROMs (not necessarily GSI) to their phone. If you're new to this or are coming from any MIUI ROM, please see other tutorials.
GSI Installation

1. Flash TWRP
The current latest version (as of the time of writing v3.3.0) supports for flashing GSIs.

2. Update firmware (optional)
I'm currently using the latest global firmware (as of time of writing v10.2.2.0) which seems to work fine. Download the zip from xiaomifirmwareupdater and flash in TWRP.

3. Flash treble BOOT and VENDOR partitions
Download the below image files (source).
boot.img
vendor.img

Install the images by using the following command or optionally using TWRP.

Code:
  fastboot flash boot boot.img
  fastboot flash vendor vendor.img
4. Flash your GSI ROM
Pick a GSI from the Treble forum and be sure to download an ARM64 and A-Only variant. If the downloaded file is an archive (not an *.img file) you will need to extract the contents.

  1. Go into TWRP
  2. Copy the GSI image to your phone
  3. Wipe "Dalvic/ART Cache", "Cache", "System" and "Data" paritions
  4. Install the GSI image to the System Partition (Install -> Install Image -> yourimagefile.img - System Image)
  5. Reboot back into TWRP
  6. Resize the system partition (Wipe -> Advanced Wipe -> check System -> partition options -> Resize FS)
  7. Install Magisk & OpenGapps (both optional)

GSI ROMs
Pixel Experience 9 (2019-03-24)
Source: XDA
Status: Working.
Additional info: Everything works as expected.

AospExtended v6.2 (20190313)
Source: aospextended
Status: Working.
Additional info: Everything works as expected.

Ressurection Remix v7 (19/04/16)
Source: XDA
Status: Unusable.
Additional info: Everything works aside from video playback (which creates a loud popping/static sound regardless of audio levels).
 

blazinramirez

Senior Member
Jan 17, 2012
58
4
0
Great guide! Thanks a lot, your way was the only way I could get a treble rom working on the device! I wasn't able to flash the vendor in fastboot coming from miui 10.2.2.0, but it worked from twrp. Now got Havoc booted successfully :)
 
  • Like
Reactions: andythedev

mKenfenheuer

Member
Jul 20, 2014
29
59
0
Fix for the audio problem

About
I've found information about flashing GSI's on this phone to be fragmented so here's a collection of resources that have worked for me.

If you have any suggestions or issues with popular GSI ROMs, drop them here and I'll do my best to update the thread.



GSI Installation

1. Flash TWRP
The current latest version (as of the time of writing v3.3.0) supports for flashing GSIs.

2. Update firmware (optional)
I'm currently using the latest global firmware (as of time of writing v10.2.2.0) which seems to work fine. Download the zip from xiaomifirmwareupdater and flash in TWRP.

3. Flash treble BOOT and VENDOR partitions
Download the below image files (source).
boot.img
vendor.img

Install the images by using the following command or optionally using TWRP.

Code:
  fastboot flash boot boot.img
  fastboot flash vendor vendor.img
4. Flash your GSI ROM
Pick a GSI from the Treble forum and be sure to download an ARM64 and A-Only variant. If the downloaded file is an archive (not an *.img file) you will need to extract the contents.

  1. Go into TWRP
  2. Copy the GSI image to your phone
  3. Wipe "Dalvic/ART Cache", "Cache", "System" and "Data" paritions
  4. Install the GSI image to the System Partition (Install -> Install Image -> yourimagefile.img - System Image)
  5. Reboot back into TWRP
  6. Resize the system partition (Wipe -> Advanced Wipe -> check System -> partition options -> Resize FS)
  7. Install Magisk & OpenGapps (both optional)

GSI ROMs
Pixel Experience 9 (2019-03-24)
Source: XDA
Status: Working.
Additional info: Everything works as expected.

AospExtended v6.2 (20190313)
Source: aospextended
Status: Working.
Additional info: Everything works as expected.

Ressurection Remix v7 (19/04/16)
Source: XDA
Status: Unusable.
Additional info: Everything works aside from video playback (which creates a loud popping/static sound regardless of audio levels).
https://github.com/hmuny99/GsiSystemAudioFix

Use this flashable zip to fix the audio stuttering issue.
 
  • Like
Reactions: andythedev

flash713

Senior Member
May 7, 2015
822
419
93
Houston, Texas
Someone tried it with the Q GSI's from Erfan? I can't get it to work....
Not with Efran's gsi's but I've tried a few times on other 10's and had no luck on my end. I Used the 10 gsi Aonly 64 bit and I've formatted data and decrypted using Zach's force encrypt removal zip and magisk su zip and I've tried without removing encryption and no luck. It hangs on mi boot logo every time. I saw a DerpFest gsi on telegram that's when this whole gsi mission began for me. lol. Maybe we need a different boot.img and vendor.img for 10 idk? ? I tried with and without flashing the boot and vendor, decrypt and not decrypt and no go. ?

Sent from my moto g(7) power using XDA Labs
 
Last edited:

flash713

Senior Member
May 7, 2015
822
419
93
Houston, Texas
I booted RR v7.03 from Luke's GSI thread using vendor and boot in op but tried a few more 10 GSIs and they either hang on mi screen or bootloop forever. This RR is bad ass!! V7.03 wasn't made for Chiron and blows 7.02 off the map. Although security patch is from November 2019 I'm going to rock it a while. Sure will miss RR now that main dev stopped. Talk about a bad ass ROM!!! If anyone wants to use it its here. Just click the top link and you'll see the A only 64
https://forum.xda-developers.com/pr...iscussion/gsi-expressluke-built-gsis-t4003457
 

Attachments