From b03fd12f6479292d0c25d60f6fa5c2a8cc39716e Mon Sep 17 00:00:00 2001 From: Shirayuki39 Date: Fri, 19 Jul 2024 19:12:05 +0800 Subject: [PATCH] LG8n: overlay: Rework Overlays Signed-off-by: Shirayuki39 --- device.mk | 1 + .../res/values/config.xml | 179 +++++++++--------- .../res/values/dimens.xml | 6 +- overlay/SystemUIOverlay/res/values/config.xml | 34 ++++ overlay/SystemUIOverlay/res/values/dimens.xml | 40 ++-- 5 files changed, 153 insertions(+), 107 deletions(-) create mode 100755 overlay/SystemUIOverlay/res/values/config.xml diff --git a/device.mk b/device.mk index 4a72df4..ef18a87 100644 --- a/device.mk +++ b/device.mk @@ -316,6 +316,7 @@ PRODUCT_PACKAGES += \ CarrierConfigOverlay \ FrameworksResOverlay \ SettingsResOverlay \ + SystemUIOverlay \ TelephonyOverlay # Lineage-Specific Overlays diff --git a/overlay/FrameworksResOverlay/res/values/config.xml b/overlay/FrameworksResOverlay/res/values/config.xml index e33df9d..626dcb6 100644 --- a/overlay/FrameworksResOverlay/res/values/config.xml +++ b/overlay/FrameworksResOverlay/res/values/config.xml @@ -26,75 +26,39 @@ Software implementation will be used if config_hardware_auto_brightness_available is not set --> true - - - 100 - + - - 200 - - - - 1 - 15 - 30 - 45 - 60 - 75 - 90 - 105 - 120 - 135 - 150 - 165 - 180 - 195 - 210 - 225 - 240 + If this is defined then: + - config_autoBrightnessLcdBacklightValues should not be defined + - config_screenBrightnessNits must be defined + - config_screenBrightnessBacklight must be defined + + This array should have size one greater than the size of the config_autoBrightnessLevels + array. The brightness values must be non-negative and non-decreasing. This must be + overridden in platform specific overlays --> + + 8 + 64 + 98 + 104 + 110 + 116 + 122 + 128 + 134 + 182 + 255 + 255 + 255 + 255 + 255 + 255 + 255 255 - - - 1 - 15 - 30 - 45 - 60 - 75 - 90 - 105 - 120 - 135 - 150 - 165 - 180 - 195 - 210 - 225 - 240 - 255 - - - - 100 - - - - - 200 - - 0.003921569 @@ -257,6 +201,18 @@ true + + true + + + true + @@ -270,6 +226,10 @@ provisioning, availability etc --> true + + com.google.android.tts + true @@ -281,6 +241,9 @@ available on some devices. --> true + + true + "/system/framework/framework.jar" @@ -293,6 +256,23 @@ "/system/bin/surfaceflinger" + + true + + + true + true @@ -306,8 +286,31 @@ true - true - 121 - 121 + 90 + 90 5 + + true + + + com.android.systemui/com.android.systemui.doze.DozeService + + + true + + + true + + + false diff --git a/overlay/FrameworksResOverlay/res/values/dimens.xml b/overlay/FrameworksResOverlay/res/values/dimens.xml index 156bd99..26b1323 100644 --- a/overlay/FrameworksResOverlay/res/values/dimens.xml +++ b/overlay/FrameworksResOverlay/res/values/dimens.xml @@ -15,10 +15,6 @@ orientation. If zero, the value of rounded_corner_radius is used. --> 0.0dip - - 36.0dip - @@ -32,5 +28,5 @@ - 28.0dip + 26.0dip diff --git a/overlay/SystemUIOverlay/res/values/config.xml b/overlay/SystemUIOverlay/res/values/config.xml new file mode 100755 index 0000000..cf39abf --- /dev/null +++ b/overlay/SystemUIOverlay/res/values/config.xml @@ -0,0 +1,34 @@ + + + + + + + false + + + true + + + + 90 + + true + diff --git a/overlay/SystemUIOverlay/res/values/dimens.xml b/overlay/SystemUIOverlay/res/values/dimens.xml index 985f5a5..b9b8cd2 100644 --- a/overlay/SystemUIOverlay/res/values/dimens.xml +++ b/overlay/SystemUIOverlay/res/values/dimens.xml @@ -16,24 +16,36 @@ */ --> - - 1080px + + 1150px + 950px - + 1100px + + 1100px - - 1100px - - 47.0px - 4.0dip - 4.0dip + + 0dp + + + 0.0px + + + 20dp + + + 1080px + + + 85.0dip + 10dp + 5dp + 16dp