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
This commit is contained in:
Pierre-Hugues Husson 2021-10-28 14:05:02 -04:00
parent 9152974ac7
commit d6a1c9b772

View File

@ -948,3 +948,9 @@ fi
# Disable secondary watchdogs # Disable secondary watchdogs
echo -n V > /dev/watchdog1 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