diff --git a/OnePlus/N20-SystemUI/Android.mk b/OnePlus/N20-SystemUI/Android.mk new file mode 100644 index 0000000..52e729f --- /dev/null +++ b/OnePlus/N20-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-n20-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/N20-SystemUI/AndroidManifest.xml b/OnePlus/N20-SystemUI/AndroidManifest.xml new file mode 100644 index 0000000..a3cd612 --- /dev/null +++ b/OnePlus/N20-SystemUI/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + diff --git a/OnePlus/N20-SystemUI/res/values-land/config.xml b/OnePlus/N20-SystemUI/res/values-land/config.xml new file mode 100644 index 0000000..0356339 --- /dev/null +++ b/OnePlus/N20-SystemUI/res/values-land/config.xml @@ -0,0 +1,4 @@ + + + 28dp + diff --git a/OnePlus/N20-SystemUI/res/values-v31/config.xml b/OnePlus/N20-SystemUI/res/values-v31/config.xml new file mode 100644 index 0000000..dc3ee4f --- /dev/null +++ b/OnePlus/N20-SystemUI/res/values-v31/config.xml @@ -0,0 +1,4 @@ + + + 945px + diff --git a/OnePlus/N20-SystemUI/res/values/config.xml b/OnePlus/N20-SystemUI/res/values/config.xml new file mode 100644 index 0000000..b3c4f5c --- /dev/null +++ b/OnePlus/N20-SystemUI/res/values/config.xml @@ -0,0 +1,8 @@ + + + 25px + 50px + 139px + 25px + 50px + diff --git a/OnePlus/N20/Android.mk b/OnePlus/N20/Android.mk new file mode 100644 index 0000000..854bfa3 --- /dev/null +++ b/OnePlus/N20/Android.mk @@ -0,0 +1,8 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PACKAGE_NAME := treble-overlay-oneplus-n20 +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/N20/AndroidManifest.xml b/OnePlus/N20/AndroidManifest.xml new file mode 100644 index 0000000..df010b3 --- /dev/null +++ b/OnePlus/N20/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + diff --git a/OnePlus/N20/res/values-land/config.xml b/OnePlus/N20/res/values-land/config.xml new file mode 100644 index 0000000..fb1bc7e --- /dev/null +++ b/OnePlus/N20/res/values-land/config.xml @@ -0,0 +1,6 @@ + + + 28dp + 28dp + 28dp + diff --git a/OnePlus/N20/res/values/config.xml b/OnePlus/N20/res/values/config.xml new file mode 100644 index 0000000..1a3b0a7 --- /dev/null +++ b/OnePlus/N20/res/values/config.xml @@ -0,0 +1,43 @@ + + + true + true + false + true + true + true + true + true + + 139px + 139px + 139px + 28dp + 139px + + 30 + 1 + + + 10 + 30 + 60 + 100 + 150 + 210 + 255 + + + 10 + 20 + 40 + 70 + 110 + 160 + 200 + 255 + + + M -540,0 L -540,102 L -405,102 L -405,0 Z + M -540,0 L -540,102 L -405,102 L -405,0 Z + diff --git a/OnePlus/N20/res/xml/power_profile.xml b/OnePlus/N20/res/xml/power_profile.xml new file mode 100644 index 0000000..4023999 --- /dev/null +++ b/OnePlus/N20/res/xml/power_profile.xml @@ -0,0 +1,167 @@ + + + 0 + 100 + 580 + + 4 + 3 + 1 + + + 300000 + 403200 + 499200 + 614400 + 729600 + 844800 + 960000 + 1075200 + 1171200 + 1267200 + 1363200 + 1478400 + 1574400 + 1689600 + 1785600 + + + 5 + 7 + 8 + 12 + 16 + 21 + 22 + 26 + 29 + 34 + 40 + 41 + 54 + 58 + 65 + + + 633600 + 768000 + 883200 + 998400 + 1113600 + 1209600 + 1324800 + 1440000 + 1555200 + 1651200 + 1766400 + 1881600 + 1996800 + 2112000 + 2227200 + 2342400 + 2419200 + + + 33 + 42 + 51 + 59 + 70 + 75 + 88 + 101 + 122 + 130 + 151 + 181 + 207 + 233 + 278 + 314 + 335 + + + 806400 + 940800 + 1056000 + 1171200 + 1286400 + 1401600 + 1497600 + 1612800 + 1728000 + 1843200 + 1958400 + 2054400 + 2169600 + 2284800 + 2400000 + 2515200 + 2630400 + 2726400 + 2822400 + 2841600 + + + 86 + 96 + 109 + 127 + 142 + 158 + 169 + 190 + 207 + 231 + 270 + 290 + 333 + 386 + 428 + 487 + 554 + 616 + 684 + 686 + + 8.5 + 0.1 + 0 + 4040 + 0.1 + 173 + 0.5 + 25 + 81 + 550 + 390 + 13.5 + 170 + 5.8 + + 95 + 8 + + 6 + 204 + 220 + 4000 + + 21 + + 1 + 170 + 210 + 1 + 4000 + + .0001 + .001 + .01 + .1 + 1 + + 130 + 0.8 + 4000 + diff --git a/overlay.mk b/overlay.mk index 727a8e6..b010216 100755 --- a/overlay.mk +++ b/overlay.mk @@ -107,6 +107,8 @@ PRODUCT_PACKAGES += \ treble-overlay-nubia-z18mini \ treble-overlay-oneplus-n2 \ treble-overlay-oneplus-n2-systemui \ + treble-overlay-oneplus-n20 \ + treble-overlay-oneplus-n20-systemui \ treble-overlay-oneplus-n200 \ treble-overlay-oneplus-n200-systemui \ treble-overlay-oneplus-op10pro \