From 2bc9412139b579542a131b35c14de4ea03a831e1 Mon Sep 17 00:00:00 2001 From: Andy CrossGate Yan Date: Sat, 8 Jun 2024 14:50:59 +0800 Subject: [PATCH] Add resources for Xiaomi Civi 4 Pro (chenfeng) Change-Id: I9f331cd08afaacba083e44a34ec1fe743f8fef00 --- Xiaomi/Civi4Pro-SystemUI/Android.mk | 8 +++++++ Xiaomi/Civi4Pro-SystemUI/AndroidManifest.xml | 10 +++++++++ .../res/values-land/config.xml | 6 +++++ .../res/values-v31/config.xml | 4 ++++ .../Civi4Pro-SystemUI/res/values/config.xml | 10 +++++++++ Xiaomi/Civi4Pro/Android.mk | 8 +++++++ Xiaomi/Civi4Pro/AndroidManifest.xml | 10 +++++++++ Xiaomi/Civi4Pro/res/values-land/config.xml | 6 +++++ Xiaomi/Civi4Pro/res/values/config.xml | 22 +++++++++++++++++++ overlay.mk | 2 ++ 10 files changed, 86 insertions(+) create mode 100644 Xiaomi/Civi4Pro-SystemUI/Android.mk create mode 100644 Xiaomi/Civi4Pro-SystemUI/AndroidManifest.xml create mode 100644 Xiaomi/Civi4Pro-SystemUI/res/values-land/config.xml create mode 100644 Xiaomi/Civi4Pro-SystemUI/res/values-v31/config.xml create mode 100644 Xiaomi/Civi4Pro-SystemUI/res/values/config.xml create mode 100644 Xiaomi/Civi4Pro/Android.mk create mode 100644 Xiaomi/Civi4Pro/AndroidManifest.xml create mode 100644 Xiaomi/Civi4Pro/res/values-land/config.xml create mode 100644 Xiaomi/Civi4Pro/res/values/config.xml diff --git a/Xiaomi/Civi4Pro-SystemUI/Android.mk b/Xiaomi/Civi4Pro-SystemUI/Android.mk new file mode 100644 index 000000000..59307dfc2 --- /dev/null +++ b/Xiaomi/Civi4Pro-SystemUI/Android.mk @@ -0,0 +1,8 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-civi4pro-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/Xiaomi/Civi4Pro-SystemUI/AndroidManifest.xml b/Xiaomi/Civi4Pro-SystemUI/AndroidManifest.xml new file mode 100644 index 000000000..d7cbe685c --- /dev/null +++ b/Xiaomi/Civi4Pro-SystemUI/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + diff --git a/Xiaomi/Civi4Pro-SystemUI/res/values-land/config.xml b/Xiaomi/Civi4Pro-SystemUI/res/values-land/config.xml new file mode 100644 index 000000000..537482456 --- /dev/null +++ b/Xiaomi/Civi4Pro-SystemUI/res/values-land/config.xml @@ -0,0 +1,6 @@ + + + 28dp + 28dp + 28dp + diff --git a/Xiaomi/Civi4Pro-SystemUI/res/values-v31/config.xml b/Xiaomi/Civi4Pro-SystemUI/res/values-v31/config.xml new file mode 100644 index 000000000..87d970b81 --- /dev/null +++ b/Xiaomi/Civi4Pro-SystemUI/res/values-v31/config.xml @@ -0,0 +1,4 @@ + + + 1266px + diff --git a/Xiaomi/Civi4Pro-SystemUI/res/values/config.xml b/Xiaomi/Civi4Pro-SystemUI/res/values/config.xml new file mode 100644 index 000000000..f032f2f81 --- /dev/null +++ b/Xiaomi/Civi4Pro-SystemUI/res/values/config.xml @@ -0,0 +1,10 @@ + + + 57px + 57px + 172px + 57px + 57px + 172px + 172px + diff --git a/Xiaomi/Civi4Pro/Android.mk b/Xiaomi/Civi4Pro/Android.mk new file mode 100644 index 000000000..b2a5dc97d --- /dev/null +++ b/Xiaomi/Civi4Pro/Android.mk @@ -0,0 +1,8 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-civi4pro +LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay +LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true +LOCAL_PRIVATE_PLATFORM_APIS := true +include $(BUILD_PACKAGE) diff --git a/Xiaomi/Civi4Pro/AndroidManifest.xml b/Xiaomi/Civi4Pro/AndroidManifest.xml new file mode 100644 index 000000000..6c97922c1 --- /dev/null +++ b/Xiaomi/Civi4Pro/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + diff --git a/Xiaomi/Civi4Pro/res/values-land/config.xml b/Xiaomi/Civi4Pro/res/values-land/config.xml new file mode 100644 index 000000000..fb1bc7e5c --- /dev/null +++ b/Xiaomi/Civi4Pro/res/values-land/config.xml @@ -0,0 +1,6 @@ + + + 28dp + 28dp + 28dp + diff --git a/Xiaomi/Civi4Pro/res/values/config.xml b/Xiaomi/Civi4Pro/res/values/config.xml new file mode 100644 index 000000000..fbc66135b --- /dev/null +++ b/Xiaomi/Civi4Pro/res/values/config.xml @@ -0,0 +1,22 @@ + + + true + true + false + true + true + true + true + + 172px + 172px + 172px + 28dp + 172px + + 4 + 1 + + M -138,0 L -138,129 L 138,129 L 138,0 Z + M -138,0 L -138,129 L 138,129 L 138,0 Z + diff --git a/overlay.mk b/overlay.mk index 7bf0eade9..f1579ee71 100644 --- a/overlay.mk +++ b/overlay.mk @@ -348,6 +348,8 @@ PRODUCT_PACKAGES += \ treble-overlay-wifi5g \ treble-overlay-xiaomi-civi \ treble-overlay-xiaomi-civi-systemui \ + treble-overlay-xiaomi-civi4pro \ + treble-overlay-xiaomi-civi4pro-systemui \ treble-overlay-xiaomi-mi11lite5g \ treble-overlay-xiaomi-mi11lite5g-systemui \ treble-overlay-xiaomi-mi11tpro \