Add resources for Realme 10 Pro (RMX3660/1/3)

Change-Id: I91df819857081539149364fb4cf93386215a6448
This commit is contained in:
Andy CrossGate Yan 2023-05-30 00:34:55 +00:00
parent b34b88c74f
commit 7b7cb2dcbe
9 changed files with 77 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-realme-10pro-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.realme.r10pro.systemui"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui"
android:requiredSystemPropertyName="ro.boot.prjname"
android:requiredSystemPropertyValue="+(22602|22667|22668)"
android:priority="2260"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_header_height_keyguard">28dp</dimen>
<dimen name="large_screen_shade_header_height">28dp</dimen>
<dimen name="large_screen_shade_header_min_height">28dp</dimen>
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_padding_start">50px</dimen>
<dimen name="status_bar_padding_end">50px</dimen>
<dimen name="status_bar_header_height_keyguard">126px</dimen>
<dimen name="keyguard_carrier_text_margin">50px</dimen>
<dimen name="system_icons_keyguard_padding_end">50px</dimen>
<dimen name="large_screen_shade_header_height">126px</dimen>
<dimen name="large_screen_shade_header_min_height">126px</dimen>
</resources>

8
Realme/10Pro/Android.mk Executable file
View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-realme-10pro
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.realme.r10pro"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.boot.prjname"
android:requiredSystemPropertyValue="+(22602|22667|22668)"
android:priority="2260"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height_default">28dp</dimen>
<dimen name="status_bar_height">28dp</dimen>
<dimen name="quick_qs_offset_height">28dp</dimen>
</resources>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_fillMainBuiltInDisplayCutout">false</bool>
<dimen name="status_bar_height_default">126px</dimen>
<dimen name="status_bar_height">126px</dimen>
<dimen name="status_bar_height_portrait">126px</dimen>
<dimen name="status_bar_height_landscape">28dp</dimen>
<dimen name="quick_qs_offset_height">126px</dimen>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<string name="config_mainBuiltInDisplayCutout">M -35,0 L -35,98 L 35,98 L 35,0 Z</string>
<string name="config_mainBuiltInDisplayCutoutRectApproximation">M -35,0 L -35,98 L 35,98 L 35,0 Z</string>
</resources>

View file

@ -163,6 +163,8 @@ PRODUCT_PACKAGES += \
treble-overlay-oukitel-c18pro \
treble-overlay-oukitel-wp8pro \
treble-overlay-razer-cheryl \
treble-overlay-realme-10pro \
treble-overlay-realme-10pro-systemui \
treble-overlay-realme-6 \
treble-overlay-realme-6i \
treble-overlay-realme-8-5g \