Ultimate Guide for Flashing GENRIC SYSTEM IMAGE.
for how to get rooted with magisk refer to next post.
and List Of GSI is available here
if you have any doubts even after reading this ultimate guide feel free to post it i will try to answer it and help you with that.
- Contents:
- Intro
- how to flash gsi.
- how to get rooted.
- gapps issues
- how to get back to non treble rom from gsi or treble enabled builds.
Introduction and basic information:
GSI means Generic System Image, which can be flashed over any Treble Device.
So, in simple words : same System.img can be flashed over multiple devices having Treble Support.
This happens as we now have a separate /vendor partition where all the vendor hals are stored.
Now, this will help to do easy bring ups, Treble builds are smooth af y'all know that and you'll get to flash aosp treble rom
Also, if you own 2-3 treble devices, now you'll just have to download one system.img xD it'll work for all of em ( if treble supported )
- How to get Treble Support?
Flashing Treble TWRP won't give you treble support. Keep that in Mind. It'll just mount the partition in the recovery, so that vendor img can be flashed.
To get Treble Support, you'll need to flash a latest ROM which has vendor image compiled with the latest changes by mikeNG, once you flash such a ROM, you'll get the vendor stored in the vendor partition, and after that you can flash any GSI ( as it's just System.img, and all our device specifics are in /vendor so it won't mess with that)
Instructions: - Download Official LineageOS-15.1 treble enabled build from here
- Download treble enabled twrp from here
- Move both the downloaded files to external sd card (recommended)(optional)
- boot in twrp
- move to wipe option from twrp.
- advanced wipe.
- select data and then check if its in ext4 if not format it to ext4 ( do this from official twrp by @celoxocis )
- then go to install and install the recovery provided above.
- reboot to recovery.
- wipe system, data, dalvik, cache & internal storage recommended.
- install the lineage os zip and reboot.
- download GSI of any rom of your choice. if it is in zipped format extract it and make sure you have a *.img
- boot into twrp
- wipe anything other than boot, micro sd & vendor
- go to install option and then select install image button on bottom right corner
- select the gsi of your choice which you have downloaded and install it on system partition.
- reboot to recovery (important)
- flash mind the gapps if you are going to use gapps in your rom. ( important open gapps have a few issues on treble like many of times gapps dont get flashed or shows some error)
- reboot
- Kudos you have now flashed a Genric System Image on your Lenovo P2.
for how to get rooted with magisk refer to next post.
and List Of GSI is available here
if you have any doubts even after reading this ultimate guide feel free to post it i will try to answer it and help you with that.
Last edited: