Loading
SystemUI: Reverse MediaTek udfps dimlayer changes
The current impl for udfps framework dimming mostly targets OPlus Qualcomm devices, making it
unsuitable for MediaTek devices lacking LHBM supports.
Due to how GHBM is handled by MediaTek on BSP (HWC + RenderEngine + SysUI), it causes multiple issues
on them, notably the infamous flashbang behavior with GHBM as MediaTek HWC expect multiple DimLayers that dynamically parse
alpha based on the current brightness value and then order renderengine to dither it to not trigger a flashbang.
This behavior has been mostly reversed from PRIZE MtkSystemUI apk from LAVA and tested on Nothing Phone (2a).
TODO: Test on non-PRIZE devices and possibly let other devices change the alpha smoother point.
Change-Id: I907d9075c79ab4af5b82d3781291d97c1eab17b1
Signed-off-by:
HeroBuxx <me@herobuxx.me>