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.
This commit is contained in:
Yillié 2022-01-20 21:13:08 +05:00
parent 2ec773b633
commit 74e1f88d69
4 changed files with 25 additions and 0 deletions

View file

@ -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)

View file

@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.samsung.a51.systemui"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+*samsung/a51*"
android:priority="102"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_padding_start">40px</dimen>
<dimen name="status_bar_padding_end">40px</dimen>
<dimen name="status_bar_padding_top">35px</dimen>
</resources>

View file

@ -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 \