From ef254616c78775c111ef45eac57d7d2425384b9e Mon Sep 17 00:00:00 2001 From: Andy CrossGate Yan Date: Sat, 9 Oct 2021 12:42:56 +0800 Subject: [PATCH] Add resources for OnePlus Nord N200 (OnePlusN200) --- OnePlus/N200-SystemUI/Android.mk | 8 + OnePlus/N200-SystemUI/AndroidManifest.xml | 11 + .../N200-SystemUI/res/values-land/config.xml | 4 + OnePlus/N200-SystemUI/res/values/config.xml | 8 + OnePlus/N200/Android.mk | 8 + OnePlus/N200/AndroidManifest.xml | 11 + OnePlus/N200/res/values-land/config.xml | 4 + OnePlus/N200/res/values/config.xml | 202 ++++++++++++++++++ OnePlus/N200/res/xml/power_profile.xml | 109 ++++++++++ fail | 0 overlay.mk | 2 + 11 files changed, 367 insertions(+) create mode 100644 OnePlus/N200-SystemUI/Android.mk create mode 100644 OnePlus/N200-SystemUI/AndroidManifest.xml create mode 100644 OnePlus/N200-SystemUI/res/values-land/config.xml create mode 100644 OnePlus/N200-SystemUI/res/values/config.xml create mode 100644 OnePlus/N200/Android.mk create mode 100644 OnePlus/N200/AndroidManifest.xml create mode 100644 OnePlus/N200/res/values-land/config.xml create mode 100644 OnePlus/N200/res/values/config.xml create mode 100755 OnePlus/N200/res/xml/power_profile.xml delete mode 100644 fail diff --git a/OnePlus/N200-SystemUI/Android.mk b/OnePlus/N200-SystemUI/Android.mk new file mode 100644 index 0000000..a4d5574 --- /dev/null +++ b/OnePlus/N200-SystemUI/Android.mk @@ -0,0 +1,8 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PACKAGE_NAME := treble-overlay-oneplus-n200-systemui +LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay +LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true +LOCAL_PRIVATE_PLATFORM_APIS := true +include $(BUILD_PACKAGE) diff --git a/OnePlus/N200-SystemUI/AndroidManifest.xml b/OnePlus/N200-SystemUI/AndroidManifest.xml new file mode 100644 index 0000000..106d0e7 --- /dev/null +++ b/OnePlus/N200-SystemUI/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + diff --git a/OnePlus/N200-SystemUI/res/values-land/config.xml b/OnePlus/N200-SystemUI/res/values-land/config.xml new file mode 100644 index 0000000..0356339 --- /dev/null +++ b/OnePlus/N200-SystemUI/res/values-land/config.xml @@ -0,0 +1,4 @@ + + + 28dp + diff --git a/OnePlus/N200-SystemUI/res/values/config.xml b/OnePlus/N200-SystemUI/res/values/config.xml new file mode 100644 index 0000000..051228b --- /dev/null +++ b/OnePlus/N200-SystemUI/res/values/config.xml @@ -0,0 +1,8 @@ + + + 25px + 45px + 133px + @dimen/status_bar_padding_start + @dimen/status_bar_padding_end + diff --git a/OnePlus/N200/Android.mk b/OnePlus/N200/Android.mk new file mode 100644 index 0000000..a129bfa --- /dev/null +++ b/OnePlus/N200/Android.mk @@ -0,0 +1,8 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PACKAGE_NAME := treble-overlay-oneplus-n200 +LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay +LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true +LOCAL_PRIVATE_PLATFORM_APIS := true +include $(BUILD_PACKAGE) diff --git a/OnePlus/N200/AndroidManifest.xml b/OnePlus/N200/AndroidManifest.xml new file mode 100644 index 0000000..7ccb7e8 --- /dev/null +++ b/OnePlus/N200/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + diff --git a/OnePlus/N200/res/values-land/config.xml b/OnePlus/N200/res/values-land/config.xml new file mode 100644 index 0000000..9d6de4c --- /dev/null +++ b/OnePlus/N200/res/values-land/config.xml @@ -0,0 +1,4 @@ + + + @dimen/status_bar_height_landscape + diff --git a/OnePlus/N200/res/values/config.xml b/OnePlus/N200/res/values/config.xml new file mode 100644 index 0000000..2f8df1c --- /dev/null +++ b/OnePlus/N200/res/values/config.xml @@ -0,0 +1,202 @@ + + + true + true + false + + 133px + 28dp + @dimen/status_bar_height_portrait + + 1 + + + 1 + 4 + 12 + 20 + 28 + 47 + 63 + 86 + 150 + 160 + 220 + 270 + 360 + 420 + 510 + 620 + 1000 + 2000 + 3100 + 5000 + 8000 + 12000 + 16000 + 20000 + + + 0.8487 + 3.0394 + 15.2619 + 30.2619 + 46.671 + 65.95 + 80.46 + 84.38 + 89.51 + 100.34 + 102.21 + 109.48 + 114.19 + 123.86 + 129.18 + 138.07 + 145.62 + 168.84 + 234.9 + 280 + 320 + 360 + 405 + 450 + 500 + + + 0.0306835 + 7.036976 + 15.378969 + 23.549307 + 31.779863 + 39.88114 + 48.224293 + 56.22962 + 64.20222 + 71.99428 + 80.594086 + 88.73333 + 96.98312 + 105.07983 + 113.16353 + 121.19726 + 129.2246 + 137.3341 + 145.32004 + 153.26695 + 161.16608 + 169.02992 + 177.01715 + 184.8931 + 192.68034 + 200.42543 + 208.20667 + 216.03822 + 223.7154 + 231.39688 + 239.02518 + 244.72389 + 252.30759 + 260.0522 + 267.6324 + 275.16675 + 282.65814 + 290.31934 + 297.93735 + 305.57104 + 313.0667 + 320.6049 + 328.6051 + 335.74124 + 343.19217 + 350.65656 + 358.13226 + 365.529 + 373.01135 + 380.45087 + 387.86578 + 395.3285 + 402.69513 + 410.0712 + 417.44424 + 424.8042 + 432.0771 + 439.3496 + 446.65448 + 454.04626 + 461.40967 + 468.5552 + 473.9042 + 482.879 + 490.22714 + + + 0 + 4 + 8 + 12 + 16 + 20 + 24 + 28 + 32 + 36 + 40 + 44 + 48 + 52 + 56 + 60 + 64 + 68 + 72 + 76 + 80 + 84 + 88 + 92 + 96 + 100 + 104 + 108 + 112 + 116 + 120 + 123 + 127 + 131 + 135 + 139 + 143 + 147 + 151 + 155 + 159 + 163 + 167 + 171 + 175 + 179 + 183 + 187 + 191 + 195 + 199 + 203 + 207 + 211 + 215 + 219 + 223 + 227 + 231 + 235 + 239 + 243 + 246 + 251 + 255 + + + M -540,0 L -540,109 L -399,109 L -399,0 Z + diff --git a/OnePlus/N200/res/xml/power_profile.xml b/OnePlus/N200/res/xml/power_profile.xml new file mode 100755 index 0000000..0cbc298 --- /dev/null +++ b/OnePlus/N200/res/xml/power_profile.xml @@ -0,0 +1,109 @@ + + + 0 + 35 + 100 + 330 + 25.6 + 1.7 + 1.8 + 115 + 70 + 0 + 0 + 90 + 532 + 75 + 16 + 41 + 1.7 + 76 + 176 + 3300 + 191.5 + 143.5 + + 1 + + 1 + 200.8 + + 176.4 + 246.8 + 323.3 + 484.6 + 646.8 + + 800 + + 4 + 2 + + + 300000 + 576000 + 710400 + 940800 + 1190400 + 1324800 + 1478400 + 1574400 + 1708800 + 1804800 + + + 768000 + 979200 + 1017600 + 1248000 + 1401600 + 1536000 + 1651200 + 1804800 + 2035200 + + + 30 + 32 + 34 + 40 + 47 + 56 + 60 + 62 + 67 + 72 + + + 62 + 79 + 87 + 100 + 114 + 136 + 151 + 180 + 234 + + 15.68 + 6.5 + + 22.7 + + 5000 + 1.4 + 177 + 269 + + 3300 + + .0002 + .002 + .02 + .2 + 2 + + + + + \ No newline at end of file diff --git a/fail b/fail deleted file mode 100644 index e69de29..0000000 diff --git a/overlay.mk b/overlay.mk index d3ce9a6..a8d2174 100755 --- a/overlay.mk +++ b/overlay.mk @@ -88,6 +88,8 @@ PRODUCT_PACKAGES += \ treble-overlay-nokia-pnx-8.1-x7 \ treble-overlay-nokia-pnx-8.1-x7-systemui \ treble-overlay-nubia-z18mini \ + treble-overlay-oneplus-n200 \ + treble-overlay-oneplus-n200-systemui \ treble-overlay-oneplus-op6 \ treble-overlay-oneplus-op6t \ treble-overlay-oneplus-op6t-systemui \