Related
Ultimate Guide for Flashing GENRIC SYSTEM IMAGE.
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.
after following instruction as mentioned above
* download the magisk from here
* flash it normally.
A list of GSI and download links can be found here.
https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
Only A arm64 gsi are supported well on our device and based on arch of our device
how to get back to non treble rom?
* Download the non treble rom your choice
* boot into twrp do wipes as suggested on rom's thread and then flash the rom package no need to mess with vendor partition.
I have managed to flash Dirty Unicorns Rom and its working pretty much well.
Here are some screen shots.
Volte working on GSI?
Volte working on any gsi?
advaithbhat said:
Volte working on any gsi?
Click to expand...
Click to collapse
My network provider don't use volte you can try and tell me
Sent from my Phh-Treble vanilla using Tapatalk
I'm on codeexilir's twrp, can't I use that twrp to flash official los 15.1 to get vendor image and then flash any GSI. Or it is mandatory to use los twrp?
abdal2006 said:
I'm on codeexilir's twrp, can't I use that twrp to flash official los 15.1 to get vendor image and then flash any GSI. Or it is mandatory to use los twrp?
Click to expand...
Click to collapse
I believe You can but I haven't tested that.
Sent from my Phh-Treble vanilla using Tapatalk
If i want to change the gsi img then should i clean flash the los 15.1 again?
imPro01 said:
If i want to change the gsi img then should i clean flash the los 15.1 again?
Click to expand...
Click to collapse
No. Just don't wipe vendor & boot just change GSI
Sent from my Phh-Treble vanilla using Tapatalk
abhayruparel said:
No. Just don't wipe vendor & boot just change GSI
Click to expand...
Click to collapse
Thank you for reply
1) If i go to recovery and flash the new GSI img without anything wipe then it'll work?
2) If i want to go back to Los then how to do it?
Thx abhayruparel.
There is not an aosp p beta yet, no?
After flashing GSI NFC is not working
I can't make any gsi work.Always returns password and reset phone screens on reboot.Entering password says password accepted but decryption unsuccessful.Reset phone takes to TWRP but does nothing and reboots to the same password screen.What to do?
rexit1979 said:
I can't make any gsi work.Always returns password and reset phone screens on reboot.Entering password says password accepted but decryption unsuccessful.Reset phone takes to TWRP but does nothing and reboots to the same password screen.What to do?
Click to expand...
Click to collapse
Changing system and data to ext4 will do the trick probably
Miltonbaidya88 said:
Changing system and data to ext4 will do the trick probably
Click to expand...
Click to collapse
Both are already on ext4.
After flashing gsi got decryption unsuccessful error. How to solve that?
something is very wrong......
First if I flash lineage then any other gsi like pixel experience, it gives me decryption unsuccessful error.... I'm not even able to format the storage to remove encryption. I did format the encryption using an older version of twrp as the twrp provided for treble gives an error like ''
Unable to format data. Unble to remove encryption
-Now When I formatted data using earlier twrp and hen flashed the treble one and then flashed lineage. Booted and it still encrypted my phone. So the loop goes on again.
I dont know whats wrong. Treble flashing should be easy... been awake since last night trying to make it ork by using different combinations but no luck.
can anyone help?
Is there any way to enable volte in GSI?
I was thinking of installing HavocOS on my redmi s2/y2.There are so many builds on the HavocOS website but I don't know if any of them are for the s2/y2.I would like to know if there is any build of HavocOS and if there is one then which one.
Thanks in advance
parthibratan said:
I was thinking of installing HavocOS on my redmi s2/y2.There are so many builds on the HavocOS website but I don't know if any of them are for the s2/y2.I would like to know if there is any build of HavocOS and if there is one then which one.
Thanks in advance
Click to expand...
Click to collapse
this one base on arm64 PIE
https://sourceforge.net/projects/ha...90914-phhgsi_arm64_a-Official.img.xz/download
and this one base on arm32 PIE
https://sourceforge.net/projects/ha...0190914-phhgsi_arm_a-Official.img.xz/download
note: GSI rom not custom rom
I have tried havoc android 10 gsi but it didn't work
mohitdabas07 said:
I have tried havoc android 10 gsi but it didn't work
Click to expand...
Click to collapse
booted properly on YSL arm64 Android 10
Baim alif said:
booted properly on YSL arm64 Android 10
Click to expand...
Click to collapse
Is this havoc rom?
Can you give rom link and steps because mine didn't bootup and please provide review of this if you can i am dying to drying out android 10 rom
mohitdabas07 said:
Is this havoc rom?
Can you give rom link and steps because mine didn't bootup and please provide review of this if you can i am dying to drying out android 10 rom
Click to expand...
Click to collapse
yups.. havoc
but I think this is an initial release so it can't be used as a daily driver yet
Baim alif said:
yups.. havoc
Click to expand...
Click to collapse
Based on android 10?
Please give steps too and rom link
mohitdabas07 said:
Based on android 10?
Please give steps too and rom link
Click to expand...
Click to collapse
1.install custom rom base on arm64 that fully treble support. (i used lineage 15.1 oreo)
2.do factory reset
3.install image... gsi rom
4.do factory reset
5.reboot...
this one
https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
Baim alif said:
1.install custom rom base on arm64 that fully treble support. (i used lineage 15.1 oreo)
2.do factory reset
3.install image... gsi rom
4.do factory reset
5.reboot...
this one
https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
Click to expand...
Click to collapse
I tried dot os as base which is treble supported and used havoc os android 10 gsi(arm 64 a only) by express luke but after doing all steps when I try to boot up the screen lights up and then lights off this is happening continously nothing else
mohitdabas07 said:
I tried dot os as base which is treble supported and used havoc os android 10 gsi(arm 64 a only) by express luke but after doing all steps when I try to boot up the screen lights up and then lights off this is happening continously nothing else
Click to expand...
Click to collapse
I've tried all the custom ROMs that are currently available but only Lineage OS 15.1 oreo fully treble support..
so dot os give me same result.. bootloop
note: Sorry ... from whom you know that dot os fully treble support?
Baim alif said:
I've tried all the custom ROMs that are currently available but only Lineage OS 15.1 oreo fully treble support..
so dot os give me same result.. bootloop
Click to expand...
Click to collapse
Thnx bro you help is much appreciated please give me lineage os 15.1 link too
mohitdabas07 said:
Thnx bro you help is much appreciated please give me lineage os 15.1 link too
Click to expand...
Click to collapse
you are welcome...
https://forum.xda-developers.com/redmi-s2/development/rom-lineageos-15-1-ysl-t3892569
Baim alif said:
you are welcome...
https://forum.xda-developers.com/redmi-s2/development/rom-lineageos-15-1-ysl-t3892569
Click to expand...
Click to collapse
Sorry to bother you again but same bootloop problem after using lineage os 15.1 as base too
mohitdabas07 said:
Sorry to bother you again but same bootloop problem after using lineage os 15.1 as base too
Click to expand...
Click to collapse
very sorry to hear that, maybe I missed something. Try this, I hope it works for you..
i share my Redmi S2 vendor
https://mega.nz/#!aqBWRQTZ!xulAkn1pB8WLfdQ9Sl3qbL_ZHvZqREY4GXSlt_93MS8
1. extract and place the folder in your twrp backup directory
2. reboot to recovery
3.do factory reset
4.restore vendor partition
5.do factory reset
6.flash image Havoc 3.0
7.do factory reset
8.reboot to system
9.done..
have a nice day....
hi @baim ! us this the twrp you used to flash the android 10 gsi: BR-ysl-S-1.5.0-20190825-UNOFFICIAL.zip ?
aeoi said:
hi @baim ! us this the twrp you used to flash the android 10 gsi: BR-ysl-S-1.5.0-20190825-UNOFFICIAL.zip ?
Click to expand...
Click to collapse
yes...
---------- Post added at 06:18 AM ---------- Previous post was at 06:08 AM ----------
flash gsi rom ... Havoc 3.0 Android 10 arm64
1.backup your custom rom ( i use aex as daily driver)
2.do factory reset
3.install lineage 15.1 oreo arm64
4.booted to system
5.reboot to recovery
6.do factory reset
7.backup your lineage 15.1
7.wipe all except internal storage and external storage
8.restore boot partition from your daily driver
9.restore vendor partition from lineage 15.1
10.flash image. Havoc 3.0
11.do factory reset
12.flash magisk-phh.zip
13.reboot to system
14.done..
Baim alif said:
yes...
---------- Post added at 06:18 AM ---------- Previous post was at 06:08 AM ----------
flash gsi rom ... Havoc 3.0 Android 10 arm64
1.backup your custom rom ( i use aex as daily driver)
2.do factory reset
3.install lineage 15.1 oreo arm64
4.booted to system
5.reboot to recovery
6.do factory reset
7.backup your lineage 15.1
7.wipe all except internal storage and external storage
8.restore boot partition from your daily driver
9.restore vendor partition from lineage 15.1
10.flash image. Havoc 3.0
11.do factory reset
12.flash magisk-phh.zip
13.reboot to system
14.done..
Click to expand...
Click to collapse
How much time first boot need?
LacitheBeast said:
How much time first boot need?
Click to expand...
Click to collapse
about 2-3 minutes..
Baim alif said:
about 2-3 minutes..
Click to expand...
Click to collapse
Stuck on android logo for more than 20 minutes
What should i do?
LacitheBeast said:
Stuck on android logo for more than 20 minutes
What should i do?
Click to expand...
Click to collapse
Have you installed Magisk-phh?
( not an ordinary magisk, but magisk-phh)
what is your custom rom as a daily driver?
Hello XDA, this patch is intended to fix issues that arise from using phh-based Treble GSIs. This patch aims to make
life bearable on these ROMs and to add the functions that are missing from EMUI 8 and the OpenKirin ROMs. With
this patch you can use any working Pie or 10 GSI and have a complete experience, having to do as few manual tweaks as
possible.
What this patch does:
- Restores offline charging functionality
- Fixes crash on Bluetooth/NFC section in settings
- Fixes headphone jack detection
- Fixes the missing apps in Play Store
- Fixes battery stats behavior by supplying a correct power profile
- Fixes the lack of Night Light in AOSP-based ROMs
Tested P GSI ROMs:
- AOSP 9
- LineageOS 16.0 (AndyYan)
Tested Q GSI ROMs:
- AOSP 10
- LineageOS 17.1 (AndyYan)
Tested R GSI ROMs:
none
Installation:
1 - Flash eva_amend_x.y.z.zip on TWRP
2 - Wipe cache
3 - Reboot
Download:
here
Source:
You can analyze the patch to see the source code.
Credits:
lo_ol, hi6250 community, Wattsensi
Changelog
Code:
2.0.0
- Removed redundant fixes
- NFC is now responsibility of the GSI. This NFC fix was wrong on so many levels I can't even begin to describe.
- All prior versions removed from Google Drive
1.1.0
- Add HWComposer fixes
1.0.0
- Initial release
This looks really promissing - thanks a lot! How about fixing the issue with wifi hotspot for P9? Would that be doable as well?
@Wattsensi Hi. I'm the new owner of an old P9 (EVA-L09) and I would like to install an Android 10 GSI ROM. The only problem is it feels much more complicated than on my other phone. On my (much newer) Nubia RM3, I unlocked the bootloader, flashed recovery, flashed the GSI and tadaaa.
On the P9, I managed to unlock the BL, flashed TWRP and I'm contemplating what GSI should I flash. The treble checker app said the phone is not Treble compatible. It also shows as A-only ARM64.
Can you please guide me on what to install or point me towards a guide?
Thank you
Nightwish1976 said:
@Wattsensi The treble checker app said the phone is not Treble compatible. It also shows as A-only ARM64.
Click to expand...
Click to collapse
Basically you shall first rebrand and upgrade to Oreo to get treble support, here is how:
https://forum.xda-developers.com/showpost.php?p=77161313&postcount=2
@xaweryp Thanks a lot for the input, now I'm downloading the files necessary to rebrand and update to Oreo.
LE: just finished updating to Oreo.
Can I just flash an A only Arm64 GSI, or are there another steps? I have that new recovery (Pretorianos80 v4), but I think it cannot access the internal storage...
Nightwish1976 said:
@Wattsensi Hi. I'm the new owner of an old P9 (EVA-L09) and I would like to install an Android 10 GSI ROM. The only problem is it feels much more complicated than on my other phone. On my (much newer) Nubia RM3, I unlocked the bootloader, flashed recovery, flashed the GSI and tadaaa.
On the P9, I managed to unlock the BL, flashed TWRP and I'm contemplating what GSI should I flash. The treble checker app said the phone is not Treble compatible. It also shows as A-only ARM64.
Can you please guide me on what to install or point me towards a guide?
Thank you
Click to expand...
Click to collapse
Nightwish1976 said:
@Wattsensi Hi. I'm the new owner of an old P9 (EVA-L09) and I would like to install an Android 10 GSI ROM. The only problem is it feels much more complicated than on my other phone.
Click to expand...
Click to collapse
Hello. This device is abandoned, we're pretty much 1 or 2 developers working here. Yeah, I agree about the phone being complicated. It has so many quirks compared to my Galaxy S7 where everything just works out of the box.
This phone is not newcomer friendly, but with effort you can get through.
You can indeed install an Android 10 GSI but it's a poor user experience. Your choices are limited with this device, right now we have no working camera or NFC on 10. If you don't care running an older version of Android but still secure you can try @MSe1969's LineageOS 16.0 builds which incorporate the latest security patches and are updated monthly.
That ROM is designed to be used without GApps so keep that in mind.
Nightwish1976 said:
On the P9, I managed to unlock the BL, flashed TWRP and I'm contemplating what GSI should I flash. The treble checker app said the phone is not Treble compatible. It also shows as A-only ARM64.
Can you please guide me on what to install or point me towards a guide?
Thank you
Click to expand...
Click to collapse
First of all, do you have your unlock code in hand? You will need it when you perform the needed rebranding procedure. This will reflash your phone with a Chinese ROM so you can OTA-update to Oreo, which introduces Treble functionality into the device. Rebrand, update to Oreo and flash the latest (as of 09/2020) 8.0.0.550 firmware. Then flash the needed network patches to make your radio work, and then decrypt and install TWRP.
First, go there:
https://forum.xda-developers.com/p9/development/rebrand-update-tool-hwota7-p9-eva-t3820849
The second post contains upgrade instructions and be careful. Cheers!
Updated the patch. Now NFC functionality is responsibility of the GSI and removed useless stuff.
I've sharp aquos r2 706sh mobile. I am looking for its custom rom. I didn't get any custom rom compatible for my mobile.
Can I install latest version of lineage custom rom on my mobile?. Will it work for me.?
If there is any custom rom that is working on it please share it to me. I will be very grateful.
https://forum.xda-developers.com/showthread.php?t=4004673
S
aIecxs said:
https://forum.xda-developers.com/showthread.php?t=4004673
Click to expand...
Click to collapse
Sir , will it work on my device?
yes
aIecxs said:
yes
Click to expand...
Click to collapse
Which version should I use? Lineage 17, or 18 or 19
start with LineageOS 17.1 if all went well and you are firm with installation process try other GSI it's up to you
Treble Check - Apps on Google Play
Check your device for Project Treble support and more
play.google.com
How to flash a Generic System Image (GSI) on Project Treble supported devices
So your device supports Project Treble, what does that mean for you? 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.
www.xda-developers.com
Have you tried this rom if yes than can you tell how did you unlock the bootloader
it will be really appreciated
How to unlock Sharp aquos r2 ( 706h) bootloader?🥺
I have sharp aquos r2 and I am unable to unlock bootloader because I am not getting into fastboot mode manually with buttons or through adb. And also I am unable to get into recovery mode plzzz help me out.. when I do it through adb with command...
forum.xda-developers.com
does this device support GSI android 12
i want to unblock bootloader and flash GSI android 12
is there any lag experienced in 3gb/32gb-ROM version
Good luck with that. Recovery doesn't decrypt data on Android 12 and this device is s#!try, likemy HTC HD2 was better 15years ago
Yes you can flash gsi in it and bugs are obvious in gsi roms