Add resources for OPPO A54 (CPH2239)

Change-Id: I011b5fc2eee7decf7bcced17744896d444ca60ad
This commit is contained in:
Andy CrossGate Yan 2022-02-19 20:55:39 +00:00
parent 88d830828f
commit 9e61beca8f
9 changed files with 69 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-oppo-a54-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.oppo.a54.systemui"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui"
android:requiredSystemPropertyName="ro.boot.prjname"
android:requiredSystemPropertyValue="20363"
android:priority="2036"
android:isStatic="true" />
</manifest>

View file

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

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_padding_start">16px</dimen>
<dimen name="status_bar_padding_end">30px</dimen>
<dimen name="status_bar_header_height_keyguard">88px</dimen>
<dimen name="keyguard_carrier_text_margin">@dimen/status_bar_padding_start</dimen>
<dimen name="system_icons_keyguard_padding_end">@dimen/status_bar_padding_end</dimen>
</resources>

8
OPPO/A54/Android.mk Normal file
View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-oppo-a54
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.oppo.a54"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.boot.prjname"
android:requiredSystemPropertyValue="20363"
android:priority="2036"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_landscape</dimen>
</resources>

View file

@ -0,0 +1,15 @@
<?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_portrait">88px</dimen>
<dimen name="status_bar_height_landscape">28dp</dimen>
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_portrait</dimen>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<string name="config_mainBuiltInDisplayCutout">M -360,0 L -360,72 L -266,72 L -266,0 Z</string>
<string name="config_mainBuiltInDisplayCutoutRectApproximation">M -360,0 L -360,72 L -266,72 L -266,0 Z</string>
</resources>

View file

@ -107,6 +107,8 @@ PRODUCT_PACKAGES += \
treble-overlay-oneplus-op6t-systemui \
treble-overlay-oneplus-op8 \
treble-overlay-oneplus-op8-systemui \
treble-overlay-oppo-a54 \
treble-overlay-oppo-a54-systemui \
treble-overlay-oppo-peqm00 \
treble-overlay-oppo-peqm00-systemui \
treble-overlay-oppo-reno3pro \