One of the major drawbacks of the devices running on the Android Operating System is the notoriously slow pace at which the OEMs update their devices. To address this issue which has been haunting android users for long, Google launched Project Treble. Project Treble represents a major re-architecture for the OS framework which aims at making the process of releasing updates easier for OEMs. Devices shipping with Oreo, Pie, and future versions out-of-the-box will support Project Treble.
Treble supported devices will have an easier time flashing custom ROMs based on the Android Open Source Project (AOSP). After the launch of Project Treble, there’s been a lot of confusion on how to flash a Generic System Image onto a Treble-compatible device as the process to flash them is a little different. For those who do not know, Generic System Image files are system (.img) partition files.
If you are someone who is interested in flashing GSI on your Treble compatible device, here is a tutorial for the same.
Table of Contents
Steps to Flash a Generic System Image
- A device whose bootloader can be unlocked. Honor, Huawei and some other OEMs do not allow the bootloader of their devices to be unlocked.
- Your device must support Project Treble.
- You must not be using Xposed Framework, SuperSU or Magisk on your device.
Flashing GSI Via TWRP
- Download the GSI file and transfer it to your phone’s internal storage.
- Boot your device to TWRP Custom Recovery Mode by pressing power and volume down key simultaneously.
- In the custom recovery window, tap on “Wipe” and swipe for the “Swipe to Factory Reset.”
- From the custom recovery window, tap on “Install” followed by a tap on “Install Image.”
- Navigate to the location where you have stored the file which you downloaded in the first step and tap on it.
- Once selected, tap on “System Image” and swipe to confirm flashing of the file.
- Now you can reboot your device normally.
Flashing GSI Via Fastboot
- Open the Settings app and Factory Reset your device.
- Download the GSI file on your PC and transfer it to the folder which contains ADB binaries. By default, it can be found at C:\adb.
- Enable USB debugging on your phone and connect it to your PC.
- Open Windows Powershell window by pressing shift and right clicking on an empty space on your window.
- Reboot your device into fastboot mode by typing “adb reboot bootloader” in the Powershell window.
- Next, Install Generic System Image file by typing “fastboot flash system system-image-name.img” in the Powershell window. Note that you should replace “system-image-name.img” with the name of the file which you downloaded in the second step.
- Once the above procedure is complete, reboot your device by typing “fastboot reboot” in the Powershell window.
Congratulations! You successfully flashed a Generic System Image or GSI on your Project Treble compatible device.
These are one of the easiest ways to flash a GSI on a treble supported device. I hope this article works the way it is intended to be. Let us know about your experience trying out the methods mentioned in this article in the comments section down below. In case I missed mentioning anything or if there is some topic which you want me to cover, please let me know in the comments section down below.
Got more tips? Need help? Drop a comment below!