[DEV][TESTING] Device tree overlay for GSI

mKenfenheuer

Member
Jul 20, 2014
29
59
0
Hi all,

as the GSI topic here is still having a few issues, i have created a gsi overlay as per phhussons instructions:
https://github.com/phhusson/treble_experimentations/wiki/How-to-create-an-overlay

The source code can be found here:
https://github.com/mKenfenheuer/vendor_hardware_overlay

Build/install instructions:

(Assuming you have a recent Ubuntu/Debian/Mint Linux machine running)
1. Install xmlstarlet and dos2unix
2. Go to build folder
3. Run bash build.sh
4. Copy treble-overlay-realme-x2pro.apk to /system/overlay in your gsi.
5. add the following property to /vendor/build.prop or replace with the attached build.prop

# Patch to add device specific match for treble overlays by mkenfenheuer
ro.vendor.build.overlay.deviceid=RMX1931


Works (confirmed by me):
- Always on display
- 90hz display

'Should' be working:
- Enables DT2W option but enabling does not seem to have any effect to me.
- VOLTE - i cannot test as my carrier does not offer this anymore
- more reliable network connection (i have noticed far less lte issues, but this is my perception)

MISC:
- Imported the settings from realme vendor (i don't know if they are nescessary)


If there are any issues, simply delete the file from /system/overlay with recovery file manager and reboot.

I've added the compiled apk to this post, in case you do not want to build it yourself.
 

Attachments

Last edited:

ospeto

Senior Member
Feb 28, 2017
82
35
0
Hi all,

as the GSI topic here is still having a few issues, i have created a gsi overlay as per phhussons instructions:
https://github.com/phhusson/treble_experimentations/wiki/How-to-create-an-overlay

The source code can be found here:
https://github.com/mKenfenheuer/vendor_hardware_overlay

Build/install instructions:

(Assuming you have a recent Ubuntu/Debian/Mint Linux machine running)
1. Install xmlstarlet and dos2unix
2. Go to build folder
3. Run bash build.sh
4. Copy treble-overlay-realme-x2pro.apk to /system/overlay in your gsi.

As i have currently not flashed any gsi, i would ask you guys to test please.
Preferably with phhussons AOSP 10 gsi.
If there are any issues, simply delete the file from /system/overlay with recovery file manager and reboot.

I've added the compiled apk to this post, in case you do not want to build it yourself.
I copy your .apk overlay to /system/overlay and reboot. I am on evolution gsi phh based. Nothing change as far as i notice.
 

ospeto

Senior Member
Feb 28, 2017
82
35
0
Great initiative @mKenfenheuer !

I'll look into the settings to see if there are other that we could use!

@ospeto from what I see in the commits try to see if volte works and if you can switch user profiles.
I can switch user profiles just fine. Havent test volte though. By the way , the maximum brightness of gsi roms are not as bright as stock rom. Is there any fix for it?. I tried setting backlight to 255 but still not fixed.
 

mKenfenheuer

Member
Jul 20, 2014
29
59
0
I can switch user profiles just fine. Havent test volte though. By the way , the maximum brightness of gsi roms are not as bright as stock rom. Is there any fix for it?. I tried setting backlight to 255 but still not fixed.
I assume switching user profiles has not been working until now?
I have just unlocked my bootloader and started working on the kernel source so lets hope i can get this moving.
I will focus on the kernel first and once this is working we can start with getting other things working.
 

ospeto

Senior Member
Feb 28, 2017
82
35
0
I assume switching user profiles has not been working until now?
I have just unlocked my bootloader and started working on the kernel source so lets hope i can get this moving.
I will focus on the kernel first and once this is working we can start with getting other things working.
I haven't switch user profile before so i also am not sure. Should i delete your apk and test again?. I can't test volte cuz my sim provider stopped supporting volte. Thank you so much for your effort. I hope you can fix brightness, 90hz display and on display fingerprint. That would be very helpful for gsi users.
 
  • Like
Reactions: talalahmed

talalahmed

Senior Member
Nov 12, 2017
83
7
0
Problems I'm facing with evolutionx gsi

1-no fingerprint or face unlock (face unlock was removed from Android Q but it can be added)

2-there's no 90 hz refresh rate

3-speaker volume is lower than color is

4-brightness is slightly lower than color os also

5-need the stock camera app for video recording because gcam isn't that reliable with video recording
 

natedogg20050

Senior Member
Aug 19, 2009
301
72
0
Problems I'm facing with evolutionx gsi

1-no fingerprint or face unlock (face unlock was removed from Android Q but it can be added)

2-there's no 90 hz refresh rate

3-speaker volume is lower than color is

4-brightness is slightly lower than color os also

5-need the stock camera app for video recording because gcam isn't that reliable with video recording
There is a fix for the 90hz issue for the OPPO device
 

ospeto

Senior Member
Feb 28, 2017
82
35
0
90hz just fixed with dtbo.img flashing. U can find it on your how to flash android 10 gsi post's comment. I am using with 90hz now and it is working flawlessly.
 
  • Like
Reactions: talalahmed