From 74e1f88d690b8783bd1a62d552f2579ec222291c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yilli=C3=A9?= Date: Thu, 20 Jan 2022 21:13:08 +0500 Subject: [PATCH] A51 : Add SystemUI overlay This (status_bar_padding_top) would help to make status bar icons align with the hole punch cutout on the y-axis. --- Samsung/A51-SystemUI/Android.mk | 8 ++++++++ Samsung/A51-SystemUI/AndroidManifest.xml | 10 ++++++++++ Samsung/A51-SystemUI/res/values/config.xml | 6 ++++++ overlay.mk | 1 + 4 files changed, 25 insertions(+) create mode 100644 Samsung/A51-SystemUI/Android.mk create mode 100644 Samsung/A51-SystemUI/AndroidManifest.xml create mode 100644 Samsung/A51-SystemUI/res/values/config.xml diff --git a/Samsung/A51-SystemUI/Android.mk b/Samsung/A51-SystemUI/Android.mk new file mode 100644 index 0000000..c9082d2 --- /dev/null +++ b/Samsung/A51-SystemUI/Android.mk @@ -0,0 +1,8 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PACKAGE_NAME := treble-overlay-samsung-a51-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/Samsung/A51-SystemUI/AndroidManifest.xml b/Samsung/A51-SystemUI/AndroidManifest.xml new file mode 100644 index 0000000..a393f55 --- /dev/null +++ b/Samsung/A51-SystemUI/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + diff --git a/Samsung/A51-SystemUI/res/values/config.xml b/Samsung/A51-SystemUI/res/values/config.xml new file mode 100644 index 0000000..f24d804 --- /dev/null +++ b/Samsung/A51-SystemUI/res/values/config.xml @@ -0,0 +1,6 @@ + + + 40px + 40px + 35px + diff --git a/overlay.mk b/overlay.mk index e19e4bc..6ae63a9 100755 --- a/overlay.mk +++ b/overlay.mk @@ -124,6 +124,7 @@ PRODUCT_PACKAGES += \ treble-overlay-samsung-a40 \ treble-overlay-samsung-a50 \ treble-overlay-samsung-a51 \ + treble-overlay-samsung-a51-systemui \ treble-overlay-samsung-a51x \ treble-overlay-samsung-a60q \ treble-overlay-samsung-a7 \