测试平台
Platform: RK3588
OS: Android12
需求:
Rockchip-Android11和Android12系统亮度调节框调节亮度是曲线调节,需改为像低版本系统一样的线性调节效果(亮度递增效果)
解决方法:
代码路径:frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/BrightnessUtils.java
--- a/packages/SettingsLib/src/com/android/settingslib/display/BrightnessUtils.java
+++ b/packages/SettingsLib/src/com/android/settingslib/display/BrightnessUtils.java
@@ -22,6 +22,7 @@ public class BrightnessUtils {
public static final int GAMMA_SPACE_MIN = 0;
public static final int GAMMA_SPACE_MAX = 65535;
+ public static final boolean ENABLE_GAMMA = false;
// Hybrid Log Gamma constant values
private static f