How to Install Generic System Image on Project Treble Devices (GSI)

In this post, we will help you install Generic System Image on Project Treble on supported devices.

So your device supports Project Treble, Have you heard of it? It means you can flash a Generic System Image such as LineageOS or Resurrection Remix! Enjoy AOSP-based custom ROMs! Here’s a guide on how to install these ROMs on on Project Treble Devices (GSI).

Android the most used mobile platform will be provided with constant updates. With the latest release of Oreo, Android has got some of the new features. One such feature is the Project Treble. After the release of Oreo, Google announced that every device that comes with Out of the box must support this project treble. Google had separated the actual framework work the vendors to make it easy for a developer to roll out update more easily.

Steps to Install Generic System Image on Project Treble Devices

How to Install Generic System Image on Project Treble Devices (GSI)

In this tutorial, we will be discussing how to Install Generic System Image on Project Treble Supported devices. As said above, Google announced that every device that comes with Out of the box must support this project treble. This framework works the vendors to make it easy for a developer to roll out update more easily. Let’s check out the basic requirements!

Prerequisites

  • This tutorial works only with a device that supports treble, that is it should be the latest model coming with Oreo out of the box.
  • This method requires a complete factory data reset, hence we suggest you to backup all your data.
  • Unlock bootloader from the device.
  • There are two methods. For method one we need TWRP recovery and for method 2 we need to install Android SDK tools on your pc.
  • The device must run on Stock ROM.
  • This method is supported by only a few devices.

Downloads 

Before we get into the procedure to install we first download the required software. Download GSI that you wish to flash on your device. in case If you’re looking for a clean AOSP experience, we’d recommend downloading phh-Treble by phhusson.

Download Project Treble AOSP ROM

v12 (Android 8.1 Oreo)

v9 (Android 8.0 Oreo):

Method 1: How to Flash GSI using TWRP

  • The first step is to download the required files from the download section above.
  • Switch off your device and enter into TWRP mode by pressing the power button and volume button simultaneously.
  • You can also use the following command to enter into TWRP mode,
    adb reboot recovery
  • In the TWRP mode you will have several options and from the options select wipe and swipe to perform factory data reset.
  • Go back to the main page and click on install option.

How to Install Generic System Image on Project Treble Devices (GSI)

  • Now select the IMG file that you downloaded from the download section above.
  • Now on the next screen select system image.

How to Install Generic System Image on Project Treble Devices (GSI)

  • Now swipe the button on the screen to confirm the installation and the image will be installed.
  • Wait for the installation and reboot yours by pressing reboot button.

Method 2: How to Flash GSI using Fastboot

  • Download the files that are required for the download section.
  • In this method, factory reset is done from the settings. Go to setting and perform factory data reset.
  • Transfer the downloaded files to the folder containing the ADB and Fastboot binaries.
  • Now hold your shift button and right click the mouse on the folder and select Open power shell windows here.
  • Now on the Android devices enable USB debugging an connect the device to the PC.
  • Reboot the device into Fastboot/Bootloader using the command below,
    adb reboot bootloader
  • Now install the Generic image by the following command. Note that in the below command system-image-name.img should be replaced with the actual file name of the GSI you have downloaded.
    fastboot flash system system-image-name.img
    Example: fastboot flash system system-arm64-ab-gapps-su.img

How to Install Generic System Image on Project Treble Devices (GSI)

  • After the installation is completed reboot your device by the following command,
    fastboot reboot
  • That’s it! You have successfully installed Generic System Image on Project Treble.

Final Words

That’s it is you have successfully installed Generic System image on your device.

Some devices like the Razer Phone, for instance, may fail due to dm-verity. In that case, you have to Install Magisk to disable dm-verity and take a full factory reset.

Hope you have followed the extract method to install Generic System Image on Project Treble on supported devices. If you have any questions regarding the ROM or the installation process, let us know. Stay tuned for more updates!

[Via]
All Droid Tips - Droid Geeks Portal