Project Treble was announced way back in 2017 with the release of Android Oreo. It was supposed to bring faster Android updates by separating the hardware layer from the core Android framework. Now fast forward to 2020 and it seems the project has worked in some parts. GSI is one of those products that has been successful in showcasing the true potential of Project Treble. The idea to boot a future version of Android– albeit buggy– on literally any Android device is surely tempting. So in this article, we bring you a detailed guide on how to install Android 11 GSI on any Project Treble device. We have provided a step-by-step guide so make sure to go through all the points before installing the GSI. Now having said all of that, let’s begin with requirements first.
Your Android smartphone must have Treble support to run the Generic System Image (GSI). The easiest way to find out is to check whether your Android device was launched with Android 8, 9 or 10. If so then your device supports Project Treble and you can go ahead with the installation. You can also find out Treble support from the Treble Check app (Free, offers in-app purchases).
I am using the Poco F1 to install the Android 11 GSI so I will need a recovery like TWRP or OrangeFox for the Poco F1 specifically. In this case, I am using the OrangeFox recovery as it’s up to date and supports decryption. Download the OrangeFox recovery for Poco F1 from here. As for your Android device, you can use TWRP as well but make sure the recovery has been updated recently.
Next, download the GSI system image from here. It’s a Pixel ported GSI by Erfan and it works on a range of Android devices. Yes, it’s an AB-partitioned GSI but it will work on both A-only (e.g. Poco F1) and AB (e.g. Mi A3) devices. Apart from that, we did try the official GSI released by Google, but it failed to boot.
Before anything, we need to enable ADB and Fastboot so that we can install the recovery of our choice and install GSI on any Project Treble device. We have written an extensive guide on how to set up ADB on Windows, macOS, Linux, and Chrome OS so go through our guide and get the basics done.
Install Android 11 GSI on any Project Treble Device
Before moving ahead, I am assuming that you have set up ADB, unlocked the bootloader and verified Treble compatibility of your smartphone. Now that we have gone through the basic points and have downloaded the required files, let’s go ahead and install Android 11 GSI on any Project Treble device.
- Once you are in the fastboot mode, enter the below command to boot the recovery image. Make sure to keep the recovery image in the same ADB folder. After you boot into the OrangeFox recovery, tap on “Install” and swipe right to flash the OrangeFox recovery ZIP file. It will install and reboot to the recovery automatically.
fastboot boot recovery.img
Now, go to Wipe -> Advanced Wipe. Here, select Dalvik, Cache, System, Vendor, and Data and make a clean wipe. Make sure to check the box for “Vendor” as we need to replace the vendor first. Further, DO NOT touch “internal storage” since all our files are saved here.
Next, go to “Install” and flash the Pixel 4 ROM file that has the proper vendor implementation or the vendor image.
After that, wipe the cache for once and tap on “Reboot System”. It will boot into the new Pixel 4 ROM. If you are facing encryption issue then head over to the next section for the solution.
Now that we are in the recovery again, tap on Install -> Install Image. Here, select the GSI image and then choose “System Image”. After that, swipe to flash the GSI and once done, tap on “Reboot System”. No need to wipe anything before or after the installation.
Are you Having Encryption Issues After Installing the Android 11 GSI?
In the recovery, go to Wipe -> Format Data and type “yes” to completely erase your internal storage. It will decrypt the device and you will be able to boot easily.
In case, the above method did not work then you need to change the data partition from f2fs to ext4. To do so, open Wipe -> Advanced Wipe -> Partition Options -> Select Data -> Partition Options again -> Change FS (File System). Here, choose “ext4” and then swipe to change. After that, tap on “Reboot system”. This time, you will boot successfully without any encryption issue.
Boot back to recovery again by pressing the volume up + power button simultaneously and release after you see the Android logo. You will boot straight into the recovery mode.
Next, go to Advanced -> File Manager -> Vendor -> Overlay. Here, tap on the folder checkbox at the bottom to select all the files and then tap on “Delete”. After that, swipe right to complete the process. Finally, tap on “Reboot System” and you will boot into Android 11 GSI without any issue.