[MAGISK] [MODULE] Force enable SRGB

daleski75

Senior Member
Jul 21, 2008
5,740
6,474
113
Northampton
I have created a magisk module which forces the display to sRGB when it's not available on certain custom roms.
This may work on other phones but it is of course complete untested.

Before anyone asks the reason for this module is because my banking app does not work with magisk manager installed which is needed to set sRGB in ex kernel manager etc.
 

Attachments

Last edited:

B0unze

Senior Member
May 15, 2016
69
5
0
just set magisk to hide root for the banking app, I had the same thing but it only blocked me from using the fingerprint sensor which I use to log in pretty much always.
 

droidvark

Senior Member
Jul 22, 2013
52
12
28
Can't see any reason why it won't work.
Thanks for the quick reply.

Before or after flashing, do I need to do anything like under Live Display/Display Mode (it is set to disable all adjustments).

If not, it doesn't seem to work. The modules shows enabled in Magisk after a reboot, but the colors are incorrect.
 

daleski75

Senior Member
Jul 21, 2008
5,740
6,474
113
Northampton
Thanks for the quick reply.

Before or after flashing, do I need to do anything like under Live Display/Display Mode (it is set to disable all adjustments).

If not, it doesn't seem to work. The modules shows enabled in Magisk after a reboot, but the colors are incorrect.
Not sure I only tested it on my OP5 when I had it as some custom roms lack sRGB support and from memory I don't remember having to change anything.

You're welcome to hack it and get it to work btw.
 

droidvark

Senior Member
Jul 22, 2013
52
12
28
Not sure I only tested it on my OP5 when I had it as some custom roms lack sRGB support and from memory I don't remember having to change anything.

You're welcome to hack it and get it to work btw.
The path for the Oneplus 3T is different (or maybe it's different on RR, I don't know). Anyway, the path is:

echo 1 > /sys/devices/virtual/graphics/fb0/srgb

I've changed it in the post-fs-data.sh file and rezipped it. Testing now :p.

Edit: it works!
 
Last edited:
  • Like
Reactions: daleski75