add SystemUI overlay for Jelly2 to fix lockscreen layout

This commit is contained in:
Peter Cai 2021-10-22 17:25:21 -04:00
parent b97b72223e
commit 8a81068541
4 changed files with 26 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-unihertz-jelly2-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.unihertz.jelly2.systemui"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+Unihertz/Jelly2*"
android:priority="510"
android:isStatic="true" />
</manifest>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Clock maximum font size (dp is intentional, to prevent any further scaling) -->
<!-- This phone has a small screen, so the text size must be shrinked as well -->
<dimen name="large_clock_text_size">100dp</dimen>
<dimen name="clock_text_size">56dp</dimen>
</resources>

View File

@ -136,6 +136,7 @@ PRODUCT_PACKAGES += \
treble-overlay-umidigi-A3S \
treble-overlay-umidigi-power \
treble-overlay-unihertz-jelly2 \
treble-overlay-unihertz-jelly2-systemui \
treble-overlay-vsmart-live \
treble-overlay-webview \
treble-overlay-wifi5g \