SF: Allow force fallback to Light HAL for brightness

In commit "Moved brightness from Lights to SF.", it becomes
possible to implement brightness functions in HW Composer HAL
instead of Light HAL.

However, some vendors implement this in a non-conforming way
which leads to undesired results.

Re-implementing HW Composer HAL is extremely hard if not impossible
for some devices while Light HAL can be easily re-implemented. Thus,
improper implementations of brightness functions cannot be overridden
easily if they are in HW Composer HAL.

This change adds a property "ro.sf.force_light_brightness" to allow
force fallback to Light HAL for brightness functions.

Change-Id: I063de09e7ebbd75b4dc36ca0ae9914ee408e7447
Signed-off-by: Jesse Chan <jc@lineageos.org>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2 files changed