From 7c5b23ac70c049ad0c4f86f635e5ee6910d825bc Mon Sep 17 00:00:00 2001 From: Sebastiano Barezzi Date: Thu, 19 May 2022 00:23:46 +0200 Subject: [PATCH] grus: Initial overlays * Power profile from stock * Status bar height and rounded corner radius from stock * Brightness overlays from stock * UDFPS properties from vendor.prop * Use green like stock for UDFPS circle * The device has a notch Change-Id: I4bc38d66ed487c86dc61bc7885a89a6fdae61be9 --- device.mk | 5 + .../packages/SystemUI/res/values/config.xml | 31 ++ .../lineage/res/res/values/config.xml | 18 ++ .../base/core/res/res/values/config.xml | 300 ++++++++++++++++++ .../base/core/res/res/values/dimens.xml | 33 ++ .../base/core/res/res/xml/power_profile.xml | 118 +++++++ .../packages/SystemUI/res/values/config.xml | 34 ++ .../packages/SystemUI/res/values/dimens.xml | 21 ++ 8 files changed, 560 insertions(+) create mode 100644 overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml create mode 100644 overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml create mode 100644 overlay/frameworks/base/core/res/res/values/config.xml create mode 100644 overlay/frameworks/base/core/res/res/values/dimens.xml create mode 100644 overlay/frameworks/base/core/res/res/xml/power_profile.xml create mode 100644 overlay/frameworks/base/packages/SystemUI/res/values/config.xml create mode 100644 overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml diff --git a/device.mk b/device.mk index de78e02..93a4789 100644 --- a/device.mk +++ b/device.mk @@ -22,6 +22,11 @@ PRODUCT_COPY_FILES += \ TARGET_SCREEN_HEIGHT := 2340 TARGET_SCREEN_WIDTH := 1080 +# Overlays +DEVICE_PACKAGE_OVERLAYS += \ + $(LOCAL_PATH)/overlay \ + $(LOCAL_PATH)/overlay-lineage + # Shipping API level PRODUCT_SHIPPING_API_LEVEL := 28 diff --git a/overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml new file mode 100644 index 0000000..066f388 --- /dev/null +++ b/overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml @@ -0,0 +1,31 @@ + + + + + + + #00ff00 + + + 0 + diff --git a/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml new file mode 100644 index 0000000..75be87c --- /dev/null +++ b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml @@ -0,0 +1,18 @@ + + + + + true + diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml new file mode 100644 index 0000000..c0c16fc --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,300 @@ + + + + + + + true + + + + 1 + 2 + 4 + 6 + 8 + 10 + 15 + 20 + 25 + 30 + 35 + 40 + 45 + 50 + 55 + 60 + 65 + 70 + 75 + 80 + 85 + 90 + 95 + 100 + 120 + 140 + 160 + 180 + 200 + 220 + 240 + 260 + 280 + 300 + 320 + 340 + 360 + 380 + 400 + 420 + 440 + 460 + 480 + 500 + 700 + 900 + 1100 + 1300 + 1500 + 1700 + 1900 + 2200 + 2500 + 3000 + 3500 + 4000 + 4500 + + + + + 4 + 5 + 9 + 16 + 24 + 31 + 35 + 48 + 61 + 83 + 87 + 87 + 88 + 88 + 88 + 89 + 89 + 89 + 90 + 90 + 91 + 91 + 91 + 92 + 92 + 93 + 95 + 96 + 98 + 98 + 100 + 101 + 102 + 104 + 105 + 107 + 108 + 110 + 111 + 113 + 114 + 116 + 117 + 119 + 120 + 142 + 164 + 190 + 216 + 243 + 272 + 302 + 313 + 386 + 430 + 434 + 445 + 445 + + + + + 2.0 + 450.0 + + + + + 1 + 255 + + + + + 200 + 200 + 200 + 200 + 200 + 200 + 200 + 200 + + + + + 800 + 800 + 800 + 800 + 800 + 500 + 500 + 500 + + + + + 2 + 10 + 30 + 100 + 800 + 2000 + 4000 + + + + 12 + + + 536 + + + 12 + + + 2000 + 2000 + + + 100% + + + true + + + false + + + + + 540 + 2030 + 92 + + + + 0 + diff --git a/overlay/frameworks/base/core/res/res/values/dimens.xml b/overlay/frameworks/base/core/res/res/values/dimens.xml new file mode 100644 index 0000000..762608a --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/dimens.xml @@ -0,0 +1,33 @@ + + + + + 81px + + + 108px + + + 124px + diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml new file mode 100644 index 0000000..353d22c --- /dev/null +++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,118 @@ + + + 0 + 58.61 + 281.38 + 10.4 + 0.84 + 0.66 + 226.4 + 9.82 + 14.48 + 92.05 + 164.26 + 723 + 77.47 + 204.58 + 9.78 + + 8.96 + 8.96 + + 0 + 0 + 0 + 0 + + 6 + 2 + + + 300000 + 576000 + 748000 + 998400 + 1209600 + 1324800 + 1516800 + 1612800 + 1780000 + + + 27.36 + 31.3 + 33.28 + 41.15 + 46.59 + 51.15 + 57.75 + 62.39 + 73.05 + + + 300000 + 652800 + 825600 + 979200 + 1132800 + 1363200 + 1536000 + 1747200 + 1843200 + 1996800 + 2054400 + 2169600 + 2208000 + 2304000 + + + 39.32 + 52.98 + 60.94 + 71.46 + 82.99 + 105.8 + 122.44 + 149.89 + 184.13 + 208.16 + 235.4 + 261.15 + 270.98 + 299.82 + + 9.72 + 6.44 + + 22.7 + + 3070 + 0 + 0 + 0 + + 0 + + .0002 + .002 + .02 + .2 + 2 + + 0 + 0 + 0 + + 0 + 0 + 0 + 0 + 0 + + 0 + + 0 + 0 + + 0 + \ No newline at end of file diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml new file mode 100644 index 0000000..4173593 --- /dev/null +++ b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml @@ -0,0 +1,34 @@ + + + + + + + M122,0 C71.76,3.59 52.03,8.07 29.6,29.6 8.07,52.03 3.59,71.76 0,122 + + + 122px + + + 97 + diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml new file mode 100644 index 0000000..61247a3 --- /dev/null +++ b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml @@ -0,0 +1,21 @@ + + + + + @*android:dimen/status_bar_height +