From 02d6583375d22e3a15d74faa42797fb26574b89c Mon Sep 17 00:00:00 2001 From: Andy CrossGate Yan Date: Wed, 14 Jun 2023 11:52:22 +0800 Subject: [PATCH] Add resources for Motorola Edge (2022, tesla) --- Moto/tesla-SystemUI/Android.mk | 8 +++++++ Moto/tesla-SystemUI/AndroidManifest.xml | 10 +++++++++ .../tesla-SystemUI/res/values-land/config.xml | 6 +++++ Moto/tesla-SystemUI/res/values-v31/config.xml | 4 ++++ Moto/tesla-SystemUI/res/values/config.xml | 13 +++++++++++ Moto/tesla/Android.mk | 8 +++++++ Moto/tesla/AndroidManifest.xml | 10 +++++++++ Moto/tesla/res/values-land/config.xml | 6 +++++ Moto/tesla/res/values/config.xml | 22 +++++++++++++++++++ overlay.mk | 2 ++ 10 files changed, 89 insertions(+) create mode 100644 Moto/tesla-SystemUI/Android.mk create mode 100644 Moto/tesla-SystemUI/AndroidManifest.xml create mode 100644 Moto/tesla-SystemUI/res/values-land/config.xml create mode 100644 Moto/tesla-SystemUI/res/values-v31/config.xml create mode 100644 Moto/tesla-SystemUI/res/values/config.xml create mode 100644 Moto/tesla/Android.mk create mode 100644 Moto/tesla/AndroidManifest.xml create mode 100644 Moto/tesla/res/values-land/config.xml create mode 100644 Moto/tesla/res/values/config.xml diff --git a/Moto/tesla-SystemUI/Android.mk b/Moto/tesla-SystemUI/Android.mk new file mode 100644 index 0000000..38a8cb4 --- /dev/null +++ b/Moto/tesla-SystemUI/Android.mk @@ -0,0 +1,8 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PACKAGE_NAME := treble-overlay-moto-tesla-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/Moto/tesla-SystemUI/AndroidManifest.xml b/Moto/tesla-SystemUI/AndroidManifest.xml new file mode 100644 index 0000000..3cc3563 --- /dev/null +++ b/Moto/tesla-SystemUI/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + diff --git a/Moto/tesla-SystemUI/res/values-land/config.xml b/Moto/tesla-SystemUI/res/values-land/config.xml new file mode 100644 index 0000000..5374824 --- /dev/null +++ b/Moto/tesla-SystemUI/res/values-land/config.xml @@ -0,0 +1,6 @@ + + + 28dp + 28dp + 28dp + diff --git a/Moto/tesla-SystemUI/res/values-v31/config.xml b/Moto/tesla-SystemUI/res/values-v31/config.xml new file mode 100644 index 0000000..8ba708a --- /dev/null +++ b/Moto/tesla-SystemUI/res/values-v31/config.xml @@ -0,0 +1,4 @@ + + + 964px + diff --git a/Moto/tesla-SystemUI/res/values/config.xml b/Moto/tesla-SystemUI/res/values/config.xml new file mode 100644 index 0000000..f4ade3d --- /dev/null +++ b/Moto/tesla-SystemUI/res/values/config.xml @@ -0,0 +1,13 @@ + + + 50px + 50px + 125px + 50px + 50px + 125px + 125px + + + 4dp + diff --git a/Moto/tesla/Android.mk b/Moto/tesla/Android.mk new file mode 100644 index 0000000..d2e682c --- /dev/null +++ b/Moto/tesla/Android.mk @@ -0,0 +1,8 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PACKAGE_NAME := treble-overlay-moto-tesla +LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay +LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true +LOCAL_PRIVATE_PLATFORM_APIS := true +include $(BUILD_PACKAGE) diff --git a/Moto/tesla/AndroidManifest.xml b/Moto/tesla/AndroidManifest.xml new file mode 100644 index 0000000..0ca3368 --- /dev/null +++ b/Moto/tesla/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + diff --git a/Moto/tesla/res/values-land/config.xml b/Moto/tesla/res/values-land/config.xml new file mode 100644 index 0000000..fb1bc7e --- /dev/null +++ b/Moto/tesla/res/values-land/config.xml @@ -0,0 +1,6 @@ + + + 28dp + 28dp + 28dp + diff --git a/Moto/tesla/res/values/config.xml b/Moto/tesla/res/values/config.xml new file mode 100644 index 0000000..9bc656f --- /dev/null +++ b/Moto/tesla/res/values/config.xml @@ -0,0 +1,22 @@ + + + true + true + false + true + true + true + true + + 125px + 125px + 125px + 28dp + 125px + + 36 + 1 + + M -32.5,0 L -32.5,95 L 32.5,95 L 32.5,0 Z + M -32.5,0 L -32.5,95 L 32.5,95 L 32.5,0 Z + diff --git a/overlay.mk b/overlay.mk index 9e1c14b..cb6465e 100644 --- a/overlay.mk +++ b/overlay.mk @@ -112,6 +112,8 @@ PRODUCT_PACKAGES += \ treble-overlay-moto-razr \ treble-overlay-moto-rhodep \ treble-overlay-moto-rhodep-systemui \ + treble-overlay-moto-tesla \ + treble-overlay-moto-tesla-systemui \ treble-overlay-moto-tundra \ treble-overlay-moto-tundra-systemui \ treble-overlay-mtk-ims \