From d6a1c9b7726dcc410a49cce2b8a93ae2ad5f9d98 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Thu, 28 Oct 2021 14:05:02 -0400 Subject: [PATCH] Disable color management by default on non-12 vendors Color management fixes flickering screen on mediatek devices The comment in SurfaceFlinger.cpp says that color mangement was disabled by default on Android <=11, so it's simply restoring old behavior --- rw-system.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index a49e8f5..07da866 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -948,3 +948,9 @@ fi # Disable secondary watchdogs echo -n V > /dev/watchdog1 + +if [ "$vndk" -le 30 ];then + # On older vendor the default behavior was to disable color management + # Don't override vendor value, merely add a fallback + setprop ro.surface_flinger.use_color_management false +fi